Create a simple soccer game in KODU where players control a red KODU to push a soccer ball into a goal while an AI-controlled blue KODU tries to push it into the opposing goal. The game will keep score and reset when a goal is scored.
Design Process - Create - Test - Refine
Open KODU Game Lab and create a new world.
Use the Ground Brush to create a flat field.
Add two goal areas (one for each team) using different terrain colors:
Red Goal: A red-colored landscape area.
Blue Goal: A blue-colored landscape area.
Place two KODUs on the field:
Red KODU (Player-Controlled)
Blue KODU (AI-Controlled)
Place a Soccer Ball in the Center of the Field.
Select the Red KODU, then press Enter to open the programming menu.
Add the following instructions:
Movement
WHEN
DO
Keyboard → Arrow Keys
Move
Pushing the Ball
| WHEN | DO | | See Soccer Ball | Move Toward |
Select the Blue KODU and open the programming menu.
Add the following instructions:
AI Movement
| WHEN | DO | | See Soccer Ball | Move Toward |
Pushing the Ball
| WHEN | DO | | Bump into Soccer Ball | Push |
Select the Soccer Ball and open the programming menu.
Add the following logic:
Scoring & Resetting the Game
| WHEN | DO | | On Red Goal (red-colored terrain) | Score 1 for Player & Reset Ball to Center | | On Blue Goal (blue-colored terrain) | Score 1 for AI & Reset Ball to Center |
Play the game and see if:
The Red KODU moves with the arrow keys.
The Blue KODU chases and pushes the ball.
The ball scores when it reaches the goal and resets.
Scores are tracked correctly.
Adjust speed, AI behavior, or ball physics if needed.
Add a scoreboard to display the scores.
Add a timer to set a time limit for the game.
Add a crowd or background to make it more visually engaging.
✅ Soccer ball moves when pushed.
✅ Red KODU moves with the arrow keys.
✅ Blue KODU moves toward the ball.
✅ Goals increase the score and reset the ball.
Now you’re ready to play! 🎮⚽
The KODU Soccer Game assignment aligns with multiple competencies across different categories. Below are the relevant competencies it addresses:
Demonstrate creativity and innovation → Students design and program a soccer game with unique AI behaviors.
Demonstrate critical thinking and problem-solving → Students must debug and refine their game logic.
Demonstrate initiative and self-direction → Students independently develop and test their game.
Collaborate with team members → If done in pairs or groups, students must work together to create their game.
Demonstrate big-picture thinking → Students must understand the overall structure of the game, from controls to AI.
Demonstrate continuous learning and adaptability → They must adjust their code and design based on testing results.
Manage time and resources → Students must complete their project within the given timeframe.
Demonstrate information-literacy skills → They research and apply KODU programming knowledge.
Demonstrate proficiency with technologies, tools, and machines common to a specific occupation → Programming in KODU is a foundational skill in game design and computer science.
Define technology → Students engage in digital game creation.
Identify how technologies have emerged through the use of engineering → Game development and AI behaviors.
Describe how society affects technology and technology affects society → Students can discuss the role of AI in games.
Demonstrate the safe use of a minimum of three tools and/or pieces of equipment as part of the design process → Using KODU’s tools effectively.
Describe the Virginia Department of Education (VDOE) engineering design process → Game development follows a structured process.
Demonstrate the use of an engineering design process → Creating, testing, and refining the game.
Define the goal of a challenge → The objective of the soccer game.
Design a device using criteria and constraints → Programming AI and setting up the game field.
Evaluate viable solutions → Testing AI behaviors and player mechanics.
Select a solution → Choosing the best logic for scoring and AI.
Plan the model or prototype → Laying out the field and KODU behaviors.
Produce a model or prototype → Creating and implementing the game.
Assess the design → Debugging and improving mechanics.
Describe how the solution could be improved → Reflecting on ways to enhance gameplay.
Communicate the results → Demonstrating the game to others.
Use the engineering design process as part of a team → If working in pairs, students collaborate on solutions.
Illustrate how processes change inputs to outputs in any system → Programming in KODU follows input-processing-output logic.
Describe the computation, automation, AI, and robotics contexts of technology and engineering → Students program AI behaviors in KODU.
This assignment strongly supports computational thinking, problem-solving, game design, and teamwork skills, making it an excellent choice for integrating STEM and computer science education.