A fun and addictive browser-based endless runner game where you help Ollama the alpaca jump over cacti and obstacles across beautiful, dynamically changing stages!
Visit the live game hosted on GitHub Pages and start your adventure!
- 🦙 Lovable Alpaca Character - Help Ollama navigate through challenging terrain
- 🌄 Dynamic Stages - Progress through multiple themed stages with unique visuals:
- Pasture Plains - Easy-going starting area
- Sunset Sands - Medium difficulty with golden hues
- Starfall Ridge - High-speed challenges under starry skies
- And more challenging stages!
- 🎯 Various Obstacles - Dodge cacti, rolling logs, flying birds, and tide fish
- ⚡ Power-ups - Collect berries to activate shields
- 📊 Score Tracking - Beat your high score and compete with friends
- 🎨 Beautiful Parallax Backgrounds - Immersive multi-layer scrolling environments
- 🎵 Sound Effects - Audio feedback powered by Tone.js
- 📱 Mobile Friendly - Responsive design that works on desktop and mobile devices
- 💾 Save Feature - Track and save your game progress
- 🔗 Share Your Score - Share your best runs with friends
- Desktop: Press
SPACEto jump - Mobile: Tap the screen to jump
- Goal: Avoid obstacles and survive as long as possible
- Tip: Collect berries for temporary shield protection
- Strategy: Time your jumps carefully as the game speeds up!
Simply visit the live game to start playing immediately!
-
Clone the repository:
git clone https://github.com/st-1989/ollama_adventure_to_github_pages.git cd ollama_adventure_to_github_pages -
Start a local web server:
# Using Python 3 python3 -m http.server 8000 --directory ollamas-adventure/client # Or using Python 2 python -m SimpleHTTPServer 8000 # Or using Node.js (if you have http-server installed) npx http-server ollamas-adventure/client -p 8000
-
Open your browser and navigate to:
http://localhost:8000
Alternatively, you can open ollamas-adventure/client/index.html directly in your browser (though some features may require a web server).
ollama_adventure_to_github_pages/
├── index.html # Main landing page (Japanese)
├── README.md # This file
├── Makefile # Build/deployment helpers
├── ollamas-adventure/
│ ├── client/ # Game client files
│ │ ├── index.html # Game entry point
│ │ ├── css/
│ │ │ └── style.css # Game styles
│ │ └── js/
│ │ ├── main.js # Core game logic
│ │ ├── player.js # Player/Alpaca mechanics
│ │ ├── obstacle.js # Obstacle generation
│ │ └── stages.js # Stage configurations
│ └── server/ # Backend utilities (optional)
│ ├── server.js # Node.js server
│ └── database.js # Database adapter
└── save/
└── save.html # Save data management page
- HTML5 Canvas - For game rendering
- JavaScript (ES6+) - Game logic and mechanics
- Tailwind CSS - UI styling
- Tone.js - Audio synthesis and sound effects
- GitHub Pages - Hosting and deployment
- Node.js (optional) - Backend server for leaderboards
The game features progressive difficulty through stages:
- Each stage has unique visual themes and color filters
- Speed gradually increases within each stage
- New obstacle types are introduced as you progress
- Stages unlock at specific score thresholds
- Cactus - Classic ground obstacle
- Rolling Log - Moving ground hazard
- Sky Bird - Flying obstacle requiring precise timing
- Tide Fish - Water-based challenge
- Berries - Provide temporary shield protection
- Shield duration: 5.5 seconds
- Visual indicators show shield status (active/warning/broken)
Game parameters are defined in ollamas-adventure/client/js/main.js:
- Stage thresholds and speeds
- Obstacle spawn intervals
- Parallax settings
- Visual filters and effects
Stages are configured in the STAGES array with properties:
name- Stage display namethreshold- Score required to unlockbaseSpeed/maxSpeed- Speed rangeobstacleTypes- Available obstaclesberryChance- Power-up spawn rateparallax- Background scroll speedsfilters- Visual effects (hue, saturation)
This project is open source and available for educational and personal use.
Created with ❤️ by the Ollama's Adventure team
- Game Design & Development
- Pixel Art & Animation
- Sound Design with Tone.js
- Hosted on GitHub Pages
Feel free to fork this repository and submit pull requests for improvements!
- New obstacle types
- Additional stages and themes
- Power-up varieties
- Improved mobile controls
- Leaderboard integration
- Achievements system
For questions or feedback, please open an issue on the GitHub repository.
⭐ If you enjoy the game, consider giving this repository a star!