-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
879 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,8 @@ | ||
# gameframework2d (GF2D) | ||
a collection of utlitity functions designed to facilitate creating 2D games with SDL2 | ||
This project is specifically intended to function as an educational tool for my students taking 2D Game Programming. | ||
# Keystone | ||
|
||
Currently the project is in a WIP state, however it is functional with sample projects showcasing rudimentary scrolling shooters, | ||
platformers, and adventure games. | ||
Pokemon-like RPG | ||
|
||
The master branch is kept deliberately minimal to allow students to build out systems as they are learning. | ||
Other branches have more complete system: Collisions, menus, input abstraction. | ||
|
||
# Build Process | ||
|
||
Before you can build the example code we are providing for you, you will need to obtain the libraries required | ||
by the source code | ||
- SDL2 | ||
- SDL2_image | ||
- SDL2_mixer | ||
- SDL2_ttf | ||
There are additional sub modules that are needed for this project to work as well, but they can be pulled right from within the project. | ||
Performable from the following steps from the root of the cloned git repository within a terminal. | ||
|
||
Make sure you fetch submodules: `git submodule update --init --recursive` | ||
Go into each submodule's src directory and type: | ||
`make` | ||
`make static` | ||
|
||
Once each submodule has been made you can go into the base project src folder anre simply type: | ||
`make` | ||
|
||
You should now have a `gf2d` binary within the root of your git repository. Executing this will start your game. | ||
- WASD to move | ||
- You can't move through trees or other people | ||
- Press enter to interact with people | ||
- Be careful you might start sliding weeee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sappurr": | ||
{ | ||
"entry1":"It taps into trees with its root-like fangs, drinking the sap from within.", | ||
"entry2":"If you invite one in your home, expect to find holes in your furniture soon." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"hatkid_show_egglet" : { | ||
"english":"Hey, can you show me an Egglet?" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef __K_MENU_H__ | ||
#define __K_MENU_H__ | ||
|
||
#include "gfc_text.h" | ||
#include "gf2d_sprite.h" | ||
|
||
void DrawHUD(); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.