Skip to content

Open source pixel game written with Phaser JS where you need to collect diamonds and avoid the enemy catching you

License

Notifications You must be signed in to change notification settings

SerhiiChoGames/collect-diamonds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collect Diamonds

Collect Diamonds

Open source pixel game written with Phaser JS where you need to collect diamonds and avoid the enemy catching you.

Installation

The project is written with Phaser JS and Vite. To run the project locally, follow the steps below:

  1. Clone the repository
  2. Navigate to the project directory
  3. Run npm install to install the dependencies
  4. Run npm run dev to start the development server

Notes

  • init() -> preload() -> create() -> update() is the order of execution of the functions in the game loop. All the functions are executed only once except update() which is executed in a loop for each frame.
  • You can flip the sprite with flipX and flipY properties on the Sprite object. For example, sprite.flipX = true will flip the sprite horizontally.
  • You can rotate sprites by calling the setAngle() method on the Sprite object. For example, sprite.setAngle(90) will rotate the sprite by 90 degrees. It rotates based on the origin position of the sprite. By default, it's in the center of the sprite.

License

The Textwire project is licensed under the MIT License

The game is not finished yet, but you can play it here

About

Open source pixel game written with Phaser JS where you need to collect diamonds and avoid the enemy catching you

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages