]>
Dogcows Code - chaz/yoink/blob - data/scenes/Classic.lua
2 -- Scene: Classic Yoink
3 -- created by Neil Carter
4 -- converted to Lua by Charles McGarvey
9 -- SetPlayfieldBounds(point1, point2)
10 -- SetMaximumBounds(point1, point2)
13 -- Scale(x, y, z) or Scale(xyz)
14 -- Rotate(axis, degree) or Rotate(x, y, z)
16 -- MakeTilemap({width = ..., surface_type = ..., tiles = {}})
17 -- MakeBillboard({tile = ..., u_scale = ...})
20 -- detail - level of detail of the scene
23 SetPlayfieldBounds({0, 0, -100}, {1280, 500, 100})
24 SetMaximumBounds({-160, 0, -192}, {1440, 480, 224})
27 -- Left end tower block
28 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 SetTexture("TowerBlock1")
65 surface_type
= 'right',
103 -- Leftmost background tower block
104 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154 3, 3, 3, 3, 3, 3, 3, 3, 3,
155 3, 3, 3, 3, 3, 3, 3, 3, 3,
156 3, 3, 3, 3, 3, 3, 3, 3, 3,
157 3, 3, 3, 3, 3, 3, 3, 3, 3,
158 3, 3, 3, 3, 3, 3, 3, 3, 3,
159 3, 3, 3, 3, 3, 3, 3, 3, 3
164 -- Foreground building with pitched roof
165 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173 SetTexture("Building")
176 surface_type
= 'left',
194 surface_type
= 'right',
245 -- Cheaty invisible platform
252 surface_type
= 'top',
259 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
267 SetTexture("Scenery")
270 surface_type
= 'top',
272 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
273 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
274 -1, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
275 -1, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
276 -1, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
277 -1, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
278 -1, -1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
287 Translate(1, -0.5, 5)
298 Translate(1, -0.5, 1)
310 Translate(1, -0.5, 1)
322 Translate(9, -0.5, 1)
329 -- Fence behind house
341 -- Background building with pitched roof
342 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
350 SetTexture("Building")
411 -- Right pitched roof
441 -- More ground to the right
442 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
444 -- Ground under house
450 SetTexture("Scenery")
453 surface_type
= 'top',
465 -- Left part of center courtyard
473 surface_type
= 'top',
475 1, 1, 1, 1, 1, 1, 1, 1,
476 1, 1, 1, 1, 1, 1, 1, 1,
477 1, 0, 0, 0, 0, 0, 0, 0,
478 1, 0, 0, 0, 0, 0, 1, 1,
479 0, 0, 0, 0, 0, 0, 1, 1,
480 1, 0, 0, 0, 0, 0, 0, 0,
481 1, 1, 1, 1, 1, 0, 0, 0
490 Translate(14, -0.5, 5)
501 Translate(14, -0.5, 1)
508 -- Front grass next to door
511 Translate(13, -0.5, 3)
518 -- Back grass next to door
521 Translate(13, -0.5, 2)
532 Translate(14, -0.5, 1)
541 -- Grass left of house
545 Translate(18, -0.5, 0)
552 -- Grass right of house
556 Translate(24, -0.5, 0)
563 -- Front grass in center
567 Translate(19, -0.5, 4)
574 -- Back grass in center
578 Translate(19, -0.5, 2)
585 -- Left grass in center
590 Translate(19, -0.5, 2)
597 -- Right grass in center
602 Translate(23, -0.5, 2)
610 -- Right part of center courtyard
618 surface_type
= 'top',
630 -- Fence to right of back house
642 -- Grass in front of fence
646 Translate(24, -0.5, 1)
653 -- Grass to left of tower block
658 Translate(26, -0.5, 5)
665 -- Grass to right of tower block
670 Translate(35, -0.5, 5)
681 Translate(35, -0.5, 5)
692 Translate(34, -0.5, 1)
699 -- Extra bit of back grass
703 Translate(34, -0.5, 0)
711 -- Ground around tower block
719 surface_type
= 'top',
735 surface_type
= 'top',
737 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
738 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,
739 0, 0, 0, 0, 0, 0, 0, -1, -1, -1,
740 0, 0, 0, 0, 0, 0, 0, -1, -1, -1,
741 0, 0, 0, 0, 0, 0, 0, -1, -1, -1,
742 0, 0, 0, 0, 0, 0, 0, -1, -1, -1,
743 0, 1, 1, 1, 1, 1, 1, -1, -1, -1
747 -- Right foreground tower block
748 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
755 SetTexture("TowerBlock1")
777 surface_type
= 'right',
797 surface_type
= 'left',
817 surface_type
= 'top',
828 -- Right end tower block
829 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
865 surface_type
= 'left',
893 surface_type
= 'top',
904 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
907 Translate(-0.3, -0.17, -900)
909 SetTexture("BackgroundFar")
913 SetTexture("BackgroundNear")
915 blend
= detail
> 1 and true or false
919 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
928 Translate(250, -2.5, 16)
938 Translate(610, -2.5, 85)
945 Translate(650, -2.5, 115)
955 Translate(1080, -2.5, 10)
962 Translate(1120, -2.5, -15)
969 Translate(1220, -2.5, -30)
This page took 0.087918 seconds and 5 git commands to generate.