Arildoj / TRex

Google dinosaur game develop in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TRex

Google dinosaur game develop in JavaScript.

FAQ

Why?
I think that is a good way to improve my skills in JavaScript language.

Why google dinosaur?
Because your interface is simple (2D) and involve dynamics objects.

Structural Elements

  1. Terrain
  2. Dino
  3. Scenery
  4. Obstacle

Physics

  1. Walk
  2. Jump
  3. Scenery Movement

Description

The project using simple CSS interface in html to drawing the content, where is running the game.
Mechanics is responsible to interaction between the dinosaur and the elements in the game (cactus), your behavior and actions.
Collision is responsible to recognize when the dinosaur and the cactus are the same position.
Scenery Movement is the movement of objects and obstacle displayed.

I use the Canvas Element HTML for draw the images and TimeInterval to control the functions with different execution times. All develop was made for me learn the JavaScript code and improve my skills. You can use it for any propose.
The images were dimensionality in 50 x 50 pixels and the Canvas Element in 500 x 200 pixels.

TRex

The structure is compose for:

  • Ground layer with 15 images
  • Dinosaur with 4 images
  • Cactus layer with 1 image

Growth plan for the TRex project

  • Performance optimization and code reduction.
  • Export the score for cloud.
  • Put the pterodactyl (bird) in the game.

Credits

About

Google dinosaur game develop in JavaScript.


Languages

Language:JavaScript 95.1%Language:HTML 3.5%Language:CSS 1.3%