Skip to content

Mystery Guy - A small game made with C++ and SDL2.

License

Notifications You must be signed in to change notification settings

zhaospei/Mystery-Guy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mystery Guy - A small game made with C++ and SDL2.

Mystery Guy C++/SDL2 Game by Tuan-Dung Bui.

Author: Tuan-Dung Bui

Student ID : 21020006

Game Demo: https://youtu.be/TkuNdcEBiwg

bsp_img

Introduction

This is my first game made in C++. I made it in about 2 weeeks. Some bugs in this game i haven't fixed @@. I hope you enjoy with it. This is also my project for Advance Programing Subject.

Only dependencies are the SDL2, SDL2-image, SDL2 ttf and SDL2 mixer libraries.

All code was written by me.

Build pre-requisites

Install C++, Mingw64.

Install MakeFile, SDL2, SDL2-image, SDL2 ttf and SDL2 mixer.

FreeBSD:

$ pkg install make sdl2 sdl2_image sdl2_mixer sdl2_ttf

OS X (brew):

$ brew install make sdl2 sdl2_image sdl2_mixer sdl2_ttf 

Building and running

$ mingw32-make -f MakeFile
$ ./main.exe

The compiled .exe is located in root folder. For it to run, you must copy the root folder all .dll files, ./lib folder all .a files, ./include/sdl all .h files as well as from your SDL installation to its directory.

You can download code all files config here: https://drive.google.com/file/d/1j13i8Mpe79brcpdfoDvGUCwuOOy7btRB/view?usp=sharing

How to play

Kill the monsters and unlock the mysterious door. Try to pick up golds as much as possible.

Controls

  • Arrow to move the player left or right
  • A to attack
  • S to move quick
  • Spacebar to jump

How to win

There are five rounds. If you can go to the 5th door, you will win this game. Let's enjoy it!

Game Demo

You can see it on Youtube: https://youtu.be/TkuNdcEBiwg

Sources for Artwork

All artworks from: https://o-lobster.itch.io/platformmetroidvania-pixel-art-asset-pack?fbclid=IwAR3TtVtFpgx_XIyhyS-poWvypx46EnQ5L7Si8DxbpsHqe9JQAXP-7nuUb8Y

Contributing

animated

Pull requests are welcome! For major refactors, please open an issue first to discuss what you would like to improve. Feel free to create a fork of this repository or use the code for any other noncommercial purposes.