simplescreenrecorder-2025-01-08_04.41.49.mp4
A simple 2D pixel game created for learning and experimentation purposes using SvelteKit and JavaScript.
This project demonstrates fundamental game development techniques by building a 2D side-scrolling game. The player can move, jump, and experience physics-based movement and collision detection, with immersive animations and parallax scrolling background layers to enhance the visual experience.
-
Player Movement: The player can move left, right, and jump. Movement includes velocity and momentum, simulating realistic physics, with collision detection to prevent the player from moving outside the game bounds.
-
Player Animations: The player has animations for different states: idle, running, jumping, and falling, with frame-based sprite handling for smooth transitions.
-
Keyboard Controls: Player movement is controlled through arrow keys (
←and→for left and right) and spacebar for jumping. The game responds fluidly to keyboard input with physics applied to the player's actions.
- SvelteKit: The game is built using SvelteKit, a modern framework for building web applications with Svelte.
- JavaScript: The game logic is written in JavaScript, handling player movement, animations, collision detection, and background scrolling.
- Adding new levels with varied challenges and environments.
- Implementing enemies and other obstacles for the player to avoid or overcome.
- Sound effects and background music for enhanced immersion.
- A score system to track the player's progress.
This project was inspired by and based on the 2D Game Development Course by Samuel E. Mezzasalma.