2023-02-26 09:29:06 +11:00
|
|
|
# Learn agb part I: Pong
|
2022-01-02 09:35:08 +11:00
|
|
|
|
2023-02-26 09:29:06 +11:00
|
|
|
In this section, you'll learn how to make a simple pong-style game for the Game Boy Advance using agb.
|
|
|
|
By following the steps in this section below, you'll gain an understanding of:
|
2022-01-02 09:35:08 +11:00
|
|
|
|
2022-01-02 09:49:07 +11:00
|
|
|
* How to use tiled graphics modes.
|
2022-01-02 09:35:08 +11:00
|
|
|
* How to import graphics using `agb`.
|
2023-02-26 09:29:06 +11:00
|
|
|
* What Game Boy Advance sprites are, how to create them, and how to display them on the screen.
|
|
|
|
* How to detect button input and use it to control game objects.
|
|
|
|
* How to add a static background to your game.
|
|
|
|
* How to make a dynamic background to display scores.
|
|
|
|
* How to add music and sound effects to your game.
|
2022-01-02 09:35:08 +11:00
|
|
|
|
2023-02-26 09:29:06 +11:00
|
|
|
With this knowledge, you'll be well equipped to start making your own games for the GBA!
|
2022-01-02 10:15:07 +11:00
|
|
|
|
|
|
|
## Getting started
|
|
|
|
|
2023-02-26 09:29:06 +11:00
|
|
|
To get started, create a new repository based on the [agb template](https://github.com/agbrs/template) and name it `pong`.
|
2022-01-02 10:15:07 +11:00
|
|
|
|
2023-02-26 09:29:06 +11:00
|
|
|
Next, update the `name` field in `Cargo.toml` to `pong` like so:
|
2022-01-02 10:15:07 +11:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[package]
|
|
|
|
name = "pong"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Your name here"]
|
2023-02-08 07:32:43 +11:00
|
|
|
edition = "2021"
|
2022-01-02 10:15:07 +11:00
|
|
|
|
|
|
|
# ...
|
|
|
|
```
|
|
|
|
|
2023-02-26 09:29:06 +11:00
|
|
|
Now, you're ready to dive and and start learning about `agb`!
|