Skip to content

Dbald/XR_Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

A-Frame Snake Game

A fun and engaging 3D Snake Game using A-Frame. Navigate the snake in a virtual environment to collect orbs and advance through stages. Watch out for self-collisions!

Please feel free to submit issues!

Features

  • Immersive 3D graphics - Dive into a unique 3D experience.
  • Varied Environments - Different environments for each stage.
  • Mobile-friendly - Play with intuitive touch controls on your mobile device.
  • Life System - You get 3 lives before the game resets, so play carefully!
  • Dynamic Display - Always know your score with real-time updates for orbs collected and your current stage.

How to Play

Desktop Controls:

  • W: Move Up
  • A: Move Left
  • S: Move Down
  • D: Move Right

Mobile Controls:

  • Top of screen: Move Up
  • Bottom of screen: Move Down
  • Left side: Move Left
  • Right side: Move Right

Objective:

  • Collect the red orbs to increase your score and the length of the snake.
  • Reach the target number of orbs to advance to the next stage.
  • Explore and enjoy a new environment with each stage.
  • Avoid colliding with yourself to stay in the game.
  • Run out of lives? No worries! Start over and aim for a higher score.

Installation

  1. Clone this repository.
  2. Navigate to the project directory.
  3. Open index.html in your favorite web browser.

Customization

Feel free to dive into the source code to:

  • Introduce more stages
  • Adjust the difficulty
  • Add new features or challenges

Technologies Used

  • A-Frame: For creating the 3D virtual environment.
  • JavaScript: Powers the game dynamics and interactivity.

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages