evanbowman / BPCore-Engine

Lua game framework for Gameboy Advance
The Unlicense
166 stars 10 forks source link

Development instructions #9

Open Mte90 opened 2 years ago

Mte90 commented 2 years ago

It is not clear to me if how to compile or how to start a new project based on this code. There are various examples or shell scripts but no list of requirements...

Also the examples doesn't have instructions on how to compile them so apart the Readme there aren't instructions.

evanbowman commented 2 years ago

I've created a project template here, and linked it from the readme in this repository:

https://github.com/evanbowman/bpcore-project-template/tree/master

Mte90 commented 2 years ago

I will keep discussing here also if there is a repo as it is already opened. So I executed the build and generated NewProject.gba but mgba crashes with a segmentation fault.

Also the build didn't output anything like an error or so.

I will share to you on the gbadev discord the gba rom if it is useful to debug.

Mte90 commented 2 years ago

I was thinking to create a bash script to execute before build.lua that fix the colors of all the bitmaps.

convert background.bmp -type truecolor background.bmp
convert tiles/test.bmp -type truecolor tiles/test.bmp
output=$(./build.lua 2>&1)
if [[ -z "$output" ]]; then
    /usr/games/mgba-qt ./NewProject.gba
else
    echo $output
fi
Mte90 commented 2 years ago

Also the rom after build still keep the name BPCoreEngine and not the one defined in the manifest.