Skip to content

This is my 2D game maker library for the web, made using WASM. Witch I'm using do create my own version of the Google's offline Dino game

License

Notifications You must be signed in to change notification settings

SCLorentz/W2D-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dino Game

By Carlos Baraza - Own work / https://github.com/carlosbaraza/web-assembly-logo, CC0, Link


Have you ever played the google chrome dino game? This is my own version of it, developed in rust using the WASM (web assembly) technology.

Develop by your own

My recomendations - Docker

If you want to develop your own version of this game, you should get docker installed, so you don't have to worry about configure anything or make shure that this will work on your machine, is everythig already configured for you. Besides, in a virtualized environment, errors like "it works on my machine" can be avoidable. I made this to be really simple to just "enter and use" with no need for configuration.

docker logo
Docker, Inc., Apache License 2.0, via Wikimedia Commons

Start the server

To start the server, use: run, this command will make shure that everything necessary to make this project work is being executed and is working correctly.

Game Aesthetics

  • The game must be in black and white
  • The textures in pixel art style
  • No size variation of the same texture, size variation require a new texture
  • No fancy pause menu, just a 'esc' button that unpause the game
  • Score and life info must be in the right bottom corner
  • No fancy physics
  • The jump is very precise and cant be to much or to less
  • The terrain should have some variation, it can't be plain, but it can't have to high variation
  • The font should be pixelated
  • The dinossour must have 3 lifes, and for each life lost the sprite will blink for 3 seconds

Todo

Those are some stuff that I think that would be cool to add in this project

  • Set the start time (day / night) of the game to the equivalent to the user's theme
  • Create a grid to prevent impossible situations for the player, making the game playable
  • Create a progression difficulty, making the game harder over time
  • Create a pause menu acessible with 'esc'
  • Add multplayer compatibility
  • Pause the game when the user leave the page and play a 5 seconds countdown when the user return to restart the game, pressing esc on this menu will stop the countdown
  • Save the user's progress if they close the page
  • Add other dinos to the game
  • Create a procedural generation of the world, not only obstacles, but the game enviroment as well
  • Add moon cycle, with different sizes and textures
  • Add a life system
  • Add a God mode, make it contains infinite life, a custom texture for the dinossaur and enable double jump

I'm not using any libray, and this project is on a begginig stage, finishing this can take a long time

History

I had a problem and needed to delete and create the repo again, so the history of this repo before '11 ago 2024' was deleted, but this afected just one week of progression.

About

This is my 2D game maker library for the web, made using WASM. Witch I'm using do create my own version of the Google's offline Dino game

Topics

Resources

License

Stars

Watchers

Forks