Skip to content

Base code for 15-466 f20 game4: Choice-Based Game

Notifications You must be signed in to change notification settings

GenBrg/MarryPrincess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marry Princess

Author: Jiasheng Zhou <jiashen2@andrew.cmu.edu>

Design:

In this game, you need to adventure in the maze and get enough money to marry the princess. There are treasure and monster in the cave. The maze, treasure and monsters are all random.

Text Drawing:

All the text are generated as follows: the 2d textures for the text are generated once when you set the text using SetText method in DrawFont class. The shaping and position are calculated on each draw call. Each glyph is displayed by 4 vertexes containing the position and texture calculated before.

There is dialog and menu loading where .dialogs file contains all the static dialogs in the game and .showdialog file contains the initial dialogs shown in one scene.

Screen Shot:

Screen Shot

How To Play:

W: Move player up / previous dialog
A: Move player left
S: Move player down / next dialog
D: Move player right
Enter: Confirm

Sources: Menu sound: https://github.com/15-466/15-466-f19-base6/blob/master/MenuMode.cpp Karate Chop.m4a: https://freesound.org/people/ccolbert70Eagles23/sounds/423526/ Coins - 01.wav: https://freesound.org/people/DWOBoyle/sounds/140382/ Level Up: https://freesound.org/people/qubodup/sounds/442943/ Die Sounds: https://freesound.org/people/vox_artist/sounds/512159/ Wedding March Synth: http://free-loops.com/2080-wedding-march.html

This game was built with NEST.

About

Base code for 15-466 f20 game4: Choice-Based Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C 53.7%
  • C++ 42.0%
  • Python 4.2%
  • Makefile 0.1%