4 ms·
Butano: Modern C++ high level GameBoy Advance engine
- aliswe 6y agoI remember trying to make a C compiler for SNES almost 15 years ago. The expert on the SNES architecure who I was working with was 14 years old.
- wk_end 6y agoI'm sure you're just throwing in a personal anecdote of interest and already know this, but for readers unfamiliar with these pieces of hardware: The SNES (early 90s) and the GBA (early 2000s), despite roughly similar graphical capabilities, are vastly different machines. The SNES uses a 65816-based architecture running at ~3MHz that's extremely hard to compile C down to while still getting acceptable performance/code size - almost all games for it were coded in assembly language. By comparison, the GBA uses an ARM7-based architecture running at ~33MHz. GCC was available for it literally before it came out. Even though I'd experimented a bit with QBASIC when I was younger, plugging away on the GBA when I was around 14 was how I learned C, how computers really work at a low-level, and roughly speaking, how to "really" code. So this isn't a GBA C++ compiler - that's existed for ages. This is a "just" game engine. It's super cool that people are still working on stuff like this - the GBA is a very fun platform to develop a game on, at a nice sweet spot between straightforward enough to get started on, powerful enough to make something cool, not so powerful that you need a team of dozens to make something impressive (for the platform).
- MaxBarraclough 6y agoAny idea what became of them?
- aliswe 6y agoSorry, was confused by "them". Yeah, he is basically the creatpr of all the big programming tutorials on snes programming. But to be such a giant he was mighty uninterested. He wanted to get into making music instead.
- BearOso 6y agosnesc by lordtech?
- deleted 6y ago[deleted]
- ArtWomb 6y agoBeautiful! Is sprite rendering the only way to draw pixels to the screen? And is the Audio API of real time synth?
- lostgame 6y agoLooks like it supports raster effects, but from what I'm seeing this engine does not e.g. support writing directly to the framebuffer.
- msk-lywenn 6y agoThere is no framebuffer on the GBA, just sprites and tiled backgrounds. Although if it's like on the DS, I don't recall exactly, you can setup a background in such a way that it emulates a framebuffer. Handy for software 3D.
- bluedino 6y agoThere are bitmap modes on the Advance: https://www.coranac.com/tonc/text/bitmaps.htm https://www.coranac.com/tonc/text/bitmaps.htm
- deaddodo 6y agoNo, you can directly rasterize to the screen buffer: https://www.coranac.com/tonc/text/bitmaps.htm https://www.coranac.com/tonc/text/bitmaps.htm However, you’re limited to the CPU’s (relatively) mediocre processing power. This is exactly how some of the raycasted game engines were built, though: https://m.youtube.com/watch?v=eD1RRESSF6Y https://m.youtube.com/watch?v=eD1RRESSF6Y And, if you look at open source raycaster engines, they’ll use either Mode 3 or Mode 4, usually with a background enabled: https://github.com/jduranmaster/GBA-caster/blob/dd62073a4371c143e7e57f789cde38a3abbf362f/gbaRaycaster_ver1.c#L108 https://github.com/jduranmaster/GBA-caster/blob/dd62073a4371...
- bArray 6y agoWorth also mentioning smaller game engines for devices like the GameBoy (Color): https://github.com/Zal0/ZGB https://github.com/Zal0/ZGB
- klavinski 6y agoThere are also higher-level tools to create GameBoy games, such as GB Studio: https://www.gbstudio.dev/ https://www.gbstudio.dev/
- jscoder0 6y agoLooks like we can make mario :D
- harrygeez 6y agoI'm a little confused. So is this better than an emulator?
- soneil 6y agoGame engine, not emulator. It's for creating games that run on the GBA (.. or on a GBA emulator)