Giter Site home page Giter Site logo

mystery-guy's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.