CODE CREATIVE
AGAR.IO
Eat, grow, win
TASK #1
The "Agario" program asks users to create a game based on Agario. Your goal is to eat as many objects on the screen. But you need to remember that some objects are more valuable than others.

The first task is to watch the introduction video below
to get an idea of what the project entails. An extension exercise here is to program a third player.
After watching the video, be sure to
open up the "Starter Pack"
. Make sure you click on the remix button after Scratch opens up so that it saves on your account.
TASK #2
TASK:
In this task, you will start the game with an intro background and sound effect.

HINT #1:
You will need to use the
"Green Flag"
block,
"Switch Background"
, and the
"Play Sound"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #3
TASK:
Cause the intro background to whirl before switch to the game background.

HINT #1:
You will need to use the
"Repeat"
and
"Change Effect"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #4
TASK:
Cause the Player sprites to only show after the game background twirled into place.

HINT #1:
You will need to use the
"Broadcast"
,
"When I Recieve Broadcast"
, and
"Show"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #5
TASK:
Make the Player 1 sprite controllable using 'wasd'.

HINT #1:
You will need to use the
"When key Pressed"
,
"Repeat Until"
,
"Not" operator
, and
"Key Pressed"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
CHALLENGES EXERCISES
  1. Make the Player 2 sprite controllable using up, down, left, and right.

TASK #6
TASK:
Cause the players to appear in the correct locations and the background music to start playing when the game starts.

HINT #1:
You will need to use the
"Go to X & Y"
,
"Forever"
, and
"Play Sound Until Done"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #7
TASK:
Make the Flower sprite appear at random locations at random intervals.

HINT #1:
You will need to use the
"Forever"
,
"Wait"
,
"Create Clone"
,
"When I Start As Clone"
, and
"Go to X & Y"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #8
TASK:
Make the Swirl and Golden Balls appear randomly. Remember, that the Swirl is rarer than the Flower and the Golden is rarer than the Swirl.

HINT #1:
You will need to use the same blocks as in the previous tasks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #9
TASK:
Allow the player sprites to eat the Flower ball.

HINT #1:
You will need to use the
"Forever"
,
"If"
,
"Touching Sprite"
, and
"Delete Clone"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
CHALLENGES EXERCISES
  1. Allow the players to eat the Swirl and Golden Balls.

TASK #10
TASK:
Keep track of the score for each player and show the score after the intro ends and the game starts.

HINT #1:
You will need to create two variables and use the
"Set Variable"
,
"Hide Variable"
, and
"Show Variable"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #11
TASK:
Make the player sprites size start at 3% and increase based on their score.

HINT #1:
You will need to use the
"Set Size"
,
"Set Size To"
, and the math operator blocks.

CHECK UP:
Watch the video below to check that you completed the task.
CHALLENGES EXERCISES
  1. Make Player 2's size based on their score as well.

TASK #12
TASK:
Cause the game to end when the player's size reaches 70%, cause all the other sprites and scores to hide. Also, cause the background music to stop and the Explosion sound effect to play.

HINT #1:
You will need to use the
"Broadcast"
,
"If"
, and the
"Play Sound"
blocks.

CHECK UP:
Watch the video below to check that you completed the task.
TASK #13
TASK:
Add the Golden Snitch as a randomly appearing sprite. Be sure to utilize all of the

HINT #1:
You will need to use the
"Glide to X & Y"
and the blocks you used for Task #8.

CHECK UP:
Watch the video below to check that you completed the task.
Congratulations, you have created Agario!
ADDITIONAL CHALLENGE EXERCISES
  1. Add other ball sprites that cause harm to your opponent.
  2. Add an ending animation in which the winner continues to grow.
  3. Allow the Golden Snitch to be controllable by a third person using the mouse.
  4. Add an ending screen animation using a graphic effect.