Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariokreitz/simple_side_scroller
This project documents my journey in creating a 2D side-scroller, focusing on player interactions, game asset management, and debugging features for an enriched development experience.
https://github.com/mariokreitz/simple_side_scroller
canvas canvas-game canvas2d css html javascript javascript-game
Last synced: 14 days ago
JSON representation
This project documents my journey in creating a 2D side-scroller, focusing on player interactions, game asset management, and debugging features for an enriched development experience.
- Host: GitHub
- URL: https://github.com/mariokreitz/simple_side_scroller
- Owner: mariokreitz
- Created: 2024-11-08T06:09:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T06:22:33.000Z (3 months ago)
- Last Synced: 2024-12-05T22:13:24.050Z (2 months ago)
- Topics: canvas, canvas-game, canvas2d, css, html, javascript, javascript-game
- Language: JavaScript
- Homepage: https://simple-sidescrolling-game.netlify.app/
- Size: 404 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Side Scroller ๐ฎ [![Netlify Status](https://api.netlify.com/api/v1/badges/162deb84-9165-4fe5-b11d-c3c0955518a0/deploy-status)](https://app.netlify.com/sites/simple-sidescrolling-game/deploys)
Welcome to **simple_side_scroller**, a project to track my progress in web-based game development. This game was built to practice and showcase foundational skills, inspired by my **game_dev** repository.
## ๐น๏ธ Gameplay
In **simple_side_scroller**, the goal is simple: **jump over enemies** to earn points! Your score is tracked in the top-left corner. The game is playable on both desktop and mobile:
- **Desktop**: Press **Enter** to restart the game.
- **Mobile**: Tap to jump and tap again to restart.### Features
- **Jumping Mechanics**: Avoid enemies by jumping over them to earn points.
- **Fullscreen Mode**: Play in fullscreen for an immersive experience.
- **Debug Mode**: Toggle this to show hitboxes, a "debug" indicator, and FPS for performance insights.## ๐ฑ Mobile Compatibility
The game is optimized for mobile with simplified controlsโjumping only, no left or right movement, so you can play on the go!
## ๐ Project Structure
- **assets/img/**
Contains visual assets like `background`, `player`, and `enemy1`.- **classes/**
Houses JavaScript files for each core component:- `background.class.js` - Handles background visuals and scrolling.
- `player.class.js` - Defines player actions, like jumping.
- `enemy.class.js` - Manages enemy movement and interactions.
- `inputHandler.class.js` - Manages player inputs for both desktop and mobile.- **Root Directory**
- `index.html` - The main HTML file that launches the game.
- `style.css` - Styles the layout and UI elements.## ๐ Goal
This project documents my journey in creating a 2D side-scroller, focusing on player interactions, game asset management, and debugging features for an enriched development experience.
## ๐ Notes
This game builds on concepts from my [**game_dev**](https://github.com/mariokreitz/game_dev) repository, where I explore essential game development techniques. "simple_side_scroller" brings these elements together, focusing on Canvas animation, collision detection, and dynamic effects, and lets me track how these skills evolve with each project. Itโs both a practice ground and a showcase of my progress in game development.