Skip to content
A simple SDL shooter space game (previously called SpaceNX)
Branch: master
Clone or download
Latest commit e6aa357 Feb 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml more travis fixes Feb 17, 2019
LICENSE Create LICENSE Jan 19, 2018
Makefile fix crash on 5.x, fix sdl2 controls and graphics Jul 22, 2018
Makefile.libnx more travis fixes Feb 17, 2019
Makefile.pc more travis fixes Feb 17, 2019
Makefile.switch fix crash on 5.x, fix sdl2 controls and graphics Jul 22, 2018
Makefile.wiiu more travis fixes Feb 17, 2019
README.md more travis fixes Feb 17, 2019
dependency_helper.sh permissions Feb 17, 2019
draw.c fix crash on 5.x, fix sdl2 controls and graphics Jul 22, 2018
draw.h add font rendering Dec 30, 2017
font.h add font rendering Dec 30, 2017
icon.jpg add libnx+sdl1 build and makefile Mar 3, 2018
images.c game playable, add enemies and bullets, fix crash Jan 5, 2018
images.h game playable, add enemies and bullets, fix crash Jan 5, 2018
input.c
input.h fix crash on 5.x, fix sdl2 controls and graphics Jul 22, 2018
main.cpp more travis fixes Feb 17, 2019
program.c
program.d more travis fixes Feb 17, 2019
program.h more travis fixes Feb 17, 2019
space.c fix crash on 5.x, fix sdl2 controls and graphics Jul 22, 2018
space.h fix color and size issues, compile for switch Dec 30, 2017
trigmath.c use math libs for trig functions Dec 31, 2017
trigmath.h use math libs for trig functions Dec 31, 2017

README.md

Space Game NX Build status

This is a port of Space Game to the Nintendo Switch.

The game is currently fully playable, but there's no music, enemy count is limited to compared to the Wii U version, and some Switch-specific features are planned.

For a more simple SDL2 switch example, you can see sdl-hello-world.

Compiling

For Switch

A spacenx.nro file will be produced, which can be used on the switch through hbmenu. It can be compiled using libtransistor or libnx.

Using libtransistor

Clone and setup libtransistor, for more detail see this post. Then run the following command:

make -f Makefile.switch

Notice: currently libtransistor builds are crashing on 5.x. The latest release uses libnx for now.

Using libnx

Setup libnx and devkitarm64 using the installer. At the time of writing, this code uses devkitA64 r10-2. Then run the following command:

make -f Makefile.libnx

For PC

This version of Space Game is ported to sdl2, so the same code can be compiled on the computer as well. Running make -f Makefile.pc creates a binary file that can be executed on the computer using the sdl2 library is required to compile it. It also plays using gamepad controls, so the keyboard won't work to control it.

License

This program is licensed under the MIT license, see the original repo for more information.

You can’t perform that action at this time.