Agbrs Agb Versions Save

Library for writing Game Boy Advance games in Rust

v0.19.1

2 months ago

Added

  • .abs() on Vector2D and Rect

Fixed

  • InfiniteScrolledMap can now scroll more than 1 tile in a single frame without corrupting.

v0.19.0

2 months ago

Added

  • Added .priority(), .set_priority() and .is_visible() to RegularMap, AffineMap and InfiniteScrolledMap.
  • Replaced .show() and .hide() with .set_visible()in RegularMap, AffineMap and InfiniteScrolledMap.
  • Added .into_inner() to InfiniteScrolledMap to get the map back once you are done using it in the InfiniteScrolledMap.
  • Added .hflip(), .vflip(), .priority(), .position() to ObjectUnmanaged and Object.
  • An abstraction over hblank DMA to allow for cool effects like gradients and circular windows. See the dma_effect* examples.
  • Expermental and incomplete support for MIDI files with agb-tracker.
  • Fixnum now implements num::Num from the num crate.
  • Default implementations for RandomNumberGenerator, InitOnce and RawMutex.

Changed

  • A few functions which previously accepted a Vector<u16> now accept an impl Into<Vector2D<u16>> instead.

v0.18.1

3 months ago

Added

  • You can now use include_aseprite and include_background_gfx to include files from the out directory using the $OUT_DIR token (thanks @screenshakes)
  • Added .pause() and .resume() methods to SoundChannels to let you pause and resume from where you left off.

v0.18.0

6 months ago

Added

  • There is now a multiboot feature which you can use to easily make multiboot ROMs.
  • Can now set palette on a TileSetting struct.

Changed

  • You no longer need the gba.ld or gba_mb.ld files in your repository. You should delete these when upgrading.

Fixed

  • Multiboot builds now work on mgba.
  • Fixed inaccuracy in cosine implementation caused by accidentally multiplying correction term by zero.

v0.17.1

7 months ago

Fixed

  • Fixed the build on docs.rs.

v0.17.0

7 months ago

Added

  • New tracker for playing XM files (see the agb-tracker crate).
  • You can now declare where looping sound channels should restart.
  • Fixnums now have constructors from_f32 and from_f64. This is mainly useful if using agb-fixnum outside of the Game Boy Advance e.g. in build scripts or macros.
  • New option when loading a background to automatically deduplicate tiles.
  • Methods on tile_setting to toggle its hflip and vflip status.

Changed

  • Sound channel panning and volume options are now Num<i16, 8> rather than Num<i16, 4> for improved precision and sound quality.
  • Due to dependency changes, agb-gbafix is now released under MPL rather than GPL.
  • include_background_gfx! now produces tile sets and tile settings directly.

Fixed

  • 256-colour backgrounds are better supported.
  • Mono looping samples will now correctly play to the end if it doesn't perfectly align with a buffer boundry and short samples now also loop correctly.
  • Fixed a bug in bitmap4 that caused setting pixels to be always incorrect.

v0.16.0

9 months ago

A post GMTK update! The key feature being that there is no need for the binutils and agb can be used with only nightly rust.

Added

  • New include_palette macro for including every colour in an image as a u16 slice.
  • New object based text renderer.

Changed

  • Changed the default template game.
  • DynamicSprite has a new API which changes the constructor and adds a set_pixel and clear methods.
  • You no longer need to install arm-none-eabi-binutils. In order to write games using agb, you now only need to install rust nightly.
  • 10% performance improvement with the software mixer.

Fixed

  • Compile error if you tried to import a larger sprite which uses more than 15 colours between frames.

v0.15.0

1 year ago

Added

  • You can now import aseprite files directly (in addition to the already supported png and bmp files) when importing background tiles.
  • New additional unmanaged object API for interacting with a more straightforward manner with the underlying hardware.

Changed

  • Importing background tiles has been improved. You no longer need to use include_gfx! with the toml file. Instead, use include_background_gfx. See the documentation for usage.
  • The hashmap implementation is now it its own crate, agb-hashmap. There is no change in API, but you can now use this for interop between non-agb code and agb code
  • Moved the existing object API to be the OamManaged API. The old names persist with deprecated notices on them.

v0.14.0

1 year ago

Added

  • Added custom gbafix implementation which can take the elf file produced by cargo build directly, removing the need for the objcopy step.

Changed

  • Made Vector2D::new a const function.
  • The template now uses rust 2021 edition by default.
  • All objects which should only be created once now have the correct lifetimes to only allow one to exist.
  • Template now uses codegen-units=1 to workaround bug in nightly.
  • Allocator is no longer interrupt safe.
  • Soundness issues with interrupts resolved which makes them unsafe and require the closure to be static (breaking change).

Fixed

  • Alpha channel is now considered by include_gfx!() even when transparent_colour is absent.
  • 256 colour backgrounds are now correctly rendered (breaking change).
  • The #[agb::entry] macro now reports errors better.
  • Added the shstrtab section to the linker to ensure that agb builds with lld.

v0.13.0

1 year ago

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.
  • 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.

Fixed

  • Zero volume now plays no sound.
  • Fixed issue where volume was incorrect for volumes which were powers of 2.