275 points · by broAhmed · 7y ago · 33 comments
Allegedly, if you didn't do this, Nintendo would reject your game outright.
Just type "ps ax" into your shell, most processes will be in state "S", sleeping because of a system call.
My point is, you kind of have to go out of your way to spin CPU without actually having any work in front of you.
For embedded software without an os it is not uncommon when not explicitly doing something to enter a spin table.
So there's not much difference between a Game Boy and a modern computer in that particular regard, other than the many thick abstraction layers between the system call invocation and the halt instruction.
* Part 1 - https://invisibleup.neocities.org/articles/18/
* Part 2 - https://invisibleup.neocities.org/articles/19/
* Part 3 - https://invisibleup.neocities.org/articles/20/
It was cool at first, but I ended up too deep in the weeds with platform idiosyncrasies to really get much actual C knowledge.
Of course, there are more intricacies the deeper you dig below the surface, but for the original Game Boy, that is more of a concern for emulators that aim at going towards 100% compatibility. As a game developer, you can probably stay at the surprisingly small apparent surface for quite some time (and at least the earlier Game Boy games often did).
Things like converting a png to a bitmap array for storage were always fun, but tooling mostly handled that for you.
The apis like dma and io? Or something else?
Neocities' description truly resonates with me:
> Neocities is a social network of 216,300 web sites that are
> bringing back the lost individual creativity of the web. We
> offer free static web hosting and tools that allow you to
> create your own web site. Join us!https://web.archive.org/web/19981212025222/http://www.geocit...
IMHO, it's mostly just that "you can freely host a static website on the same services programmers use to freely host source code" isn't a well-known thing outside of the programming community. GitHub/GitLab/etc. should do some outreach at the digital-art/interactive-media departments of universities.
2. Create the game! Sprites, animations, sounds, game code for all parts.
Then I test play, and iterate until it’s ready to share.
Starting from scratch like this website is like starting from step zero, not step one.