Skip to content

Latest commit

 

History

History
88 lines (63 loc) · 3.13 KB

README.md

File metadata and controls

88 lines (63 loc) · 3.13 KB

Pigs n Kings

Pigs n Kings

Build Pigs n Kings for the 32blit

Pigs n Kings (c) 2020-22 by SwordLord - the coding crew

A jump and run game for the 32blit handheld console.

Fight as the King against the evil Pigs and hunt them through your Castle. See our Wiki for all the story about that.

This game is still work in progress. No finished game yet.

DANG!

The game uses the SwordLord DANG! (Dainty Animations 'N Gears) Game Framework for the 32blit handheld open game console.

See the DANG project website for more details.

Download / Builds

This project does auto compile a binary for the 32blit platform. See the releases section for a recent build.

Please bear in mind that we still are in the development phase. The game is not ready for prime time yet.

Development Howto

This section contains all the relevant information to build the pigsnkings game yourself.

This game is making use of two other projects. The 32blit firmware / base and the DANG game framework. Both these projects are integrated as git submodules in the /lib folder to this repository.

How to set up

Initial download of all source code:

git clone https://github.com/swordlordcodingcrew/pigsnkings.git
cd pigsnkings
git submodule update --init --recursive

How to regularly update the repository

Update the project after that (making sure, to update the submodules as well):

git pull
git submodule foreach git pull origin master

How to build the game

32blit-hw

mkdir build.stm32
cd build.stm32
cmake .. -DCMAKE_TOOLCHAIN_FILE=../libs/32blit-sdk/32blit.toolchain
make

Upload the resulting pigsnkings.blit file to your 32blit.

Make sure to clean the build.stm32 folder before making if you change the build toolchain.

Emscripten

First git clone and prepare emsdk. (Further reading: Emscripten docs)

git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh

Then cd to pigsnkings and build as follows. (Further reading: 32blit readme)

mkdir build.em
cd build.em
emcmake cmake .. -D32BLIT_DIR="/absolute/path/to/32blit-sdk"
make
python3 -m http.server

Connect to the given address of the server and enjoy.

Licence

SwordLord Pigs n Kings sources and tools are released under the AGPLv3 Licence.

Graphics, Tracks and Sound Effects are copyrighted to their respective owners. SwordLord makes sure to get the respective licences from the owners for this, official version of the game. If you fork this game, make sure you either change these resources or get your own licence.