Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Frogger Game for CMM2

Posted: 05:21pm
16 Apr 2024
Copy link to clipboard
William Leue
Guru

I know there is at least one other Frogger-type game (for Picomite?) but this is mine for the CMM2.





Frogger.zip

Enjoy!
-Bill
 
Posted: 07:22pm
16 Apr 2024
Copy link to clipboard
Martin H.
Guru


looks good,
but I had to add some Pauses for MMB4W
 
Posted: 12:04am
17 Apr 2024
Copy link to clipboard
William Leue
Guru

Martin said

  Quote  but I had to add some Pauses for MMB4W


No surprise there. It runs at an artibrary speed depending on the CPU. It's just about the right speed on a CMM2 but probably too fast on a PC.
-Bill
 
Posted: 12:42am
17 Apr 2024
Copy link to clipboard
phil99
Guru


May be overkill for this, but one way to make a program less dependent on CPU speed than pauses is:-
Delay = Timer + x 'mS
'Perform Task
Do : Loop Until Timer > Delay

At low CPU speeds it doesn't add a delay.
 
Posted: 02:33pm
17 Apr 2024
Copy link to clipboard
bar1010
Senior Member

Thanks for uploading.  Have played the first two levels so far.
 
Posted: 05:16pm
17 Apr 2024
Copy link to clipboard
Martin H.
Guru


  William Leue said  I know there is at least one other Frogger-type game (for Picomite?)

I think you are referring to PicoFrog
At some point I lost the desire to add extras, but as it is, it's fun and playable.

Cheers
Martin
 
Posted: 08:58pm
17 Apr 2024
Copy link to clipboard
LeoNicolas
Guru


I like to compute the delta time for every main loop and use it to multiple the movement variables. I'm using this approach in Knightmare


g_delta_time=(timer-g_prev_frame_timer)/1000
g_prev_frame_timer=timer
 


To reply to this topic, you need to log in.

© JAQ Software 2024