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?

2


Ran into a problem, @digaly.


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.


@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.


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!



[Please log in to post a comment]