Skip to content

oib/adventurehopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AdventureHopper ๐ŸŽฎ

A web-based collection game inspired by the "2 Cars" concept. Control six squares to collect adventure-themed emojis moving across roads!

๐ŸŽฏ Game Features

  • 42 Unique Adventures: Collect different adventure emojis categorized into Places & Nature, Transport, and Wildlife
  • Progressive Difficulty: Game gets harder over 60 seconds with increasing speed and spawn rates
  • 2-Minute Challenges: Quick, exciting gameplay sessions
  • Collection Tracking: Keep track of your unique discoveries
  • Smooth Animations: Built with modern web technologies for optimal performance

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • pip

Installation

  1. Clone the repository
git clone https://github.com/oib/adventurehopper.git
cd adventurehopper
  1. Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the game
uvicorn main:app --reload --host 0.0.0.0 --port 8000
  1. Open your browser and navigate to http://localhost:8000

๐ŸŽฎ How to Play

  1. Click ๐ŸŽฎ Start Game to begin
  2. Click on the blue pipes to move orange squares up or down
  3. Collect adventure emojis as they pass by
  4. Try to collect all 42 unique adventures before time runs out!
  5. The game gets progressively harder - speed increases and more obstacles appear

๐Ÿ—๏ธ Project Structure

adventurehopper/
โ”œโ”€โ”€ main.py              # FastAPI server and API endpoints
โ”œโ”€โ”€ requirements.txt     # Python dependencies
โ”œโ”€โ”€ static/             # Frontend assets
โ”‚   โ”œโ”€โ”€ index.html      # Main game HTML
โ”‚   โ”œโ”€โ”€ style.css       # Game styling and animations
โ”‚   โ”œโ”€โ”€ config.js       # Game configuration constants
โ”‚   โ””โ”€โ”€ app.js          # Main game logic
โ””โ”€โ”€ docs/               # Documentation
    โ””โ”€โ”€ game-programming-documentation.md

๐Ÿ› ๏ธ Technologies Used

  • Backend: Python with FastAPI
  • Frontend: Vanilla JavaScript (ES6 Modules)
  • Styling: CSS3 with CSS Variables
  • Animation: Web Animations API
  • Server: Uvicorn ASGI

๐Ÿ“š Documentation

For detailed technical documentation about how the game is programmed, see game-programming-documentation.md.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ Future Enhancements

  • Score persistence with database
  • User profiles and statistics
  • Achievement system
  • Sound effects and music
  • Mobile touch support
  • Pause functionality
  • Multiplayer mode

๐Ÿ“„ License

This project is open source and available under the MIT License.

๐ŸŽจ Game Controls

Action Control
Move Square Up/Down Click on corresponding pipe
Start Game Click ๐ŸŽฎ Start Game button
Reset Game Click ๐Ÿ”„ Reset Game during play

Happy adventuring! ๐ŸŒŸ

About

๐ŸŽฎ AdventureHopper - A web-based collection game where you control squares to collect adventure-themed emojis. Features progressive difficulty, 42 unique adventures to collect, and smooth animations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors