Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:40 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 05:21pm 16 Apr 2024
Copy link to clipboard 
Print this post

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





Frogger.zip

Enjoy!
-Bill
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 07:22pm 16 Apr 2024
Copy link to clipboard 
Print this post

looks good,
but I had to add some Pauses for MMB4W
'no comment
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 12:04am 17 Apr 2024
Copy link to clipboard 
Print this post

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
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 12:42am 17 Apr 2024
Copy link to clipboard 
Print this post

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.
 
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 197
Posted: 02:33pm 17 Apr 2024
Copy link to clipboard 
Print this post

Thanks for uploading.  Have played the first two levels so far.
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1113
Posted: 05:16pm 17 Apr 2024
Copy link to clipboard 
Print this post

  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
'no comment
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 479
Posted: 08:58pm 17 Apr 2024
Copy link to clipboard 
Print this post

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
 
Print this page


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

© JAQ Software 2024