Assignment 3 — Blocky World

Trey Lutton  |  tlutton@ucsc.edu  |  CSE160 — Spring 2026

Please use a browser that supports "canvas"
Settings

Performance

No stats yet.

Controls

Move W A S D
Pan camera Q / E or mouse (with cursor lock)
Lock cursor Shift + Left Click on canvas
Unlock cursor ESC (while locked)
Remove block Left Click (while cursor locked)
Poke ox Shift + Right Click on canvas

Story / setting

This is Olaf. He spends his days relaxed, wandering around this courtyard grazing. He has never questioned the stone walls around him, he has no knowledge of an outside world. It may sound like a mundance existence, but he is safe and well-fed, and entertained by a steady stream of passerbys, often stopping to exchange bows.

You have the power to free Olaf from his prison, and show him life beyond the stone walls. Will you tear down the walls? or leave him to his blissful ignorance?

Notes

Improved performance by using a static vertex buffer and a static UV coordinate vector.

Added collision detection that prevents player from walking through objects.

Added a randomized movement algorithm for the ox using the animation from asg2.

Added collision detection between the ox and blocks.