2024-01-01 12:01:29 -08:00
|
|
|
//! Compile-time parameters
|
2024-01-10 18:53:19 -08:00
|
|
|
|
2024-01-04 22:17:34 -08:00
|
|
|
// TODO: many of these should be moved to a config file or cli option
|
2024-01-01 12:01:29 -08:00
|
|
|
|
2024-01-02 09:23:38 -08:00
|
|
|
/// We can draw at most this many object sprites on the screen.
|
2024-01-23 15:53:50 -08:00
|
|
|
pub const OBJECT_SPRITE_INSTANCE_LIMIT: u64 = 2048;
|
2024-01-02 09:23:38 -08:00
|
|
|
|
|
|
|
/// We can draw at most this many ui sprites on the screen.
|
|
|
|
pub const UI_SPRITE_INSTANCE_LIMIT: u64 = 100;
|
2024-01-01 10:44:55 -08:00
|
|
|
|
2024-01-08 19:11:46 -08:00
|
|
|
/// We can draw at most this many radual bars on the screen.
|
|
|
|
/// This is fairly small, since we know exactly how many of these we'll draw (for now)
|
|
|
|
pub const RADIALBAR_SPRITE_INSTANCE_LIMIT: u64 = 10;
|
|
|
|
|
2024-01-04 19:01:22 -08:00
|
|
|
/// The maximum number of sprites we can define
|
|
|
|
pub const SPRITE_LIMIT: u32 = 1024;
|
|
|
|
|
|
|
|
/// The maximum number of images we can load
|
|
|
|
pub const IMAGE_LIMIT: u32 = 1024;
|
2024-01-04 22:17:34 -08:00
|
|
|
|
|
|
|
/// Where we should look for packed assets
|
|
|
|
pub const ASSET_CACHE: &'static str = "./cache";
|