Honors 104.502 Lecture 9 – Shuffle Cup
Agenda
- what ?s
- mouse click raycasting
- linear interpolation (lerp)
- shuffling cups
Note
Today we start building a new game inspired by your paper tile demos last week. It goes by many names (Thimblerig is the best), but it’s a classic shell game. A pea (or ball) is hidden under one of three nutshells (or cups). The shells are shuffled and the player must identify which one the pea is under. We’ll call our version Shuffle Cup.
The bulk of our thinking today will be spent on animating the cups—lifting them when they are clicked on and shuffling them at the start of each round.