thanks @jasondelaat !
is there a way i can produce a sine wave effect (not unlike celeste classic 2) but in any direction?
and in a line-like function? such as
rotated_sine_wave(x, y, direction, length, amp, wavelength, c)






i'm prepared for explanations that may contain math.
i have been working on this for too long over many attempts. it kinda works but there are definitely still issues.
i'm having problems with...
- normal calculations being off only some of the time
- when a shape returns to it's normal size, another the shape it collided with previously will get stuck inside
- shapes hovering 1 pixel over the ground???
- shapes are very bouncy
- shapes will not stay on other shapes (line segments can't collide with singular points)
- jiggle (i'll implement damping later on.)
- and cpu (not a priority yet, AABB tree later)
there are some comments that will hopefully help you find the issues in constrain()
and shape_collision()
i did a cover of starjump from Celeste for @ooooggll and thought i should put it here :)
i quite love love love starjump but couldn't do it justice (especially the baseline, anxiety parts) but whatever hope you like it.



Welcome to Snakes!
Play with a friend or against the computer for the crown!
Use the arrow keys to control the red snake, and X and O to control the blue snake.
Collect various fruits and objects to increase your score and length, or, power up.
Radish -
Adds 1 to your score.
Feather -
Speeds you up for 15 seconds.
Shield -
Makes you invincible for 15 seconds.
Peach -
Adds 5 to your score.
But watch out!
Make sure to avoid blockades and other snakes!
I would absolutely LOVE to see you make an A.I. Go ahead! Please.

.png)
little spaceship game i made. as per usual, started out simple, then had me bashing my head against the wall with frustration. but it turned out in the end.
explore the galaxy! follow the markers to find star clusters!
steer the ship with ⬅️ and ➡️! control your speed with ⬆️/🅾️ and ⬇️! hold ❎ to hyperjump to a new galaxy!



Not sure if bugs is the right place to put this...
Is it possible to retrieve a variable within a table within a table within a table and so on?
tables = { table = { a = {x=0,y=0} b = {x=64,y=94} c = {x=0,y=0} } } print(tables.table[2][2],0,0,1) -- this is not how it works |
If I wanted to print "b.x" and "c.y" at the same time in the most conventional way possible, how would I go about that?


