Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Robot Game. Learn Java for FTC.

Create a playable 2D robot game while learning Java, debugging, and drivetrain concepts that connect directly to FTC robotics.

11 sessions · 90 minutes each · No Java experience required

The completed robot game with a robot, obstacles, balls, and a goal

You will begin by moving one robot around the screen. By the final session, you will have built collisions, collectible balls, directional firing, scoring, and a four-wheel mecanum drive.

What you will learn

  • Use Java variables, conditionals, loops, methods, and classes to solve game problems.
  • Work with coordinates, angles, vectors, and mecanum wheel-power calculations.
  • Diagnose problems by observing the game, forming a hypothesis, and experimenting with the code.
  • Build, run, and change a Java project in Android Studio.
  • Save and share your work with Git and GitHub.

Start small and build from there

In the first session, you draw a robot and make it move with the keyboard.

The Session 1 game with a movable robot

Each later session adds one meaningful capability. You will run the game frequently, see the effect of each change, and finish every session with a playable result.

Course sessions

Read the course outline for an overview, then follow the tutorials in order:

  1. Make the Robot Move
  2. Make Movement Consistent
  3. Avoid Obstacles
  4. Collect and Score
  5. Fire Projectiles
  6. Shoot into a Goal
  7. Rotate the Robot
  8. Drive in the Direction the Robot Faces
  9. Aim and Fire in Any Direction
  10. Drive with Mecanum Wheels
  11. Normalize Wheel Powers

Getting started

The Getting Started guide is for self-paced learners who need to prepare Android Studio, clone the course, open and run the starter game, and save their progress with Git. If you are taking this course with an instructor, follow your instructor's setup directions instead.

Reference games

Each reference game is a complete project showing the required result at the end of that session. Use one to compare your code with the expected result or to catch up before starting the next session.

  1. Session 1 reference game
  2. Session 2 reference game
  3. Session 3 reference game
  4. Session 4 reference game
  5. Session 5 reference game
  6. Session 6 reference game
  7. Session 7 reference game
  8. Session 8 reference game
  9. Session 9 reference game
  10. Session 10 reference game
  11. Session 11 reference game

License

Copyright 2026 Kevin Baca

Licensed under the Apache License, Version 2.0. Existing third-party components retain their original licenses and copyright notices.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages