Log In  
Follow
ssarkar
[ :: Read More :: ]

Cart #kunarafupi-1 | 2023-12-06 | Code ▽ | Embed ▽ | No License
1

P#138339 2023-12-06 11:09 ( Edited 2023-12-06 11:12)

[ :: Read More :: ]

Hello, I am trying to pass my player.score variable (an int from 0 to wherever), using GPIO.

I have been using poke2(location, player.score) and then reading to the browser using pico8-gpio-listener.js library by Ben Wiley.

However, my player.score maxes out at 255 and then resets to 0. This doesn't seem right so any help would be appreciated. The player.score itself goes as high as I need it to, it's just when I use poke2() it limits to 4bits(?) I think.

P#122775 2022-12-20 23:58

[ :: Read More :: ]

Cart #sihozewiti-31 | 2023-01-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#103876 2021-12-31 02:00 ( Edited 2023-01-17 23:07)

[ :: Read More :: ]

Hey all, working on an endless runner and running (lol) into a couple issues.

Here's the cart:

Cart #kebahugosi-0 | 2021-12-30 | Code ▽ | Embed ▽ | No License

Basically I can't seem to get the 'enemy sprites' to actually kill the player. I've given them their own tables of values, flags etc but I don't know how exactly to check their flags for proper collision. Alternatively, I would maybe like to generate the enemies using the map_gen() function so the placement is relatively random, and that works to kill the player, but then I can't make them move.

This goes hand in hand with making the runner go on indefinitely until player death - currently it only generates 8 screens and then repeats. Another forum member mentioned I should pick a midpoint then 'copy' the second half of of the map back at start, move the player instantly, and then generate the second half again - but I have no clue how to go about that.

Any help would be greatly appreciated!!

P#103843 2021-12-30 20:52

[ :: Read More :: ]

Hey guys, I'm stuck on trying to make an endless runner with procedurally generated platforms.
I was originally going to try and use the map sheet to make different 'rooms' and then try to cycle through them and draw the 'next room' randomly, but decided to abandon that idea in favor of just procedurally generating the platforms. (someone please let me know if that's a better way to do this type of game)

If you try the game you'll see the issue - the tiles are generated all over (I was going off the LazyDevs roguelike tutorial and trying to modify it for my purpose), they aren't jumpable despite having the right collision flags, and for some inexplicable reason they fall as if they had gravity, which I just can't figure out.

I've been tearing my hair out and really need assistance. Any help at all, or a better method would be really appreciated! I basically want to generate the runner platforms per 8 map screens, and ideally be able to generate powerups, holes in the floor, eventually enemies/traps etc.

Thank you for your time.

Cart #kabopowabi-0 | 2021-12-29 | Code ▽ | Embed ▽ | No License
1

P#103744 2021-12-29 05:42

Follow Lexaloffle:          
Generated 2024-04-19 23:01:47 | 0.071s | Q:22