Commit graph

140 commits

Author SHA1 Message Date
Corwin d07970a7c0
Release v0.21.0 2024-09-24 20:38:33 +01:00
Gwilym Inzani 040d3d5604 Changelog entry about stopping the tracker 2024-08-28 15:49:38 +01:00
Gwilym Inzani 84a3c0b6a0
Allowing imported graphics to be exposed as pub mod (#738)
- [X] Changelog updated

This PR adds the possibility for graphics imported through
`include_background_gfx!` to be used as public modules, e.g.:
```rust
/// graphics.rs
agb::include_background_gfx!(pub background, "d77bba", tiles256 => 256 "map.aseprite");

/// main.rs
#![no_std]
#![no_main]

use agb::display::Priority;
use agb::display::tiled::RegularBackgroundSize::Background64x64;
use agb::display::tiled::{TiledMap, TileFormat};

mod graphics;


#[agb::entry]
fn main(mut gba: agb::Gba) -> ! {
    let (tiled, mut vram) = gba.display.video.tiled1();
    let vblank = agb::interrupt::VBlank::get();
    let tileset = &graphics::background::tiles256.tiles;

    vram.set_background_palettes(graphics::background::PALETTES);

    let mut bg = tiled.regular(Priority::P2, Background64x64, TileFormat::EightBpp);

    for y in 0..64u16 {
        for x in 0..64u16 {
            bg.set_tile(&mut vram, (x, y), tileset, graphics::background::tiles256.tile_settings[1]);
        }
    }
    bg.set_visible(true);
    bg.commit(&mut vram);

    loop {
        vblank.wait_for_vblank();
    }
}
```
2024-08-28 15:02:41 +01:00
kouta bc979d7299 Update changelog 2024-07-11 19:41:26 -03:00
Gwilym Inzani a604f269bc Update changelog 2024-07-11 21:59:28 +01:00
kouta 1340b992cb Code review 2024-07-10 09:29:07 -03:00
kouta-kun 8c6e1ae0a9
Update CHANGELOG.md 2024-07-09 16:59:30 -03:00
Corwin a4d6ba5bc9
Release v0.20.5 2024-06-18 17:49:56 +01:00
Corwin aa2edf131e
update changelog 2024-06-18 17:47:19 +01:00
Corwin ac2e6b5046
Release v0.20.4 2024-06-13 23:13:02 +01:00
Corwin f6ff13e1b2
add changelog entry 2024-06-13 22:49:39 +01:00
Corwin a6e4be0577
Release v0.20.3 2024-06-12 17:57:39 +01:00
Corwin 5ca9cd5480
fix the overflow bug on kerning / xmin on a new sprite (#725)
- [x] Changelog updated
2024-06-12 17:40:46 +01:00
Corwin cbf0fa0a23
add changelog entry 2024-06-12 17:33:46 +01:00
Corwin 7292748848
add changelog entry 2024-06-12 17:18:36 +01:00
Gwilym Inzani b405a04a4a Add a changelog entry 2024-06-04 21:19:29 +01:00
Gwilym Inzani 6b58280e81 Add changelog entry for affine background positions 2024-05-27 14:47:17 +01:00
Gwilym Inzani 21658b9b15
Revert "Remove lifetime from dma transfer handle" 2024-05-27 14:16:24 +01:00
Gwilym Inzani e91e7a84e7 Add changelog entry for less unsafe 2024-05-27 13:25:52 +01:00
Gwilym Inzani b208133564 Add changelog entry for new functions 2024-05-25 21:11:28 +01:00
Corwin d05965b98f
Release v0.20.2 2024-05-25 13:20:03 +01:00
Corwin cfc3c3a93c
add changelog entry 2024-05-25 12:10:35 +01:00
Corwin 6a5346026a
Release v0.20.1 2024-05-17 23:09:16 +01:00
Corwin f99a564f89
add changelog entry for dot/cross 2024-05-15 22:29:22 +01:00
Gwilym Inzani dac17ec28e Add a changelog entry for fixing the tracker 2024-05-15 21:38:57 +01:00
Corwin 737b547343
Release v0.20.0 2024-05-14 22:57:40 +01:00
Gwilym Inzani 609e55155b Add changelog entry for set_next 2024-04-30 20:41:01 +01:00
Gwilym Inzani 300d834cfa Update changelog entry 2024-04-20 20:42:38 +01:00
Corwin 84d68470e4
add changelog entry 2024-04-20 00:12:36 +01:00
Corwin 413a889488
add changelog entry 2024-04-09 22:17:31 +01:00
Corwin 6c60b770b5
Implement signed for our fix num (#578)
* Integrates num_traits more closely.
* Implements signed for our num, and the vector2d / rect abs now can use
our fixnum.
* This is potentially breaking.
2024-04-09 20:41:00 +01:00
Corwin 7d0e05c9b5
update changelog 2024-04-09 20:33:26 +01:00
Gwilym Inzani eca511bc83 Add a changelog entry for the new backtraces 2024-04-09 20:09:52 +01:00
Gwilym Inzani 6fdd961b61
Kerning support (#588)
Some fonts look a bit weird if you don't do kerning.

@corwinkuiper can you check if I've done the correct thing for object
font rendering? I'm not entirely sure... Although it does render
correctly in my tests :D

- [x] Changelog updated / no changelog update needed
2024-03-29 15:17:18 +00:00
Corwin ce4882a56c
add changelog entry 2024-03-29 14:43:36 +00:00
Gwilym Inzani 58c0e02b48 Add a changelog entry for kerning 2024-03-27 11:12:23 +00:00
Gwilym Inzani a7b017e7e7 Add a changelog entry for initial unicode support 2024-03-27 09:32:34 +00:00
Gwilym Inzani 09ad7c2c5d Add changelog entry 2024-03-13 15:36:46 +00:00
Corwin 9e63b2c46c
Release v0.19.1 2024-03-06 19:11:47 +00:00
Gwilym Inzani f8e24a3ee3 Add changelog entry 2024-03-06 14:24:58 +00:00
Gwilym Inzani 66ec762855 Release v0.19.0 2024-03-06 09:33:58 +00:00
Gwilym Inzani ec2bbb3eca Changelog should say 'changed' 2024-03-06 09:26:47 +00:00
Gwilym Inzani 98d9c133c7 Add a changelog entry for into_inner 2024-03-06 09:00:28 +00:00
Gwilym Inzani 42eadde631 Also add default implementation for InitOnce 2024-02-28 10:09:12 +00:00
Gwilym Inzani 661eb7155f Add changelog entry for default implementations 2024-02-28 09:56:23 +00:00
Gwilym Inzani cdafc3c139
DMA abstraction (#491)
It would be nice to have an easy way to add DMA effects to games.

- [x] Changelog updated
2024-02-21 14:44:41 +00:00
Gwilym Inzani 3e47a49198 Make the changelog entry more accurate 2024-02-21 14:36:45 +00:00
Gwilym Inzani d6319ed409 Add a changelog entry for implementing num 2024-02-21 13:59:53 +00:00
Gwilym Inzani 74451f819c More impl Into<Vector2D<_>> and fix compile errors 2024-02-21 12:59:02 +00:00
Gwilym Inzani f96b0e772b Add a changelog entry for dma effects 2024-02-21 12:40:50 +00:00