--- /dev/null
+Patron Behavior
+===============
+
Think Overcooked meets Stardew Valley.
Chaotic order-meeting tasks, with small town people with consistent orders.
-When they've been here a couple of times, they should have to ask for their usual.
+When they've been here a couple of times, they shouldn't have to ask for their usual.
As this is an arcade game, the controls will be rather limited:
- At most 2 players
- 1 joystick and 2 buttons each
- 1 button for interacting
- - 1 button for canelling
+ - 1 button for cancelling
-* Spilling beer
-* Mopping spills
-* Throwing up people
* Waves / Continuous flow
-* Purchase bar-upgrades between days
\ No newline at end of file
+* Purchase bar-upgrades between days
+
+* Spilling beer
+
+* Mopping spills
+
+* Throwing up people
#load_path ONYX_PATH
#load_path "./../lib"
-#library_path "./lib"
+
+#if (package runtime).arch == .X86_64 { #library_path "./lib" }
+#if (package runtime).arch == .AARCH64 { #library_path "./lib/aarch64" }
#load "core/std"
}
}
}
-}
\ No newline at end of file
+}
target_entity := scene->get(target);
target_location := target_entity.pos;
if Vector2.square_mag(target_location - entity.pos) < 4 {
- break;
+ break;
}
if path.count == 0 {
}
}
-scene_load_from_file :: (use this: ^Scene, filename: str) {
+scene_load_from_file :: (use this: ^Scene, filename: str, reset_scene := true) {
err, input_file := os.open(filename, .Read);
if err != .None {
debug_log(.Error, "Failed to open file: {}", filename);
defer os.close(^input_file);
reader := io.reader_make(^input_file);
- for entities do this->delete(it, false);
- array.clear(^entities);
- map.clear(^entity_map);
- next_entity_id = 0;
+ if reset_scene {
+ for entities do this->delete(it, false);
+ array.clear(^entities);
+ map.clear(^entity_map);
+ next_entity_id = 0;
+ }
use type_info;