Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 54

Thread: RobotDuel - game for 2 players

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: RobotDuel - game for 2 players

    I think in your last version you made some optimization in source code, isn't it?
    Version without power-ups was slower, so the only way to have more options and more speed at the same time is more optimization.

    So ... thanks.
    ;D
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #12
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: RobotDuel - game for 2 players

    Yes,

    optimization is useful . The last version runs faster by more than 5 FPS.
    Luckily both aim-shake and overheat should not be such a big performance consumers.

    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #13
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: RobotDuel - game for 2 players

    Hi,

    version 1.5.5 is available now.

    What's inside ? Implemented Marco's aim-shake and overheat ( if overheated you cannot shoot for a while ).
    There is also new powerup "Cooler" which allows you to ignore overheating.
    I'v added F12 key to quickly grab screenshots too.

    The AI has different reaction time on different levels, so it should be easier to win over enemy bot.

    Bye,
    Petr

    P.S. Eros, I'm now working on sidewalking. Quite complicated to introduce in 2 players game, because GetAsyncKeyState is not happy when too much normal keys are pressed. I'm searching solution now.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #14
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: RobotDuel - game for 2 players

    Version 1.6 available

    Why so early ? Now comes funny story from developing ;D

    I tried to run RobotDuel 1.5.5 on PII 400 MHz and GeForce2 MX card.
    I runned the script ... OH NO ! 3 frames per second at maximum !

    I realized the computer has not installed latest 1.0.9.8. Uff, so that's the reason !
    So I reinstalled it and runned ... again 3 FPS ! I was desperate, but then it hit me - the models are too complex for such a card - each robot has more than 5 000 polygons.

    So version 1.6 is bundled with both high definition models and low definition ones ( one robot = 252 polygons ).

    Just switching to lower detail models allows you to play the robots smoothly even on P II 400 MHz computer with GeForce 2 MX 400, maybe even slower. The dark side is that the low detail models really aren't too eye candy

    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #15
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: RobotDuel - game for 2 players

    A little trick to pause hte game for a while.
    To be added just after While IsWindow(hWnd) main loop.

    [code=thinbasic] if GetAsyncKeyState(%VK_P) then
    sleep 100
    PauseFlag = iif(PauseFlag = %TRUE, %FALSE, %TRUE)
    end if
    if PauseFlag = %true then
    doevents
    iterate while
    end if
    [/code]
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #16
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: RobotDuel - game for 2 players

    Hi Eros,

    thank you for the code, it works very good !
    I will include it in next release if you don't mind.

    I'm sorry I stopped updating RobotDuel for a while, but I'm just little bit busy at the moment.
    As soon I'll have more time I will continue with updating.

    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #17
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: RobotDuel - game for 2 players

    Code published here is public, so do what you want.
    Time is yours so, again, take care of it

    We are working on 1.0.9.9
    New features and no more restrictions like registration key or expire date.
    Will be ready for next week.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #18
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: RobotDuel - game for 2 players

    Petr,

    what about a different type or armour other than rockets?
    Also what about a new power-up that change the side where rockets starts? I mean rockets usually start from the front of the robot. With this power-up rockets can start from left side or right side or whatever.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #19
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: RobotDuel - game for 2 players

    Hi Eros,

    very good ideas.

    Armour
    The armour will be changeable, I must redesign the head of the robot to have "weapon slots".
    Here you could plug in weapons, which will probably fall from the sky like a powerups.

    Firing side change
    This will be quite connected with the armour - rockets will be probably situated on the sides ( idealy shooting from left,right,left,right ... ), machinegun or something like it on the place where rockets are now and other ... we will see

    I'd like to take advantage of "math" module from 1.0.9.9, so I will arrange the code too and make a general source cleanup.

    I hope to release new version this weekend


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  10. #20
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: RobotDuel - game for 2 players

    And if you need any new native math function, just let me know and I will add immediately.
    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. Game: Game modes
    By Michael Hartlef in forum CM contest 2009
    Replies: 16
    Last Post: 05-10-2008, 04:58

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •