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
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
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
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
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
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
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
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
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
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
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
Bookmarks