Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoshiyamaseizen/game-web
Simple 2D web browser game
https://github.com/hoshiyamaseizen/game-web
canvas canvas-game canvas2d css css3 game github-pages html html5 javascript js nodejs typescript webpack
Last synced: 5 days ago
JSON representation
Simple 2D web browser game
- Host: GitHub
- URL: https://github.com/hoshiyamaseizen/game-web
- Owner: HoshiyamaSeizen
- Created: 2022-02-10T12:07:09.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T17:52:04.000Z (about 2 years ago)
- Last Synced: 2023-03-10T06:32:24.299Z (over 1 year ago)
- Topics: canvas, canvas-game, canvas2d, css, css3, game, github-pages, html, html5, javascript, js, nodejs, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 9.55 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
## Description
This is a simple web browser game built with HTML, CSS and pure JavaScript. NodeJS and WebPack were only used for development purposes: compiling TypeScript and JSON files into a single JS file.
Game assets and maps can be modified. Current version in this repository serves as an example for testing most of the game mechanics and therefore does not have any specific storylines or balanced character, enemies and items stats.
The game itself is presented as a turn-based RPG. The player can kill enemies, interact with NPCs, pick up and use items, move around locations. Enemies have different behavior patterns and statistics; items include armor, weapons, spells, potions, and key items; moving through locations can come with certain requirements (starting requirements for the game, such as changing the player's characteristics and enemies, and requirements for moving through, such as having a key item or killing specific enemies).
## Launching
**The game is live at **
To run this game locally, you can either open index.html in the public folder or serve it through the server.
## Editing
If you want to edit the game, whether you want to add more assets, change maps, or change the code, you will need to recompile the JS bundle.
**The next steps assume you have [NodeJS](https://nodejs.org/en/ 'NodeJS Download Page') installed.**
Type `npm i` in a terminal to instal _node_modules_ folder with libraries. This step is only necessary after you have cloned or downloaded the code.
Once you have made the changes you needed, type `npm run build` to build the JS bundle.
If you want to know where to drop new sprites, you can look at the file locations in this example.