I'm trying to make a tentacle using sin().
I want the base (the top circle) to be static, and the wiggle of the tentacle to get stronger until it reaches the tip (the bottom circle).
So far I have only achieved a pendulum
I'm not that good with math so I'm not sure about how to do it
here's my code
function _init() length=20 x=64 y=40 end function _draw() cls() for i=0,length do circfill(x+sin(time())*i,y+i*4,length-i,14) end end |


I'm working on a platformer game. I'm having an issue with enemy AI.
I want that the enemy will turn the opposite way once it reaches a cliff, much like a collision with a wall.
I want to make a collision check that will check if the floor of the tile after the enemy doesn't have any flags.
How do I do that if 0 means the first flag?



I didn't know much about compression algorithms when I started looking into this stuff and, in truth, I still know very little. So this may all be old-hat to a lot of people but hopefully somebody finds it interesting.
What am I compressing and why do I want to compress it?
For the last month or so I've been playing around with Signed Distance Fields (SDFs) first by making some simple pictures with them and using them to handle collsiion detection and then using them as the basis of a procedural morphing animation.
I'm interested in SDFs for a few reasons: I'm not much of an artist but I do like math. If I can substitute math for art in certain situations, that potentially works to my benefit. Also, since SDFs can be used to handle collision detection and they can be updated on the fly with boolean-like operators—union, intersection and difference—they seem like they could be a good choice for modeling level geomoetry and, in particular, destructible level geometry. But mostly I just like playing with them.






Hi everyone!
I got pico-8 yesterday and I am trying to learn lua.
for my first project I am trying to mod the raycasting demo to be a 3d platformer.
I got the running and jumping set to what I like, but I don't know how to set the map
so that it doesn't crash once it looks off the first screen in the editor. Any ideas?
I added a gif to show what it looks like. after the gif stops it means that my program crashes or
does not let me move, look, or jump in the game.
