Here's a tiny entity-component-system framework for anyone who might need such a thing! It weighs in at only 108 tokens as of v1.0. This framework assumes (but does not technically require) the strictest definition of the concept, that being that entities and components define no behavior internally but rather are acted upon by externally defined systems that function on the data contained in the entity/components themselves.
The implementation of systems is a slightly refined version of @selfsame's earlier implementation, which treated the "components" simply as keys of the entity, rather than modular objects in their own right. It's also been slightly token-optimized, at 38 instead of 47, but assumes at least the table structure implemented by the entity factory function. I highly recommend @selfsame's version if you need something even more lightweight than this, at the cost of a little flexibility.
Hey all! This is my first little Pico-8 experiment, and like I almost always do with any game engine, a Snake clone was first on the list. I'm not a great artist, so excuse the lack of polish in the sprites ^^
Points by fruit type:
- Apple - 1 point
- Plum - 1 point
- Blueberry - 1 point
- Peach - 1 point
- Blackberry - 1 point
- Bronze apple - 2 points
- Silver apple - 5 points
- Golden apple - 10 points
Each fruit you eat will increase the length of your tail by 1 tile.
Going off the edge of the screen will wrap you around to the other side.
Don't run into your tail, and try to survive as long as you can!