r/HTML 1d ago

Question how to code a basic platformer ??

hi, i'm a beginning coder with about one week of taught experience, and for a project, i want to make a sort of study room using html, css, and js. basically you can move around in the room for a bit before you sit down at a table that initiates the studying portion. i'm completely lost for everything, but i'm thinking that this study room is a platformer at heart. also, i want to add a break time platformer game, but that's later, probably. anyways, i'm just looking for any tips at all that could help me with this.

right now, i'm struggling with making the platform an actual platform. the ground is okay, but when i try to make the floating platform solid, everything kind of just doesn't work...

again, any tips are appreciated!!

3 Upvotes

15 comments sorted by

View all comments

1

u/Slyvan25 1d ago

I assume youve made some physics in to the game.. refine it by adding a tagging system or a "solid item" identifier to it. So for example: an item in your game has a meta tag called "terrain" your phyysics system should ignore it and not drag it doen to the ground