2 releases

0.10.3 Jan 17, 2022
0.10.0 Jan 8, 2022

#2105 in Game dev

Download history 21/week @ 2023-11-20 16/week @ 2023-11-27 4/week @ 2023-12-04 6/week @ 2023-12-11 15/week @ 2023-12-18 10/week @ 2023-12-25 12/week @ 2024-01-08 11/week @ 2024-01-15 14/week @ 2024-02-05 25/week @ 2024-02-12 18/week @ 2024-02-19 64/week @ 2024-02-26 23/week @ 2024-03-04

131 downloads per month
Used in 10 crates

Custom license

115KB
3K SLoC

ivy-base

Ivy-base

The base of the ivy framework. This crate provides some of the most used types and traits which many of the other crates depend on. Check crate::components for more information.

App

The App is the heart of any Ivy program. It defines the broad behaviour by layers. Each layer is a set of logic which can be exectuted with minimal shared data from other layers. A common pattern is to have the graphics as one layer, and the game logic as another. This ensures that the code is kept simple such that the game does not need to be concerned with rendering the world, and the rendering does not need to be concerned with the game logic.

The layered design allows for easily customizable games as behaviors can be added conditionally, for example a network layer or similar.

Gizmo

The crate also exports a gizmos system crate::gizmos which allows the creation of temporary "objects" that can be renderered into the world to provide debuggable feedback.

Note: The crate is not responsible for rendering the gizmos, but rather provides an agnostic backend for gizmo management. Most commonly, ivy-graphics::gizmos is used for rendering the gizmos, but is not required. Gizmos could just as well be rendered in text or an Ncurses like interface.

Dependencies

~9MB
~206K SLoC