~ubuntu-branches/ubuntu/edgy/enigma/edgy-backports

« back to all changes in this revision

Viewing changes to data/levels/ant23.lua

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-08-28 15:30:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050828153009-sky64kb6tcq37xt5
Tags: 0.92.1-1
* New upstream subversion checkout
* Remove menu.s3m, which we are allowed to distributed but not to modify
  also copyright notice is confusing... (Closes: #321669)
* Rebuild with new libzipios (Closes: #325405)
  I hope this works without a versioned build-dependency
* Added "enigma replaces enigma-data" for upgrades (Closes: #308558)
* Added notes about the fonts copyright.
* updated to policy 3.6.2.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
dofile(enigma.FindDataFile("levels/ant.lua"))
3
 
 
4
 
 
5
 
cells={}
6
 
 
7
 
cells[" "]=cell{floor={face="fl-metal"}}
8
 
 
9
 
puzzles = {};
10
 
cells["#"]=cell{parent={{add_multicell, puzzles}}}
11
 
 
12
 
cells["O"]=cell{item={face="it-hollow"}}
13
 
cells["a"]=cell{item={face="it-trigger", attr={action="openclose", target="doorA"}}}
14
 
cells["b"]=cell{item={face="it-trigger", attr={action="openclose", target="doorB"}}}
15
 
cells["c"]=cell{item={face="it-trigger", attr={action="openclose", target="doorC"}}}
16
 
cells["d"]=cell{item={face="it-trigger", attr={action="openclose", target="doorD"}}}
17
 
cells["A"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorA"}}}
18
 
cells["B"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorB"}}}
19
 
cells["C"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorC"}}}
20
 
cells["D"]=cell{parent=cells["O"], stone={face="st-door_b", attr={type="v", name="doorD"}}}
21
 
 
22
 
blocks = {};
23
 
actors = {};
24
 
cells["W"]=cell{parent={{add_multistone, "st-block", blocks}}}
25
 
cells["o"]=cell{parent={{add_multiactor, "ac-whiteball-small", actors, {player=0, mouseforce=1, essential=1}}}}
26
 
 
27
 
level = {
28
 
   "####################",
29
 
   "#o  #          #  o#",
30
 
   "#   #          #   #",
31
 
   "#  W            W  #",
32
 
   "###       a      ###",
33
 
   "#         b        #",
34
 
   "#       AB CD      #",
35
 
   "#         c        #",
36
 
   "###       d      ###",
37
 
   "#  W            W  #",
38
 
   "#   #          #   #",
39
 
   "#o  #          #  o#",
40
 
   "####################"
41
 
}
42
 
 
43
 
set_default_parent(cells[" "])
44
 
create_world_by_map(level)
45
 
add_rubber_band_pairs(actors, blocks, 10, 0)
46
 
render_puzzles(puzzles);
47
 
oxyd_shuffle()