Skip to content

This is a simple game concept made in React with Typescript. I also installed styled-components library to help with css.

Notifications You must be signed in to change notification settings

tpabarbosa/react-game-concept-with-canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Game Concept with HTML Canvas

🔹 This is a simple game concept made in React with Typescript. I also installed styled-components library to help with css. 🔹

game-screenshot

🔸 Map and Entities rendering were made in HTML Canvas elements with CanvasRenderingContext2D. 🔸

❗ This game was made to learn React basics so I dind't use redux to state management but I made my own state control (maybe it's not a good one - but, well, if it works it's good!! 😏). I tried to implement some kind of a finite state machine logic without any libraries.
code-screenshot

##How to play

  • Browers Just hit Enter to start, pause, unpause, end level and restart, wasd or arrows to move.

  • Mobile * Touch buttons at the bottom to do everything.

Oh, you are the little girl in the middle, and must collect every coin to get to next level! Monsters will chase you, but from time to time they will take a little rest. Game ends when monsters get you 3 times.

Try it:

https://react-game-concept-with-canvas.vercel.app/

🛑 May be laggy in some old or not updated smartphones

Todo

It's not an original idea, nor a really great game, but I would like to implement some more details:

  • A name for the game;
  • More monsters, more items, more heroes;
  • A highscore with data saved in localStorage;
  • A screen before game starts where players could choose an hero, give it a name, set volume, get high scores;
  • Give some kind of power-up to hero, so he/she could fight against monsters or have some defense against them;
  • Improve maps and design more levels;

🤔 That's all I can think of by now...

About

This is a simple game concept made in React with Typescript. I also installed styled-components library to help with css.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published