Skip to content

dodopayments/dodo-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dodo Games

Join Discord License: GPLv3

Dodo Games is an engaging collection of playful, custom-built arcade games created by and for the Dodo Payments community. Procrastinate responsibly while building your empire of high scores!

๐ŸŽฎ Play now: games.dodopayments.com

Games

Game Description
Flappy Dodo Navigate the volatile market. Avoid the red pipes of churn. Keep your MRR flying high.
Gateway Defender Protect the Dodo from DDoS bots. Use firewall, rate-limiter and auto-healing infrastructure.
Payment Invaders Defend your payment gateway from chargebacks, fraudsters, and downtime bugs. Shoot them down!
Transaction Snake Guide your payment chain through the grid. Eat payment apples, dodge fraud voids.
Checkout Rush Process payments before the queue overflows! Match payment types and build combos.
Dodo Dash Run, Dodo, Run! Jump over obstacles and dash through the desert. Classic endless runner.
Merchant Hero Trade fair. Fly fast. Dodge fraud. Pilot through the Payment Galaxy!

Local Development

Running a Game Locally

Navigate to any game directory and open index.html in a web browser:

cd flappy-dodo
open index.html  # macOS
# or just open the file in your browser

Building for Production

Run the build script from the root directory to build all games:

npm install
npm run build

This will:

  • Minify all CSS and JavaScript files
  • Copy all assets to the dist folder
  • Include SEO files (sitemap.xml, robots.txt)
  • Prepare everything for Cloudflare Pages deployment

Deploying to Cloudflare Pages

Prerequisites

  1. A Cloudflare account
  2. Wrangler CLI installed (optional, for local preview):
    npm install -g wrangler

Deployment Steps

Option 1: Deploy via Cloudflare Dashboard (Recommended)

  1. Build the project:

    npm run build
  2. Go to Cloudflare Dashboard:

    • Navigate to Cloudflare Dashboard
    • Go to Workers & Pages โ†’ Create application โ†’ Pages โ†’ Connect to Git
  3. Connect your repository:

    • Select your Git provider (GitHub, GitLab, or Bitbucket)
    • Authorize Cloudflare to access your repository
    • Select the dodo-games repository
  4. Configure build settings:

    • Project name: dodo-games (or your preferred name)
    • Production branch: main
    • Build command: npm run build
    • Build output directory: dist
    • Root directory: / (leave empty or set to root)
  5. Configure custom domain:

    • After deployment, go to Custom domains
    • Add games.dodopayments.com
    • Follow DNS configuration instructions
  6. Deploy:

    • Click Save and Deploy
    • Cloudflare will automatically build and deploy your site

Option 2: Deploy via Wrangler CLI

  1. Install Wrangler (if not already installed):

    npm install -g wrangler
  2. Login to Cloudflare:

    wrangler login
  3. Build the project:

    npm run build
  4. Deploy:

    wrangler pages deploy dist --project-name=dodo-games

Setting Up Custom Domain

  1. In Cloudflare Dashboard, go to your Pages project
  2. Navigate to Custom domains
  3. Click Set up a custom domain
  4. Enter games.dodopayments.com
  5. Add the CNAME record to your DNS:
    • Type: CNAME
    • Name: games
    • Target: Your Cloudflare Pages domain (e.g., dodo-games.pages.dev)
    • Proxy status: Proxied (orange cloud)

URL Structure

After deployment, games will be accessible at:

  • Landing page: https://games.dodopayments.com/
  • Flappy Dodo: https://games.dodopayments.com/flappy-dodo
  • Gateway Defender: https://games.dodopayments.com/ddos-defense-dodo
  • Payment Invaders: https://games.dodopayments.com/payment-invaders-dodo
  • Transaction Snake: https://games.dodopayments.com/snake-game-dodo
  • Checkout Rush: https://games.dodopayments.com/checkout-rush-dodo
  • Dodo Dash: https://games.dodopayments.com/dodo-dash
  • Merchant Hero: https://games.dodopayments.com/merchant-hero-dodo

Adding New Games

  1. Create a new folder in the root directory (e.g., my-new-game/)
  2. Add your game files (index.html, script.js, style.css, assets/, etc.)
  3. Update the root index.html to include a link to your new game
  4. Update sitemap.xml to include the new game URL
  5. Run npm run build to include it in the build
  6. Deploy to Cloudflare Pages

The build script automatically detects any directory with an index.html file and includes it in the build.

Project Structure

dodo-games/
โ”œโ”€โ”€ index.html              # Landing page listing all games
โ”œโ”€โ”€ package.json            # NPM configuration
โ”œโ”€โ”€ build.js                # Build script for all games
โ”œโ”€โ”€ robots.txt              # Search engine crawler rules
โ”œโ”€โ”€ sitemap.xml             # Sitemap for SEO indexing
โ”œโ”€โ”€ assets/                 # Shared assets (favicons, images)
โ”‚   โ”œโ”€โ”€ images/
โ”‚   โ”œโ”€โ”€ favicon.ico
โ”‚   โ””โ”€โ”€ analytics.js
โ”œโ”€โ”€ flappy-dodo/            # Flappy Bird-style game
โ”œโ”€โ”€ ddos-defense-dodo/      # Tower defense game
โ”œโ”€โ”€ payment-invaders-dodo/  # Space Invaders-style shooter
โ”œโ”€โ”€ snake-game-dodo/        # Classic snake game
โ”œโ”€โ”€ checkout-rush-dodo/     # Fast-paced matching game
โ”œโ”€โ”€ dodo-dash/              # Endless runner game
โ”œโ”€โ”€ merchant-hero-dodo/     # Space shooter game
โ””โ”€โ”€ dist/                   # Built output (generated)

SEO

The project includes SEO optimizations:

  • Meta tags: Description, keywords, Open Graph, Twitter Cards on all pages
  • Structured data: JSON-LD VideoGame schema for each game
  • Sitemap: sitemap.xml for search engine indexing
  • Robots.txt: Allows all crawlers

After deployment, submit the sitemap to:

Development Tips

  • Each game should be self-contained in its own directory
  • Use relative paths for assets (e.g., assets/image.svg)
  • The build script automatically minifies CSS and JS files
  • Test locally before deploying
  • All games include shared favicons and analytics from the assets/ folder

Contributing

Got a crazy game idea? We'd love to hear it! Join our Discord to contribute or submit ideas.

See CONTRIBUTING.md for contribution guidelines.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

About

Playful collection of games created by and for the Dodo Payments community.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •