This is a test project to try NDS programming, using devkitpro's libnds.
To summarize :
- devkitpro is a toolchain to build games on many Nintendo consoles, such as GBA, Nintendo DS or Wii.
- libnds is a low-level C library which provides every needed feature to use graphics, sound etc..
In addition to make, the aforementioned libnds must be installed on your system to build the project, see here.
This done, you only need to run the make command, it will generate a .nds ROM file.
There are 2 ways to run the game, either on an enumator (like no$gba or DeSmuME), or on real hardware using a R4 card and a micro SD with a copy of the game.
doc/: assets used in READMEinclude/: header filessource/: source filesNDS tutorial (sverx)/: A tutorial on libnds made by sverx, more information herecopy_to_sd.sh: copies the.ndsfile to a SD mounted on/mnt/NDS-SDmake_with_log.sh: same asmake, except that each command is displayedMakefile:maketo build,make cleanto remove build files,make reto rebuild,.ndsfile is generated at the repository root
Here's a screenshot on MelonDS emulator :

This game is like a Pong, with a ball bouncing on edges and on 2 paddles, one controlled by a player and the other automatically moves towards the ball.
The player controls the blue paddle on the left, using up and down arrows of the D-pad.
At the beginning / after each point, the ball spawns on the center and goes on a random direction.
If the ball manages to go behind a paddle, its opponent wins a point.
Both paddles and the ball are displayed on the top screen, and the points count is displayed on the bottom screen.
There was recently a major update to libnds which impacted emulators (DesMuME, no$GBA and melonDS), so here is a pending pull request to melonDS by a libnds contributor, you can compile that branch and use that build.