Log In  

Cart #froggo1k-1 | 2022-09-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

This was the first time I participated in a Pico-8 1K jam. This Frogger clone has some neat palette swaps and an ever increasing difficulty. How far can you get in as few deaths as possible?

P#116848 2022-09-03 20:54 ( Edited 2022-09-04 00:00)

Ran into a problem, @digaly.

P#116854 2022-09-03 23:30

Yeah, just don't use Z/X, only the arrow keys, they're the only relevant controls. I've yet to figure out the reason behind the game crashing if you press any other button.

P#116855 2022-09-03 23:31

@digaly,

There's just some interfering numeric values coming from the raw binary output of the Z and X buttons, you can fix it by just changing line 66 to the following:

if(dt==0) b=btnp()%8

The modulo operation isolates the binary values from just the directional buttons so there's no interference. It puts you a byte or two over, but that should be easy to fix.

P#116858 2022-09-03 23:52 ( Edited 2022-09-03 23:54)

It was %16 or I wouldn't be able to move downwards, but you're right, that fixed it. I did figure it had something to do with the higher bits of Z/X interfering.

Thank you!

P#116860 2022-09-04 00:01

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 21:41:05 | 0.019s | Q:23