Cyber Invaders: Space Grid · Step 1 of 4

Initializing Space Canvas & Defense Ship

Welcome to Cyber Invaders: Grid Defender! In this first step, you will initialize the 2D deep space canvas (400x400) and render your defense cannon ship at the bottom of the screen (x: 182, y: 355, width: 36, height: 22). Learn how space arcade games represent coordinate systems, entity bounds, and draw primitives across JavaScript, Python, and Java.

What you will learn

Open this interactive lesson · Browse all lessons

In the editor, complete the marked TODOs. Use Stuck on a TODO? to reveal hints or a worked example, then run the lesson checks.