Add independent Rust engine, deterministic mod API and asset pipeline

This commit is contained in:
raptorreplica committed 2026-10-10 12:17:43 +11:00
1 parent f2cce6f51b
commit dbb1d4596b
53 files changed
+18314 -56

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// The normal centre projectile is emitted by the engine. Add two angled pulses.
fn on_fire(event, state, random) {
let shots = if state.contains("shots") { state.shots + 1 } else { 1 };
let spread = 1 + random[0] % 2;
#{ commands: [
#{ op: "projectile", weapon: "aurora:pulse_projectile", x: event.x - 6, y: event.y, vx: -spread, vy: -8 },
#{ op: "projectile", weapon: "aurora:pulse_projectile", x: event.x + 6, y: event.y, vx: spread, vy: -8 }
], state: #{ shots: shots } }
}
fn on_hit(event, state, random) {
#{ commands: [#{ op: "effect", x: event.x, y: event.y }], state: state }
}