Menu | JAQForum Ver 19.10.27 |
Forum Index : Microcontroller and PC projects : Frogger Game for CMM2
I know there is at least one other Frogger-type game (for Picomite?) but this is mine for the CMM2. Frogger.zip Enjoy! -Bill |
||||||
looks good, but I had to add some Pauses for MMB4W |
||||||
Martin said 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 |
||||||
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. |
||||||
Thanks for uploading. Have played the first two levels so far. |
||||||
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 |
||||||
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 |
||||||