1 unstable release

0.1.0 Sep 9, 2021

#589 in Games

21 stars & 3 watchers

MIT OR APACHE-2.0

260KB
1.5K SLoC

🌶 Bevy Spicy Gamebase

This repository serves as a template for your 2D games. It has the following features:

  • Integrated Aseprite support (through the bevy_spicy_aseprite crate)
    • Compile time integration of slices/tags
    • Animation support
  • Integrated LDTK support (through the bevy_spicy_ldtk crate)
    • Compile time integration of custom enums/entities/level information
    • Bevy adapted loading
  • Tight bevy integration, with hot-reloading included!

It is meant as an experiment to see how ergonomic bevy game development can be

Project Structure

  • main.rs
    • The entry point of the project
    • The GameAssets structure is located here.
      • You can extend it with your own assets (Don't forget to add them to the load tracker just below it)
  • startup.rs
    • One time setup for the whole project
    • Per-stage startup systems should be registered in the respective stage file
  • utils.rs
    • Various helper and extension traits
  • stages/
    • Each stage has its own module
    • loading.rs
      • Handles showing the loading screen and waits until all assets in GameAssets are done loading
    • main_menu.rs
      • The main menu, it handles starting the game/configuration/save games

Dependencies

~14–24MB
~360K SLoC