Your fun coding buddy that helps you create amazing things with code. Let's learn and play together!
Copilot is like having a super smart friend who helps you write code! It's easy, fun, and perfect for kids who love to create.
Copilot suggests code as you type, helping you create games, stories, and cool projects faster!
Make your own games, animations, and interactive stories that you can share with friends!
Discover how coding works through experimentation and play. It's like a puzzle game!
See what you can create with Copilot's help. Try changing the code to make something new!
This code makes a cute cat appear on the screen!
// Draw a cat with Copilot function drawCat() { // Draw the body fill("gray"); ellipse(200, 200, 100, 120); // Draw the head fill("gray"); ellipse(200, 120, 80, 80); // Draw eyes fill("yellow"); ellipse(180, 110, 15, 15); ellipse(220, 110, 15, 15); // Draw nose fill("pink"); triangle(200, 120, 190, 130, 210, 130); // Draw whiskers line(170, 125, 140, 120); line(170, 130, 140, 135); line(230, 125, 260, 120); line(230, 130, 260, 135); }
A simple game where you catch falling balls with your mouse!
// Catch the ball game let paddleX = 200; let ballY = 0; let ballX = Math.random() * 400; let score = 0; function setup() { createCanvas(400, 300); } function draw() { background("lightblue"); // Move paddle with mouse paddleX = mouseX; // Draw paddle fill("red"); rect(paddleX, 270, 60, 10); // Move ball ballY = ballY + 5; // Draw ball fill("yellow"); ellipse(ballX, ballY, 20, 20); // Reset ball when it hits bottom if (ballY > 300) { ballY = 0; ballX = Math.random() * 400; } // Check for catch if (ballY > 260 && ballX > paddleX && ballX < paddleX + 60) { score = score + 1; ballY = 0; ballX = Math.random() * 400; } // Display score textSize(20); text("Score: " + score, 10, 30); }
Test your coding knowledge with these fun questions. Can you get them all right?
Find more fun resources to learn coding with Copilot