diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:21:55 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-01-26 15:21:55 -0600 |
| commit | f7a6cb3573957ae617bf88a05f72cb22bb912abd (patch) | |
| tree | 9bd8dabfcbd5808a74d995c93dc6f3f611da13f8 /src/prefab/cabin.moon | |
| parent | 5846a4fea8d6a993466a792977128d21a18587bc (diff) | |
| download | ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.tar.gz ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.tar.bz2 ggj25-f7a6cb3573957ae617bf88a05f72cb22bb912abd.zip | |
Revert "final commit"
This reverts commit c39ff632b46c179709101c5b50a061ebd723689f.
Diffstat (limited to 'src/prefab/cabin.moon')
| -rw-r--r-- | src/prefab/cabin.moon | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/src/prefab/cabin.moon b/src/prefab/cabin.moon index b56ba1c..915ea92 100644 --- a/src/prefab/cabin.moon +++ b/src/prefab/cabin.moon @@ -17,9 +17,6 @@ class CabinGraphicsComponent extends world.GraphicsComponent iuv = sprites.wall_inside_normal ouv = sprites.wall_outside_normal fuv = sprites.floor_normal - tutorial_keys = false - tutorial_mouse = false - tutorial_visual = false wall = (geom, uv, offset, start, finish, texture) -> geom[offset + 0] = vec3(start.x, start.y, z1) geom[offset + 1] = vec3(start.x, start.y, z2) @@ -35,33 +32,22 @@ class CabinGraphicsComponent extends world.GraphicsComponent uv[offset+5] = vec2(texture.s1,texture.t1) floor = (geom, uv, offset, start, finish) -> - tuv = fuv - if not tutorial_keys - tuv = sprites.help_1 - tutorial_keys = true - elseif not tutorial_mouse - tuv = sprites.help_2 - tutorial_mouse = true - elseif not tutorial_visual - tuv = sprites.help_3 - tutorial_visual = true geom[offset + 0] = vec3(start.x,start.y,z1) geom[offset + 1] = vec3(start.x,finish.y,z1) geom[offset + 2] = vec3(finish.x,finish.y,z1) geom[offset + 3] = vec3(finish.x,finish.y,z1) geom[offset + 4] = vec3(finish.x,start.y,z1) geom[offset + 5] = vec3(start.x,start.y,z1) - normal_view[offset + 0] = vec2(tuv.s1, tuv.t1) - normal_view[offset + 1] = vec2(tuv.s1, tuv.t2) - normal_view[offset + 2] = vec2(tuv.s2, tuv.t2) - normal_view[offset + 3] = vec2(tuv.s2, tuv.t2) - normal_view[offset + 4] = vec2(tuv.s2, tuv.t1) - normal_view[offset + 5] = vec2(tuv.s1, tuv.t1) + normal_view[offset + 0] = vec2(fuv.s1, fuv.t1) + normal_view[offset + 1] = vec2(fuv.s1, fuv.t2) + normal_view[offset + 2] = vec2(fuv.s2, fuv.t2) + normal_view[offset + 3] = vec2(fuv.s2, fuv.t2) + normal_view[offset + 4] = vec2(fuv.s2, fuv.t1) + normal_view[offset + 5] = vec2(fuv.s1, fuv.t1) --left wall j = 1 - --wall(geom_view, normal_view, j, vec2(-2,-2),vec2(-2,0), sprites.wall_inside_normal) - --lamp = world.level.add_lamp(vec4(0,0,1,2)) + wall(geom_view, normal_view, j, vec2(-2,-2),vec2(-2,0), sprites.wall_inside_normal) j += 6 for floorx = 1,3 for floory = 1,3 |
