Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emre-guler/dino-game
A simple yet engaging dinosaur runner game inspired by Chrome's offline T-Rex game. Built with Cocos Creator.
https://github.com/emre-guler/dino-game
cocos-creator typescript
Last synced: 1 day ago
JSON representation
A simple yet engaging dinosaur runner game inspired by Chrome's offline T-Rex game. Built with Cocos Creator.
- Host: GitHub
- URL: https://github.com/emre-guler/dino-game
- Owner: emre-guler
- License: apache-2.0
- Created: 2020-07-11T17:42:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T01:46:15.000Z (15 days ago)
- Last Synced: 2025-01-09T09:19:27.937Z (7 days ago)
- Topics: cocos-creator, typescript
- Language: TypeScript
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dino Game
A simple yet engaging dinosaur runner game inspired by Chrome's offline T-Rex game. Built with Cocos Creator.
## Description
This is a side-scrolling runner game where you control a dinosaur that must jump over incoming cacti. The game features progressive difficulty, with obstacles moving faster as your score increases.
## Features
- Simple one-button gameplay
- Progressive difficulty system
- Score tracking
- Collision detection
- Smooth jumping mechanics
- Endless runner gameplay## Controls
- Press **SPACE** to make the dinosaur jump
- Avoid colliding with cacti
- Try to achieve the highest score possible## Technical Details
The game is built using:
- Cocos Creator
- TypeScript
- Object-oriented programming principles### Core Components
- `dino.ts`: Handles dinosaur movement and jump mechanics
- `cactus.ts`: Manages obstacle behavior and collision
- `game.ts`: Controls game flow, scoring, and spawning mechanics## Setup and Development
1. Clone the repository
2. Open the project in Cocos Creator
3. Build and run the project## Project Structure
```
dino-game/
├── assets/
│ ├── scripts/
│ │ ├── dino.ts
│ │ ├── cactus.ts
│ │ └── game.ts
│ └── Game.fire
├── settings/
└── project.json
```## Game Mechanics
- The dinosaur has a base position and can jump to a specified height
- Cacti move from right to left at increasing speeds
- Score increases as you successfully avoid obstacles
- Game ends upon collision with a cactus