Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
slow down time
#5
(09-29-2024, 09:40 AM)Marcus Wrote:
Code:
include "polyline.n7"
...

' Game speed.
while not keydown(KEY_ESCAPE)
    ' Delta time, low cap at 15 fps.
    ' Slow down by pressing spacebar.
    ' Multiply delta time with gameSpeed.
    ' Time to spawn a new ship?
    ' Update ships.
    ' Update stars.   
    ' Draw.
wend

Awesome ! I've never seen before on how to code "slow motion effect" in a game ... 
I used to play text games in "super real slow motion" and  "super slow dot matrix printer" back then in 1980s  Big Grin Big Grin Big Grin
Reply


Messages In This Thread
slow down time - by aliensoldier - 09-28-2024, 01:45 PM
RE: slow down time - by Marcus - 09-28-2024, 05:53 PM
RE: slow down time - by johnno56 - 09-28-2024, 09:28 PM
RE: slow down time - by Marcus - 09-29-2024, 09:40 AM
RE: slow down time - by 1micha.elok - 09-30-2024, 04:53 AM
RE: slow down time - by aliensoldier - 10-04-2024, 05:36 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)