Skip to main content

πŸ¦” 1b - Animating Sanic, Our First Game Character

Hello everyone, by the end of this class, you will know enought to move around your first videogame character: Sanic, the hotdog!

Introducing Mister Sanic

In todays lesson we will be making Mr. Sanic over here move around and collect coins!

The following code will print out the environment of Sanic, don't worry about understanding it yet!

Canvas game not available on Piston

This lab used a Trinket canvas / game embed (Sanic). Piston cannot host that UI.

Use the written steps and any screenshots on this page; rebuild the game locally if you still have a copy of the starter.

:::

Introductory Exercise​

Help Sanic pass through the third coin!

The following program makes Mr. Sanic pass through 2 coins. Please modify the program so Sanic can also pass through the third coin!

Canvas game not available on Piston

This lab used a Trinket canvas / game embed (Sanic). Piston cannot host that UI.

Use the written steps and any screenshots on this page; rebuild the game locally if you still have a copy of the starter.

:::

Sanic! You are almost there​

Fix the following code

The following program makes mr. Sanic do the wrong circle. How do you fix this code?

Canvas game not available on Piston

This lab used a Trinket canvas / game embed (Sanic). Piston cannot host that UI.

Use the written steps and any screenshots on this page; rebuild the game locally if you still have a copy of the starter.

:::