Log In  
Follow
buck-dev
platformer collision wip
by
sand engine
by
[ :: Read More :: ]

lil springy thing i made in like 30 mins lol

Cart #springy0_2-0 | 2024-01-03 | Code ▽ | Embed ▽ | No License
1

P#139578 2024-01-03 11:47 ( Edited 2024-01-03 11:47)

[ :: Read More :: ]

\/v latest release

Cart #sandenginev4-0 | 2023-12-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

left and right to cycle colors, up and down to change brush size

elements:
1 - smoke, floats upward and disipates
5 - gunpowder, a powder that explodes upon contact with fire
8 - fire, burns and emits smoke
9 - fuse, when lit, fire travels along it
10 - sand, an inert powdery substance
12 - water, a liquid
14 - acid, a liquid that erodes other substances, turning it into more of itself

i've implimented a new method of updating pixels, this has some upsides and downsides. One main thing right now is that liquids (water and acid) arent working quite how they should

feel free to make your own elements too! i've tried to make it pretty modular.
to add a new rule to a particle simply make a new item in sands like this:

sands[color]=function(x,y,c)
  -- your code here
end

for example. lets' make a pebble. All this pebble does is fall straight down. for the pebble, we'll go with color 5 (gray).
each cell is a pixel on the screen, so in order to check if there's anything below it, you pget the pixel y+1 of it:

if pget(x,y+1) then
  -- move cell
end

how do you move a cell? simple, you fake it! You just clear the old cell's position, and place a new cell where the new cell posiiton is!

if pget(x,y+1) then
  pset(x,y,0) -- clear old position
  pset(x,y+1,c) -- place in new position
end
P#138769 2023-12-16 14:41 ( Edited 2023-12-17 14:13)

[ :: Read More :: ]

\/v latest release

Cart #capsule_v_2_1-0 | 2023-12-10 | Code ▽ | Embed ▽ | No License
1

little physics thingie

c/[o] to jump
left, right to move left and right

A simple physics thingie i whipped up last night. It's nowhere near done but i hope to work on it more. keep in mind that it's pretty bashed together atm and really just a proof of concept.

this system atm just uses regular aabb collision aswell as using the tilemap

I know physics in pico has been done manymany times before but i think i can learn from making this

Todo :

  • pushable colliders
  • better entity system
    • composition based

Updates :

  • v2
    • better floorcheck function
    • added basic moving platform mechanics
  • v2.1
    • fixed bug with moving platform -- nevermind its still buggy
P#138499 2023-12-10 04:43 ( Edited 2023-12-10 12:19)

[ :: Read More :: ]

0 player automata game

Cart #automata-2 | 2023-07-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#132567 2023-07-30 17:58 ( Edited 2023-07-30 17:59)

[ :: Read More :: ]

Becky's Revenge!

[128x16]

Cart #beckys_revenge-0 | 2023-07-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This was my submission to the GMTK 2023 gamejam! i think i did pretty well in the alotted time!
[8x8]

Making this has been very fun! i should take part in more jams. Being able to code for a few days and not worry about coding things right or making everything neet is very freeing!

P#131784 2023-07-09 18:38