created key texture
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 28 Feb 2022 21:08:48 +0000 (15:08 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 28 Feb 2022 21:08:48 +0000 (15:08 -0600)
docs/credits.md [new file with mode: 0644]
run_tree/assets/images/keg.png [new file with mode: 0644]
run_tree/scenes/quick_save_new.scene
src/entity/schematics/tap.onyx
src/game.onyx

diff --git a/docs/credits.md b/docs/credits.md
new file mode 100644 (file)
index 0000000..cda937c
--- /dev/null
@@ -0,0 +1,10 @@
+
+
+# Programmers
+Brendan Hansen
+Collin Rumpca
+
+# Artists
+Chris Loutche
+Brendan Hansen
+Collin Rumpca
\ No newline at end of file
diff --git a/run_tree/assets/images/keg.png b/run_tree/assets/images/keg.png
new file mode 100644 (file)
index 0000000..d68b662
Binary files /dev/null and b/run_tree/assets/images/keg.png differ
index 6f015f27c71746b042cb4a2e8eddf42cfbcbb456..7f967bc89285dbe18165a877e63a4627bc62d418 100644 (file)
@@ -29,8 +29,8 @@ color.a = 1.0000
 [Player]
 id = 12
 flags = 2
-pos.x = 170.8592
-pos.y = 40.2234
+pos.x = 245.8789
+pos.y = 48.7460
 size.x = 32.0000
 size.y = 32.0000
 :MovementComponent
@@ -40,7 +40,7 @@ controls.left = 65
 controls.right = 68
 controls.interact = 70
 controls.pick_up = 71
-facing = 3
+facing = 4
 :PlayerComponent
 holding = 0
 :RenderComponent
@@ -68,11 +68,62 @@ color.g = 1.0000
 color.b = 1.0000
 color.a = 1.0000
 
+[Tap]
+id = 18
+flags = 3
+pos.x = 208.0000
+pos.y = 16.0000
+size.x = 32.0000
+size.y = 32.0000
+:RenderComponent
+layer = 0
+color.r = 1.0000
+color.g = 1.0000
+color.b = 1.0000
+color.a = 1.0000
+:DispenserComponent
+item = "beer"
+max_timeout = 2.0000
+
+[Tap]
+id = 19
+flags = 3
+pos.x = 176.0000
+pos.y = 16.0000
+size.x = 32.0000
+size.y = 32.0000
+:RenderComponent
+layer = 0
+color.r = 1.0000
+color.g = 1.0000
+color.b = 1.0000
+color.a = 1.0000
+:DispenserComponent
+item = "beer"
+max_timeout = 2.0000
+
+[Tap]
+id = 20
+flags = 3
+pos.x = 144.0000
+pos.y = 16.0000
+size.x = 32.0000
+size.y = 32.0000
+:RenderComponent
+layer = 0
+color.r = 1.0000
+color.g = 1.0000
+color.b = 1.0000
+color.a = 1.0000
+:DispenserComponent
+item = "beer"
+max_timeout = 2.0000
+
 [Patreon]
-id = 15
+id = 22
 flags = 1
-pos.x = 397.0000
-pos.y = 59.0000
+pos.x = 417.0000
+pos.y = 142.0000
 size.x = 32.0000
 size.y = 32.0000
 :RenderComponent
@@ -82,24 +133,41 @@ color.g = 0.0000
 color.b = 0.0000
 color.a = 1.0000
 :PatreonComponent
-state = 1
+state = 0
 order_item = "beer"
 holding = 0
+consume_timeout = 0.0000
 
 [Tap]
 id = 14
 flags = 3
-pos.x = 32.0000
+pos.x = 240.0000
 pos.y = 16.0000
 size.x = 32.0000
 size.y = 32.0000
 :RenderComponent
 layer = 1
-color.r = 0.2000
-color.g = 0.2000
+color.r = 1.0000
+color.g = 1.0000
 color.b = 1.0000
 color.a = 1.0000
 :DispenserComponent
 item = "beer"
 max_timeout = 2.0000
 
+[Item_Entity]
+id = 21
+flags = 4
+pos.x = 190.2672
+pos.y = 91.6549
+size.x = 16.0000
+size.y = 16.0000
+:RenderComponent
+layer = 10
+color.r = 1.0000
+color.g = 1.0000
+color.b = 1.0000
+color.a = 1.0000
+:ItemComponent
+item = "beer"
+
index 98a9907b4344b9dca380cd6f6999d15f16975752..e30f8425b89b871bb8d030b856f6f8eefa532c4a 100644 (file)
@@ -25,11 +25,13 @@ Tap :: struct {
     render :: (use this: ^Entity) {
         rect := this->get_rect();
 
-        immediate_rectangle(rect.x, rect.y, rect.w, rect.h);
+        // immediate_rectangle(rect.x, rect.y, rect.w, rect.h);
+        immediate_image(^Tap.assets.texture, rect.x, rect.y, rect.w, rect.h);
+    }
+
+    #persist assets: struct {
+        #tag "./assets/images/keg.png"
+        texture: Texture;
     }
 }
 
-tap_assets: struct {
-    #tag "./assets/"
-    texture: Texture;
-}
\ No newline at end of file
index 05d080b47541e54afc50171e430de6bd274783fe..7eeeacf3e1aa795fa923cd8f4402088daaf1ed70 100644 (file)
@@ -19,6 +19,7 @@ game_init :: () {
     // This process of queueing the asset bucket should
     // be made automatic somehow...
     queue_assets(^Player.assets);
+    queue_assets(^Tap.assets);
 
     load_assets();