Coding Exercises

Movement and Controls

Move 01: Basic

A player character and control arrow buttons are displayed on the screen. When they are pressed, the player character moves in the direction of the arrow. When each button is pressed, it broadcasts a call that the player character receives and executes a particular code (movement)

https://share.catrob.at/pocketcode/program/54966 

Move 01: Basic
Move 01: Basic

Move 02: Smooth + Button Press

The movement is now smooth: the player character glides across the screen and slows down before stopping. It also changes its look in the direction its moving to. The arrow buttons appear to sink down and return up when pressed.

https://share.catrob.at/pocketcode/program/54970

Move 02: Smooth + Button Press
Move 02: Smooth + Button Press

Collision and Bouncing

Collision 01

An egg is now displayed on screen. When the player character touches the egg:

  • His mouth closes.
  • A sound is played.
  • A message is displayed.
  • The egg disappears.

https://share.catrob.at/pocketcode/program/54972

Collision 01
Collision 01

Move 03: Bounce

Using the Image Editor, the developer draws a labyrinth or maze of solid walls on an empty background. A new character is placed at the end of the maze. The player must reach that character. Every time the player character touches the walls of the maze, it bounces a little in the opposite direction. When the player character reaches the other character: a sound is played, a message is displayed, all scripts are stopped.

https://share.catrob.at/pocketcode/program/55474

Move 03: Bounce

Character Actions and Interactions

Actions 01: Pick up, Carry, Drop

An egg is displayed on a random location on the screen.

The player must reach the egg.

When the player character touches the egg:

  • A basket icon appears on the bottom right corner.

When the basket icon is pressed:

  • The egg moves with the player.
  • An empty basket is displayed.

When the empty basket icon is pressed:

  • The egg is dropped and no longer moves with the player.

https://share.catrob.at/pocketcode/program/54973

Actions 01: Pick up, Carry, Drop
Actions 01: Pick up, Carry, Drop

Actions 02: Chaser

A new character chases the player around the screen.

When the opposite character touches the player: a sound is played, a message is displayed and the game is restarted.

https://share.catrob.at/pocketcode/program/54975

Chaser
Chaser

Mini Game 01: Pick up, escape, drop and launch 

The player must reach the egg, touch the basket icon to pick it up, bring it to the backpack at the bottom right of the screen and drop it there.

When the egg is dropped on the backpack, the backpack becomes a rocket and a planet appears on the top right corner.

When the rocket is pressed, it launches for the planet.

All of this while the player tries to avoid the chaser.

https://share.catrob.at/pocketcode/program/54980

Mini Game 01
Mini Game 01: Pick up, escape, drop and launch

Random Movement

Random Walk 01

An owl is displayed on the center of the screen and loves randomly around.

Random Walk 02

The owl is displayed at a random location on the top half of the screen and if it crosses to the bottom half; it is bounced back up to the top half.

Random Walk 03

The same as before but with code better organized and optimized.

https://share.catrob.at/pocketcode/program/55064

Random Walk 03
Random Walk 03

Random Walk 04

Instead of an owl, we now use a penguin, which changes looks as it moves, to simulate a more natural appearance of movement.

https://share.catrob.at/pocketcode/program/55065

Random Walk 04