Skip to content

Instantly share code, notes, and snippets.

@tigregalis
tigregalis / restarting-bevy.rs
Created June 19, 2023 14:05
Hacking together restarting a Bevy app using States
//! ```cargo
//! [dependencies]
//! bevy = { version = "0.11", git = "https://github.com/bevyengine/bevy" }
//! ```
use bevy::prelude::*;
fn main() {
App::new()
// adds a Window entity
@tigregalis
tigregalis / Cargo.toml
Created April 25, 2023 15:10
bevy-style-stack
[package]
name = "bevy-style-stack"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies.bevy]
git = "https://github.com/bevyengine/bevy"
rev = "6f291a0"
@tigregalis
tigregalis / Cargo.toml
Created April 19, 2023 19:24
bevy-click-handling
[package]
name = "bevy-click-handling"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy", rev = "fe852fd0adbce6856f5886d66d20d62cfc936287" }
@tigregalis
tigregalis / sampleREADME.md
Created December 26, 2022 02:03 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@tigregalis
tigregalis / bevy_inspect.rs
Created May 13, 2022 11:47
bevy system for inspecting all entities and which components they have when pressing F1
use bevy::ecs::entity::Entities;
use bevy::ecs::archetype::Archetypes;
use bevy::ecs::component::Components;
fn inspect(
keyboard: Res<Input<KeyCode>>,
all_entities: Query<Entity>,
entities: &Entities,
archetypes: &Archetypes,
components: &Components,
@tigregalis
tigregalis / build-aseprite-win10.md
Last active June 9, 2025 15:45
building aseprite on windows