One of the things that we hear talking to teachers and kids is that they want to make "real" programs/games that run on actual game consoles and devices. While the GameBoy Advance is a little old now, but it fits the bill as a real commercial gaming device. As its a little older, it has the advantages of being cheap, well documented and its relatively easy to get code onto it, so now you can actually make your own game in Sniff, and download it into a cartridge, and the plug it into a GBA and have your own game running on a real device.
Assuming that you're already running Sniff, the next thing you'll need to do is install devkitARM. The instructions for this are a bit hit and miss, and are are directed more towards the Nintendo DS, but you just need to install the main devkitARM package and the libgba package and you're ready to go. Don't forget to set up the environment variables, as instructed on the dkARM install page.
With that done, go to the Sniff/examples/GBA folder, and we're ready to make a program.
make AButton digital input 0
make BButton digital input 1
make selectButton digital input 2
make startButton digital input 3
make rightButton digital input 4
make leftButton digital input 5
make upButton digital input 6
make downButton digital input 7
make leftShoulderButton digital input 9
make rightShoulderButton digital input 8
when start
.forever
..if AButton
...say "A"
..if BButton
...say "B"
..if startButton
...say "start"
..if selectButton
...say "select"
..wait 0.1 secs
All of the GBA buttons appear as digital inputs, so can read them easily. By default the GBA screen is set up in a simple text mode, so you can print things to it using "say". This isn't something you're going to use very much, but putting together the buttons, and "say" allows us to check that everything is working correctly.
You can compile this using the command "gba-sniff buttons.sniff" and you should get a file called buttons.gba which is an actual GBA rom image. The easiest way to play it is to use an emulator - I used openEmu. That allows you to just fire up your ROM on you computer, and you can play it straight away.
However if you want the "real" experience you'll need a "flash cart". A few years ago everyone had one of these, and they were easy to get hold of, but they're a bit more obscure now. If you shop around you can get one, and then just copy your ROM onto an SD card, plug it into your GBA (or an original DS, which can play GBA carts), and you're instantly transported back to 2002.
There is third way which we're currently investigating... Floating around eBay and Aliexpress are handheld consoles that include a GBA emulator. These cost less that £20 and you can download your game straight into one of those via USB, and get a real handheld console experience. We've got one on order, and we'll report back when it arrives.
There's a lot more we need to say about using GBA graphics, sprites and sound - all of which are fully supported in Sniff. There's example code for using them all in the examples/GBA folder, and they work pretty much the same as they do on other Sniff devices, but I'll write more about them in a future blog post.
Hmm, great advice, I will try to use it as soon as I will have time for it. I am very busy person, and only sometimes I let myself to play in different old games using this cool gba emulator https://romsmania.com/emulators/gameboy-advance that works really amazing!
ReplyDelete"Attractive section of content. I just stumbled upon your
ReplyDeletesite and in accession capital to assert that I acquire in fact enjoyed account your
blog posts. Anyway I will be subscribing to your augment
and even I achievement you access consistently fast."
Regards: Eve Hunt
Your style is very unique compared to other folks I’ve read
ReplyDeletestuff from. I appreciate you for posting when you’ve
got the opportunity, Guess I will just book mark this
blog.
Regards: Eve Hunt
Appreciating the time and effort you put into your blog
ReplyDeleteand in depth information you provide. It’s awesome to come across a blog every once in a while that isn’t the same old rehashed
information. Fantastic read! I’ve bookmarked your site and I’m adding your RSS feeds to
my Google account.
Regards:
https://www.techlazy.com/free-movie-streaming-sites-no-sign-up-required/
Your style is very unique compared to other folks I’ve read
ReplyDeletestuff from. I appreciate you for posting when you’ve
got the opportunity, Guess I will just book mark this
blog.
https://www.techlazy.com/free-movie-streaming-sites-no-sign-up-required/
hello!,I like your writing very much! percentage we be in contact extra about your post on AOL? I require a specialist on this area to solve my problem. Maybe that’s you! Having a look forward to peer you.
ReplyDeleteREGARDS:https://www.techlazy.com/websites-to-watch-free-movies-online-without-downloading/
I loved as much as you will receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike
ReplyDeletehttps://www.techlazy.com/websites-to-watch-free-movies-online-without-downloading/
Howdy very cool site!! Man .. Excellent .. Wonderful .. I’ll bookmark your web site and take the feeds also¡KI am glad to search out numerous useful info here within the post, we want work out extra strategies on this regard, thanks for sharing. . . . . .
ReplyDeleteREGARDS:https://www.techlazy.com/live-tv-streaming-sites/
While the GameBoy Advance is a little old now, but it fits the bill as a real commercial gaming device. As its a little older, it has the advantages of being cheap, well documented and its relatively easy to get code onto it!
ReplyDeleteKristi Smith you are really very talented. you are searching in deep about GameBoy . Thanks for sharing such info. i love you Kristi
ReplyDeletereally nice approach of the article. i really like that stuff of information thanks for sharing by OPPO STore UK
ReplyDeleteThis product is very nice, but I will suggest that students should prefer their education because if they will play games all the day, they will harm both their study and future. I hope, many students will follow my guidelines and get success in their lives. Dissertation proposal writing services.
ReplyDeleteWow, happy to see this awesome post. I hope this think help any newbie for their awesome work. By the way thanks for share this awesomeness from read more
ReplyDelete