agb/CHANGELOG.md

130 lines
7.2 KiB
Markdown
Raw Normal View History

2022-08-01 15:56:06 +10:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
2023-01-30 06:06:00 +11:00
### Changed
2023-02-08 07:33:25 +11:00
- Made Vector2D::new a const function.
- The template now uses rust 2021 edition by default.
2023-02-24 08:20:51 +11:00
- All objects which should only be created once now have the correct lifetimes to only allow one to exist.
2023-01-30 06:06:00 +11:00
2023-01-22 06:14:43 +11:00
### Fixed
- Alpha channel is now considered by `include_gfx!()` even when `transparent_colour` is absent.
2023-02-24 19:56:04 +11:00
- 256 colour backgrounds are now correctly rendered (breaking change).
2023-01-22 06:14:43 +11:00
2023-01-20 07:21:09 +11:00
## [0.13.0] - 2023/01/19
2023-01-09 22:29:01 +11:00
### Added
- Added missed implementations of `regular()` and `affine()` to `Tiled1` which made `Tiled1` impossible to use.
### Changed
- Text renderer can now be re-used which is useful for rpg style character/word at a time text boxes.
2022-12-10 10:10:44 +11:00
- Audio now automatically uses interrupts, so you can remove the `setup_interrupt_handler` or `after_vblank` calls to the mixer.
- If a vblank happens outside of `wait_for_vblank`, then next call will immediately return.
2023-01-13 08:55:25 +11:00
### Fixed
- Zero volume now plays no sound.
- Fixed issue where volume was incorrect for volumes which were powers of 2.
2022-10-22 22:59:20 +11:00
## [0.12.2] - 2022/10/22
2022-11-02 09:06:27 +11:00
This is a minor release to fix an alignment issue with background tiles.
### Fixed
- Corrected alignment of background tiles which was causing issues with rendering tiles in some cases.
2022-10-13 05:00:12 +11:00
## [0.12.1] - 2022/10/12
2022-10-13 03:32:01 +11:00
This is a minor release to fix the build of the docs on [docs.rs/agb](https://docs.rs/agb).
### Fixed
- Fixed the agb crate's docs.rs build
2022-10-12 09:34:13 +11:00
## [0.12.0] - 2022/10/11
This version of `agb` has some exciting new features we'd like to highlight and some brand new contributors!
1. Save support for multiple cartridge types (contributed by @Lymia)
2. Affine background support (contributed by @lifning)
We also had a contribution by @ijc8. We can't thank you all enough!
### Added
- Custom allocator support using the `Allocator` trait for `HashMap`. This means the `HashMap` can be used with `InternalAllocator` to allocate to IWRAM or the `ExternalAllocator` to explicitly allocate to EWRAM.
2022-08-06 21:35:55 +10:00
- Support for using windows on the GBA. Windows are used to selectively enable rendering of certain layers or effects.
2022-08-07 06:19:12 +10:00
- Support for the blend mode of the GBA. Blending allows for alpha blending between layers and fading to black and white.
2022-08-17 23:12:28 +10:00
- Added a new agb::sync module that contains GBA-specific synchronization primitives.
2022-09-16 16:21:45 +10:00
- Added support for save files.
2022-10-03 04:55:57 +11:00
- Added implementation of `HashMap.retain()`.
2022-10-09 08:44:37 +11:00
- Added support for affine backgrounds (tiled modes 1 and 2) which allows for scaling, rotating etc of tiled backgrounds.
- Added support for 256 colour backgrounds (when working with affine ones).
2022-10-09 09:40:12 +11:00
- Added affine matrix module. This allows for manipulation of affine matricies for use in backgrounds and in the future objects.
2022-10-09 09:38:58 +11:00
- Added support for dynamic sprites generated at runtime, some parts of this may change significantly so breaking changes are expected here.
### Changed
2022-08-17 23:12:28 +10:00
- Many of the places that originally disabled IRQs now use the `sync` module, reducing the chance of missed interrupts.
- HashMap iterators now implement `size_hint` which should result in slightly better generation of code using those iterators.
2022-10-09 08:44:37 +11:00
- Transparency of backgrounds is now set once in the toml file rather than once for every image.
- Palette generation now takes into account every single background a toml definition rather than one at a time, you can now find it in the PALETTES constant rather than in every individual image.
- Sound frequency is no longer a crate feature, instead set when initialising the sound mixer.
- `testing` is now a default feature, so you no longer need to add a separate `dev-dependencies` line for `agb` in order to enable unit tests for your project.
2022-08-17 23:12:28 +10:00
### Fixed
2022-08-09 03:57:46 +10:00
- Fixed the fast magnitude function in agb_fixnum. This is also used in fast_normalise. Previously only worked for positive (x, y).
2022-09-11 04:37:42 +10:00
- Fixed formatting of fixed point numbers in the range (-1, 0), which previously appeared positive.
2022-08-09 03:57:46 +10:00
## [0.11.1] - 2022/08/02
2022-08-03 08:40:00 +10:00
Version 0.11.1 brings documentation for fixed point numbers. We recommend all users upgrade to this version since it also includes fixes to a few functions in fixnum. See changed section for breaking changes.
2022-08-03 08:40:00 +10:00
### Added
- Support for sprites that are not square.
2022-08-03 07:36:15 +10:00
- Docs for fixed point numbers.
### Changed
2022-08-03 08:40:00 +10:00
- `Rect::contains_point` now considers points on the boundary to be part of the rectangle.
- Signature of `Rect::overlapping_rect` changed to return an Option. Returns None if rectangles don't overlap.
2022-08-03 07:36:15 +10:00
### Fixed
- Fixed point sine calculates the sine correctly.
2022-08-01 15:56:06 +10:00
## [0.10.0] - 2022/07/31
Version 0.10.0 brings about many new features. As with most `agb` upgrades, you will need to update your `gba.ld` and `gba_mb.ld` files which you can find in the [template repo](https://github.com/agbrs/template). We would also recommend copying the `[profile.dev]` and `[profile.release]` sections from `Cargo.toml` if you don't have these values already.
### Added
- [Hyperspace roll](https://lostimmortal.itch.io/hyperspace-roll), a new game built for the GMTK Game Jam 2022 using `agb`. The source code can be found in the `examples` directory.
- Started using GitHub discussions as a forum
- Many functions previously undocumented are now documented
- Z-Ordering of sprites - you can now change the render order of sprites rather than it just being defined by the order in which they appear in object memory
2022-08-01 15:56:06 +10:00
- 32kHz audio. Probably the best sound quality you'll get out of the hardware, but uses a lot of ROM space
- Transparent sprite support with aseprite
2022-08-01 15:56:06 +10:00
- You can now write tests for projects depending on agb
- Very basic font rendering - looking for feedback, this API is far from stable
- Faster implementation of memcpy and memset thanks to the agbabi crate which provide a big performance boost for any project using agb
2022-08-01 15:56:06 +10:00
- If you wish, you can now optionally do dynamic memory allocation to IWRAM instead of only EWRAM
- You can now use 64x64px sprites
- You can now configure the background size for tiled backgrounds
- It is possible to create 'dynamic tiles' for backgrounds. These are tiles which are defined at runtime
- Random number generator in agb::rng
2022-08-01 15:56:06 +10:00
### Changed
- Audio system optimisations - reduced CPU usage by more than 50%
- Background tiles are now removed from Video RAM during `commit()` if they are no longer used rather than immediately reducing flickering
2022-08-01 15:56:06 +10:00
- Improved the README for both the main agb crate and the template
- The template now builds with optimisations in debug mode and debug symbols in release mode
- Added `#[must_use]` to many of the places it is needed
- All subcrates get released at once, so versions are kept in lockstep
- A few methods accepting `Num<..>` have been changed to accept `impl Into<Num<..>>` to make them easier to use
### Removed
- The ability to use timer0 and timer1 through the `timer` module. This was done in order to fully support 32kHz audio
### Fixed
- Sprite data is now correctly aligned so fast copies will always work
- A few methods which should really be internal have had `pub` removed
2022-09-11 04:37:42 +10:00
- The crate now compiles (but does not run) doctests in CI which pointed out a large number of non-compiling examples