Player movement
This is first devlog for my game "One Door" (game name is not the same with the devlog concept).
The player is from itch.io, I found it from assets(Pixel Adventure).
The player character moves around the screen using the AD keys and the spacebar. The AD keys move the player forward and backward while the spacebar jumps. Movement is smooth, with velocity-based updates handling motion on the x- and y-axes.I implemented a 2D box collider for the player character and the surrounding environment. The player cannot pass through walls or other physical objects. I added logic to handle collisions with different surfaces, making sure the player doesn't pass through walls, but the player can fall through traps.I implemented a basic jump function using Unity's Rigidbody2D system, adjusting simple gravity and jump height. The player can jump when on the ground, and can jump over platforms or around some obstacles with reasonable jumps.
Below is my player movement gif

Get One Door
One Door
More posts
- Documentation6 days ago
- Update10 days ago
- Game Testing18 days ago
- UI and Polish18 days ago
- Presentation and Graphics20 days ago
- Enemies/Interactions20 days ago
- Basic Level Blocking20 days ago
- Enter the door59 days ago
Leave a comment
Log in with itch.io to leave a comment.