rpgx 0.1.5

Lightweight, modular, and extensible RPG game engine 2D, designed for flexibility, portability, and ease of use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::prelude::Coordinates;

/// A [`Pawn`] represents an entity or character on the map, positioned on a specific [`Tile`].
///
/// It holds a reference to the [`Tile`] it currently occupies, along with a [`Asset`] used
/// to render its visual representation in the UI.
#[derive(Clone)]
pub struct Pawn {
    pub pointer: Coordinates,
    pub texture_id: u32,
}