/ld26

To get this branch, use:
bzr branch /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,
23
                                 minY = 133, maxY = 133,
24
                                 image = 'data/shore-player.png'},
25
                      Tile:new{image = 'data/shore-fg.png'},
26
                      Transition:new{x = 10, y = 133, target = 'forest1',
27
                                     targetX = 735, targetY = 370}
28
                   } end
29
   },
30
   lake = {
31
      objects = function() return {
32
                      Tile:new{image = 'data/lake-bg.png'},
28 by Josh C
new lake
33
                      Player:new{x = 620, y = 336,
26 by Josh C
put levels in their own file
34
                                 image = 'data/lake-player.png'},
35
                   }
36
                end
37
   },
38
   -- village = {
39
   --    objects = function() return {
40
   --                    Tile:new{image = 'data/village-bg.png'},
41
   --                    Player:new{x = 121, y = 440,
42
   --                               image = 'data/village-player.png'},
43
   --                 }
44
   --              end
45
   -- },
46
   bridge = {
47
      objects = function() return {
48
                      Tile:new{image = 'data/bridge-bg.png'},
31 by Josh C
cleanup
49
                      Player:new{x = 600, y = 440,
26 by Josh C
put levels in their own file
50
                                 image = 'data/bridge-player.png'},
51
                      Tile:new{image = 'data/bridge-fg.png'}
52
                   }
53
                end
29 by Josh C
gate
54
   },
55
   gate = {
56
      objects = function() return {
57
                      Tile:new{image = 'data/gate-bg.png'},
58
                      Player:new{x = 90, y = 388,
59
                                 minY = 388, maxY = 388,
60
                                 image = 'data/bridge-player.png'},
38 by Josh C
gate
61
                      gateup,
62
                      gatedown
29 by Josh C
gate
63
                   }
64
                end
30 by Josh C
castle interior
65
   },
66
   castle = {
67
      objects = function() return {
68
                      Tile:new{image = 'data/castle-bg.png'},
69
                      Player:new{x = 120, y = 435,
70
                                 minY = 435, maxY = 435,
71
                                 image = 'data/castle-player.png'},
72
                   }
73
                end
32 by Josh C
sheep!
74
   },
75
   sheep = {
76
      objects = function() return {
77
                      Tile:new{image = 'data/sheep-bg.png'},
78
                      Player:new{x = 640, y = 454,
79
                                 image = 'data/sheep-player.png'},
80
                   }
81
                end
33 by Josh C
cave
82
   },
83
   cave = {
84
      objects = function() return {
85
                      Tile:new{image = 'data/cave-bg.png'},
86
                      Player:new{x = 120, y = 450,
87
                                 minY = 450, maxY = 450,
88
                                 image = 'data/cave-player.png'},
89
                   }
90
                end
26 by Josh C
put levels in their own file
91
   }
33 by Josh C
cave
92
26 by Josh C
put levels in their own file
93
}