Crates.io | mold2d |
lib.rs | mold2d |
version | 0.0.2 |
source | src |
created_at | 2016-06-10 06:22:20.1469 |
updated_at | 2016-06-10 06:27:57.820859 |
description | A simple platformer game library in Rust |
homepage | |
repository | https://github.com/DarinM223/mold2d |
max_upload_size | |
id | 5335 |
size | 960,798 |
It includes the main game library implemented on top of SDL and a demo game that is used to test the performance and correctness of the library.
The library allows for message passing to handle complex events. Every game object can send messages to either the parent view or to other game objects. It can also process messages sent to it and return a response message. This allows for greater flexibility because the messages sent can be different for different types of games and the core library will still function, and greater simplicity because instead of every object containing mutable references to the other objects, they can just communicate using immutable messages.
The library also has convenient methods for loading levels from text files, animating sprites from a spritesheet, viewport handling, spatial partitioning (only quadtrees right now), collision detection, displaying fonts, raycasting, and managing game objects and the score.