/ld26

To get this branch, use:
bzr branch http://9ix.org/bzr/ld26
26 by Josh C
put levels in their own file
1
levels = {
2
   forest1 = {
3
      objects = function() return {
4
                      Tile:new{image = 'data/forest1-bg.png'},
5
                      Player:new{x = 200, y = 380,
6
                                 minY = 330, maxY = 500,
7
                                 image = 'data/forest1-player.png'},
8
                      Tile:new{image = 'data/forest1-fg.png'}
9
                   } end,
10
   },
11
   foresthut = {
12
      objects = function() return {
13
                      Tile:new{image = 'data/foresthut-bg.png'},
14
                      Player:new{x = 745, y = 430,
15
                                 image = 'data/forest1-player.png'},
16
                      Tile:new{image = 'data/foresthut-fg.png'}
17
                   } end,
18
   },
19
   shore = {
20
      objects = function() return {
21
                      Tile:new{image = 'data/shore-bg.png'},
22
                      Player:new{x = 145, y = 133,
42 by Josh C
be moved
23
                                 --minY = 133, maxY = 133,
26 by Josh C
put levels in their own file
24
                                 image = 'data/shore-player.png'},
45 by Josh C
boat
25
                      --Tile:new{image = 'data/shore-fg.png'},
26 by Josh C
put levels in their own file
26
                      Transition:new{x = 10, y = 133, target = 'forest1',
42 by Josh C
be moved
27
                                     targetX = 735, targetY = 370},
28
                      fairytarget
26 by Josh C
put levels in their own file
29
                   } end
30
   },
31
   lake = {
32
      objects = function() return {
33
                      Tile:new{image = 'data/lake-bg.png'},
28 by Josh C
new lake
34
                      Player:new{x = 620, y = 336,
26 by Josh C
put levels in their own file
35
                                 image = 'data/lake-player.png'},
36
                   }
37
                end
38
   },
39
   -- village = {
40
   --    objects = function() return {
41
   --                    Tile:new{image = 'data/village-bg.png'},
42
   --                    Player:new{x = 121, y = 440,
43
   --                               image = 'data/village-player.png'},
44
   --                 }
45
   --              end
46
   -- },
47
   bridge = {
48
      objects = function() return {
49
                      Tile:new{image = 'data/bridge-bg.png'},
31 by Josh C
cleanup
50
                      Player:new{x = 600, y = 440,
26 by Josh C
put levels in their own file
51
                                 image = 'data/bridge-player.png'},
52
                      Tile:new{image = 'data/bridge-fg.png'}
53
                   }
54
                end
29 by Josh C
gate
55
   },
56
   gate = {
57
      objects = function() return {
58
                      Tile:new{image = 'data/gate-bg.png'},
59
                      Player:new{x = 90, y = 388,
60
                                 minY = 388, maxY = 388,
61
                                 image = 'data/bridge-player.png'},
38 by Josh C
gate
62
                      gateup,
63
                      gatedown
29 by Josh C
gate
64
                   }
65
                end
30 by Josh C
castle interior
66
   },
67
   castle = {
68
      objects = function() return {
69
                      Tile:new{image = 'data/castle-bg.png'},
70
                      Player:new{x = 120, y = 435,
71
                                 minY = 435, maxY = 435,
72
                                 image = 'data/castle-player.png'},
73
                   }
74
                end
32 by Josh C
sheep!
75
   },
76
   sheep = {
77
      objects = function() return {
78
                      Tile:new{image = 'data/sheep-bg.png'},
79
                      Player:new{x = 640, y = 454,
80
                                 image = 'data/sheep-player.png'},
81
                   }
82
                end
33 by Josh C
cave
83
   },
84
   cave = {
85
      objects = function() return {
86
                      Tile:new{image = 'data/cave-bg.png'},
87
                      Player:new{x = 120, y = 450,
88
                                 minY = 450, maxY = 450,
89
                                 image = 'data/cave-player.png'},
90
                   }
91
                end
26 by Josh C
put levels in their own file
92
   }
33 by Josh C
cave
93
26 by Josh C
put levels in their own file
94
}