Goals for this homework

  • Work with pixel-based 2D sprites
  • Become familiar with using JSONs to build GameObjects

Setup: Download the Codebase

This week, the project is a bit smaller than last week. We're providing you with a base project to build upon throughout the assignment. You can download the starter code here: starter code. Set up as you would any other project.

Building the Game

We have completed the Ch 33 instructions up until the "Constructing Cards from Sprites" section -- start your project there and follow the instructions as written. Follow the gradescope assignment Homework 5 for the code snippets (typed so you can copy/paste easier) and some guiding questions.

Additional Features

Congrats, you've completed the base project! Now we have two additional features we'd like you to implement. You have some creative freedom, but you must do both extensions.

Change the Card Decorators

We’d like you to customize your deck of cards. Here are the expectations:

  • Select a theme from either the provided options, a website like OpenGameArt, or something you find on your own. Change the card sprites in the game to be sprites from this theme.
  • Change the Ace card to be a face card. It should have its own FaceCard sprite rather than one pip in the middle. This should not involve creating new code, just altering existing code.
  • We expect the aesthetics to be reasonably polished! This may involve changing colors, scaling sprites, etc. It is not the most important consideration, but is a metric in grading nonetheless.
  • Hint: The beginning of Ch 33 may be a helpful reference.

Add Player Feedback

You’ll notice at this point the game does not end when you complete a round. We’d like to change that, but you do not need to implement the scoring system fully. Here are the requirements:

  • You’ll need to reference Ch 34 of the textbook. The following sections are the ones you will follow: “Managing Prospector Rounds,” “Adding Round Delay,” and “Giving the Player Feedback on their Score.”
  • It is up to you how you implement these sections without the scoring mechanic. We just want text to appear when you win or lose a level.
  • This should only involve making one additional file (UITextManager.cs). Beyond that, you will just alter existing code and work in the Unity Inspector.