You are browsing as a guest. Sign up (or log in) to start making projects!

Snake GBA

  • 10 Devlogs
  • 14 Total hours

Basic Snake game on the GameBoy Advance

Ship #1 Pending review

Snake written for the Nintendo GameBoy Advance

This was written entirely in C with no game engine! Even the sprites and tiles themselves are just numbers in lists!

TO PLAY: Go to https://rayzchen.github.io/snake-gba/. START button is mapped to Enter.

If the game feels slow, download the ROM and run in an emulator of your choice! (mGBA, NanoBoyAdvance or the linked online emulator etc.)

  • 10 devlogs
  • 14h
Try project → See source code →
Open comments for this post

1h 14m 33s logged

More text!

The game now displays PRESS START, GAME OVER and can be played as many times as you want!

Good luck beating the game… (let me know if you get the maximum score of 323!)

0
0
10
Open comments for this post

52m 29s logged

Apples!

The snake can now eat apples to grow longer.

Much time was spent debugging a very slow apple placement function.

0
0
12
Open comments for this post

2h 13m 1s logged

Controls!

After messing with interrupts and realising they won’t work with the basic functions I’ve written, I ended up scrapping that feature (lazy CPU waiting for vsync).

Instead, I implemented the snake as a list of positions and moved it around the screen!

0
0
16
Open comments for this post

2h 36m 2s logged

Basic setup

After not developing for GBA for a few years, I have had to read up on the memory mapping and general features. Here is a simple map comprised of an “apple” and three “snake bodies”.

0
0
12

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…