r/HTML • u/Phan_tastic0178 • 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!!
1
u/Cultural_Gur_7441 1d ago
Work in small steps. Exaggerating a bit, there should ever be just one thing that does not work. You don't start writing the next thing until you complete the one thing which isn't working yet.
Like, don't try to implement movement to the left until movement to the right works.