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 StatesPosts: 393 |
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: GermanyPosts: 1113 |
looks good, but I had to add some Pauses for MMB4W 'no comment |
||||
William Leue Guru Joined: 03/07/2020 Location: United StatesPosts: 393 |
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 |
||||
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2135 |
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 StatesPosts: 197 |
Thanks for uploading. Have played the first two levels so far. |
||||
Martin H. Guru Joined: 04/06/2022 Location: GermanyPosts: 1113 |
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: CanadaPosts: 479 |
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 |