0.6: fixed invincibility bug
Pushback is a simple action game based on the Ludum Dare theme "One Room".
How to play:
You are the center yellow block. Use the green blocks to push the red monsters back and squish them against the walls.

If the red monsters get next to you, they'll attack you, and you'll get progressively bloodier. Lose all your health and you lose.




This is a demake of Adventure Creator, an old Atari 400/800 game. It's not my goal to perfectly imitate the game, just get enough of it in there to be fun and nostalgic to play.
The original game was by Spinnaker/Dale Disharoon on the Atari 400/800 released in 1984.
It is dedicated to the memory of Dale Disharoon who died in 2008. His game gave me and my sister Katy a lot of fond memories together. I hope this demake honors his memory and preserves his legacy in some form.
It's a bit of a strange and probably outdated game. It is best described as a roguelike with questionable mechanics. But it makes a fun toy, and probably interesting to small children and anyone who remembers the game.


I've got some code similar to this in my game for different types of entities.
knight.sm=cocreate( function () while(knight.alive) do w=knight.w h=knight.h s=knight.s if btn(0) then ... ... .. .. |
Basically inside the function I'm creating a coroutine from I just use the "knight" reference from global scope as a "this" reference, so to speak. But...now I want to create a different type of entity within a loop, using a similar approach to the above.
for m=1,10 do ::redo:: .... chest.sm=cocreate( function() while chest.alive==true do |
The problem I'm running into is that that "chest" variable inside the loop, only ever seems to refer to one chest (presumably the very first time the function() is processed by lua).
I want to create a coroutine for each chest entity, which has a reference to "that" chest for each one in the loop. I'm sure there's a way to do something like that but I'm fairly new to lua.

If I try to start pico8 with superuser it gives me this:
Failed to open audio: ALSA: Couldn't open audio device: Device or resource busy
but when I open it without sudo it does not give this error and sound works. I need to open pico8 in superuser because I want to access GPIO.
I've tried reflashing the PocketChip, but it didn't help.
Also available on itch.io, Indiexpo, and Kongregate.
Kelin's artwork:
https://www.pixiv.net/en/users/12757087/illustrations/Kelin
--
Hello, Everyone!!
This is my first game... in PICO-8.
The game is about Kelin who has a job to deliver a package to her client. However, rain comes and Kelin has to stay in an unused old house because the path to cave is blocked. She is also hungry. Help Kelin find food and something to rid the cave block in the old house with adventure gameplay mechanic!










Just a simple little 2D-rotation example.
The function takes a 2D position (X,Y) and rotates it by ANGLE. CX,CY represents the center/pivot point.
The lines of code in the middle are the rotation matrix:
local rotx=cosa*x-sina*y local roty=sina*x+cosa*y |
This rotates a point around the origin. Before and after doing so, we offset our position by our center coordinate - this lets us rotate around any arbitrary pivot point.
For bonus points: When you're rotating lots of objects by the same angle (like a camera rotating, or a complex prop rotating), you can re-use your SINA and COSA values.



You know that feeling when you only have 8x8 pixels to draw something, and it takes an hour to get it right?
Let's make that feeling worse by posting our sprite in this thread, without context, and then despair when none of the other users can figure out what it is.
I'll shamelessly start it off with this thing...
And no, it's not pikachu... :(




Hey, first of all, excuse my poor photoshopping (Using Krita on Linux, terrible tool. No idea why I'm not using Gimp).
But anyways... What if, while in the code editor, you could hold down a key (maybe ALT?) and it would turn all tokens into coloured blobs. So you could instantly see where and how most of them are used up.
Something like this:

Additionally, maybe instead of being randomly coloured, certain tokens (such as keywords, variable names, separators, etc...) could have a dedicated colour to them.
Now, disclaimer... I don't actually know how the tokens work exactly, I just coloured in the tokens as I felt.
The token blocks themselves, should also look more like this, but in pico8 colour palette:

but I think the image gets the point across even with my terrible photoshopping.



arrow:move
z:gather number from around.
This is 1st game I made.
I learned how difficult it is to make the game fun.
Hey!
I want to find a way to run my code from other editors such as vim or atom. I havent found a solution to this yet.
I know I can run a cartridge from terminal by typing "pico8 -run mycart.p8" for example. The problem with this is that it boots up the whole console before booting the game.
Do anyone know a way to just boot the game in an already running pico-session? That would be awesome.
EDIT: I just got the idea. If you run load("mycart.p8") in your code the cart gets reloaded and run with the new code. Is it possible to use the gpio to send a command that triggers load("mycart.p8") within the code? For a computer that does not have real a gpio-header I guessing you would have to simulate gpio?


