Play in Fullscreen Mode
What is This Prime Number Identification Game?
â Objective
- The player drives a car and must steer into the lane with the correct number type â either PRIME or COMPOSITE â as shown by the label below the car.
- Hitting the wrong number type or failing to react in time results in losing a life.
đšī¸ How to Play
- Controls:
- Keyboard: Use â/â arrows or A/D to switch lanes.
- Touch: Tap the left/right side of the game area.
- Scoring:
- Score a point by hitting the correct number type.
- Lose a life by hitting the wrong one.
- You start with 3 lives.
- Game Over: Happens when you lose all your lives.
đĸ Number Rules
- Prime Numbers: Only divisible by 1 and itself (e.g. 2, 3, 5, 7âĻ)
- Composite Numbers: Divisible by more than 2 numbers (e.g. 4, 6, 8âĻ)
- Number 1: Is neither prime nor composite, and must be avoided.
âī¸ Features
- Dynamic Difficulty: The number range and game speed increase with score.
- Responsive Design: Adapts to screen size; suitable for desktop and mobile.
- Audio Feedback: Correct/wrong move, countdown, game over, and lane change sounds.
- Visual Feedback: Boxes flash green (correct) or red (wrong).
- Verification Check: Ensures the game is hosted properly and blocks usage if a required “More Games” link is missing.
đ Implementation Highlights
- HTML: Contains structure and all screens (start, instructions, game over).
- Canvas: Used for drawing the car, road, obstacles, and label.
- JavaScript:
- Asset preloading and readiness checks.
- Lane calculation and obstacle generation.
- Collision detection and game state management.
- Responsive resizing.
- Verification system for host domain validation.
You can play all other versions of Monkey Drive Games.