Skip to content

About

🏏 A lightweight, arcade-style pixel cricket game built with HTML5 Canvas, CSS, and vanilla JS. Features dynamic pitch conditions, directional shot controls, Web Audio chiptunes, and local tournament modes.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pixel Cricket v1 - Ultimate Arcade Edition

License: MIT Language: HTML/JS Platform: Web

Pixel Cricket on itch.io

Playable Status

A fast-paced, retro-styled browser cricket game built with HTML5 Canvas and Vanilla JavaScript. Features interactive bowling mechanics, customizable match modes, dynamic pitch types, synthesized retro audio, and full touch/keyboard controls.


Gameplay & Interface

Gameplay View Main Menu
Gameplay Screenshot Menu Screenshot

Key Features

  • Multiple Game Modes:
    • SOLO: Quick play against randomized target scores.
    • 2P VS: Local turn-based match setup.
    • WORLD CUP: Tournament-style play mode.
  • Dynamic Pitch & Bowling Conditions:
    • Pitch Types: Dusty, Green, Hard, and Dry variations with distinct pitch colorings.
    • Bowler Styles: Fast, Swing, Medium Pace, and Spinner styles altering ball speed and trajectory.
  • Special Shots & Match Overlays:
    • Ground Shots, Lofted Sixers, and an automatic Power Shot meter triggered at 100%.
    • Arcade-style Match Victory and Match Defeat overlays directly rendered over the pitch canvas.
  • Pure Web Technologies:
    • Zero Dependencies: Single-file HTML/JS executionβ€”no npm install or build step required.
    • Web Audio API: Built-in retro sound synthesis for hits, misses, and match wins/losses.
    • Responsive Canvas: Full support for desktop keyboard layout and mobile touch/drag controls.

Controls Overview

Action Desktop Keyboard Mobile / Touch Screen
Move Batsman Left Arrow / Right Arrow Drag left or right on the pitch
Swing Bat Spacebar Tap pitch canvas
Loft Shot Mode Up Arrow Tap β–² LOFT button
Ground Shot Mode Down Arrow Tap β–Ό GROUND button
Power Shot Auto-triggers at 100% Meter Auto-triggers at 100% Meter

How to Run

  1. Clone the repository: git clone https://github.com/Vimal9RAM-NAP/pixel-cricket.git
  2. Navigate into the directory: cd pixel-cricket
  3. Launch the game: Open index.html in any web browser or use VS Code's Live Server extension.

πŸ“ Repository Structure

  • pixel-cricket/
    • docs/
      • screenshots/
        • gameplay.png β€” Gameplay screenshot
        • menu.png β€” Main menu screenshot
    • index.html β€” Main game code (Canvas, CSS, JS)
    • LICENSE β€” MIT License
    • README.md β€” Project Documentation

Built With

  • HTML5 Canvas β€” 2D graphics rendering and animation loop
  • Vanilla JavaScript (ES6+) β€” Game logic, collision detection, and physics
  • Web Audio API β€” Real-time retro sound effect synthesis
  • CSS3 β€” Custom retro arcade UI layout

License

Distributed under the MIT License. See LICENSE for more information.


Developed by Odd Jobs Dev (Vimal Ram)

About

🏏 A lightweight, arcade-style pixel cricket game built with HTML5 Canvas, CSS, and vanilla JS. Features dynamic pitch conditions, directional shot controls, Web Audio chiptunes, and local tournament modes.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages