2D Game Design Project 2
Let's work with tiled maps and animated
sprites
Due
Nov 11th at 11:59 pm (this is a holiday - please plan accordingly)
For the night class at least I will overlap this with the next game
design project.
Summary: In this project you will build a proto-game which will
have a tiled map and animated sprites.
This Project:
Make a proto-game using ebitengine (v2) that includes
- Your window must be at least 500x500 pixel and at most
1000x1000 pixels.
- A tiled map
- the tiled map should be read in from a tmx file and rendered on the
game window
- it must be at least 20x20 tiles
- Use the camera library that we demoed in class to view a part of the
map centered on the player.
- There must be 15+ good items randomly distributed around the map
- draw them
- when the player picks one up, increase a collection count which is
displayed to the player at all times on the screen
- there should be five bad items randomly distributed on the map.
- if the player touches one of these items, the game ends.
- move to a game end screen and don't let the player plan any more.
- if the player collects 9 good items, they may move to the next
level.
- after collecting 9 good items, if the player goes to the
gate/door/portal, they move to the next level
- The next level is a new tiled map which must also be at least 20x20
tiles and is a second tmx file.
- Two animated 'NPC' sprites.
- these sprites can either move back and forth or do their animated
movement in place.
- they should be on the second map.
- An animated sprite player character.
- it should animate when moving
- and have a different animate for moving up-down vs left-right
- The player should not be able to move off of the map
Extra requirements:
- Make sure your project name contains your name and some indication
that this is project2
- use the go:embed directive and load your assets from the embedded file
system rather than loading from the disk
- make sure your assets are in a tree of subfolders - not with your
code.
- Be sure to include a readme with
- your name
- anything you didn't finish
- directions for how to use it.
- particularly how to move/control the player sprite
- and what are good and bad items
- how do I recognize the gate/door/portal
- tell me how to recognize your NPC sprites.
Submission: Submit as usual by sending me a collaboration invite
via github.