Skip to content

Instantly share code, notes, and snippets.

View hortonew's full-sized avatar

Erik Horton hortonew

View GitHub Profile
@hortonew
hortonew / setup-bevy-0.15-project-for-android.sh
Last active March 20, 2025 22:28
setup-bevy-0.15-project-for-android.sh
#!/bin/zsh
# Grab PROJECT from Cargo.toml project.name
PROJECT=$(grep "name" Cargo.toml | cut -d '"' -f 2 | head -n 1)
PROJECT_ORG="bevyengine"
PROJECT_ORG_STRUCTURE="org.${PROJECT_ORG}.${PROJECT}"
BEVY_RELEASE="refs/heads/release-0.15.2"
echo "Creating new Bevy project: ${PROJECT} with organization structure: ${PROJECT_ORG_STRUCTURE}"
@hortonew
hortonew / lib.rs
Last active February 15, 2025 19:55
bevy-breakout-0.15-lib.rs
// This example clones https://github.com/bevyengine/bevy/blob/latest/examples/games/breakout.rs
// with https://github.com/bevyengine/bevy/blob/latest/examples/games/stepping.rs
// into a single file, with modifications to be called from main.rs.
//! A 3d Scene with a button and playing sound.
use bevy::input::touch::{TouchInput, TouchPhase};
use bevy::math::bounding::{Aabb2d, BoundingCircle, BoundingVolume, IntersectsVolume};
use bevy::{
app::MainScheduleOrder,