A simple platformer with a level editor and online level sharing.
A simple platformer with a level editor and online level sharing.
#Things I worked on
I added a bunch of new mechanics including:
an actual player sprite with a walking, jumping and falling animation, each facing either left or right.
Walljump (will add a menu option to toggle)
More tiles including:
Upcoming features:
Keys and Doors
Enemies
Lava/Water
Moving things (saws, platforms)
Editor Minimap
Level Share (eventually I don’t know much backend)
Log in to leave a comment
I added a bunch of new features, including:
making the start, end, and checkpoint flags do things,
making spikes work
adding another layer to the map file on save that saves the rotations of things like spikes
adding a menu with working tabs, styled sliders (which were a pain to get right)
tweaking how the jump and speed values are calculated
Log in to leave a comment
I added an actual play mode and tweaked it’s movement and stuff. I gave it things like a coyote jump where it gives you grace for not jumping at the precise right moment off an edge.
I also added more tiles, including two spike variants and some flags for level mechanics such as checkpoints.
I adjusted the camera where it only moves if you hit the left/right/top 25% of the screen. I set the bottom one to 50% so you can see more of what’s below you.
Inside the tileset JSON I have a mechanics list where I can put different mechanics such as “killOnTouch” and so on. That’ll make it easy to add features later on. Going on the theme of the tileset, I also changed how that works so I can now have more than just a filename for each tile. I have type, name, id, file, triggerAdjacency (yes that does what it says it does), category, and mechanics right now.
Next up: change the menu to show categories and add some more keyboard shortcuts!
P.S. If anybody’s wondering press P to play the level and then again to go back to editing
Tile adjacency works now! currently it doesn’t update the tiles around it but it does work if you click on those tiles too. Gonna work on calculating it all on file load next along with updating the tiles around it.
Log in to leave a comment
The editor moves, along with stuff being able to be placed in it. There’s currently no way to change the selected block though. I’ll take some inspiration from other platformer editors for that one.
The main thing I worked on is a function to resize the level. Since the level is stored in an array with no sub-arrays for the row it was quite hard to work out the math to add/remove more rows/columns. lots of tiles.splice.
Log in to leave a comment
I’m working on a system to automatically switch the tile variant based on adjacency to other tiles of the same type (or any tile other than air idk yet). It works with a 4 bit string with different bits being flipped for different sides. that binary converted to a number is the variant that is used, chosen from a tile strip as seen below. Top is 1, right is 2, bottom is 4, and left is 8.
I set up a map reading/writing system using json and also editor movement. nothing else works but I got a lot of base functions in place. The editor is loaded automatically and you can move it around with the wasd. 👍👍
Log in to leave a comment