Code Strikers is a browser-based soccer programming game built with HTML, CSS, and JavaScript. Players control an attacker using code commands to move, avoid defenders, and score goals across multiple levels. The game features:
- Multiple levels with increasing difficulty
- 1v1 mode for local multiplayer
- Upcoming AI agent (reinforcement learning) for single-player challenge
- Select a Level: Use the level dropdown to choose a level or mode.
- Write Code: In most levels, type code commands in the code editor to control your player. Available commands:
moveRight()– Move 1 space rightmoveLeft()– Move 1 space leftmoveUp()– Move 1 space upmoveDown()– Move 1 space downshootBall()– Shoot the ball 4 spaces right
- Run Your Code: Click Run to execute your code and watch your player move.
- Score Goals: Avoid defenders and score by shooting the ball into the goal.
Move right until close to the goal and shoot to score. No defenders.
Two defenders in front of the goal. Move around them, then shoot to score (no loops required).
More difficult: introduces while loops and inFront(). Move around defenders to score.
Defenders move up and down. Time your movement and shoot to score!
Advanced challenge (details in-game).
Face off against an AI-controlled javascript defender will test your code and skills against a smart, learning opponent.
Play against a friend locally:
- Player 1: Use WASD keys
- Player 2: Use Arrow keys Score goals to win! The scoreboard tracks each player's score.
- Animated soccer field and sprites
- Code editor with syntax highlighting
- Real-time feedback and error checking
- Multiple levels and increasing difficulty
- 1v1 local multiplayer
- (Coming soon) AI agent for single-player challenge
- Open
index.htmlin your browser. - Click Start to begin.
- Select a level and start coding!
All images and assets are in the assets/ folder.