~ubuntu-branches/ubuntu/intrepid/enigma/intrepid

« back to all changes in this revision

Viewing changes to data/levels/ant31.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
 
Require("levels/ant.lua")
3
 
 
4
 
multiplayer_mode()
5
 
 
6
 
cells={}
7
 
use_cells(cells, "O")
8
 
 
9
 
cells[" "]=cell{}
10
 
cells["-"]=cell{{{gradient, FLAT_FORCE_S}}}
11
 
cells["_"]=cell{{{gradient, FLAT_FORCE_N}}}
12
 
cells["#"]=cell{stone="st-rock2"}
13
 
cells["%"]=cell{stone="st-scissors"}
14
 
cells["w"]=cell{stone="st-white4"}
15
 
cells["b"]=cell{stone="st-black4"}
16
 
 
17
 
stones={}
18
 
actors={}
19
 
cells["?"]=cell{{{add_multistone, "st-rock2", stones}}}
20
 
cells["2"]=cell{{{add_multiactor, "ac-whiteball", actors, {player=1, mouseforce=0}}}}
21
 
cells["O"]=cell{{{add_multiobject, actors, cells["O"]}}}
22
 
 
23
 
slopes={}
24
 
pivots={}
25
 
cells["*"]=cell{{{add_multicell, slopes, 1}}}
26
 
cells["&"]=cell{{{add_multicell, pivots, slopes}, cells["~"]}}
27
 
 
28
 
level = {
29
 
   "#0#0#0#0###DDDDDDDD#",
30
 
   "#bbbbbbbb##XXXXXXXX#",
31
 
   "#******************#",
32
 
   "#*&  ?  ****  %  &*#",
33
 
   "#*   O  *##*      *#",
34
 
   "#*      *##*      *#",
35
 
   "#*      *##*      *#",
36
 
   "#*      *##*      *#",
37
 
   "#*      *##*  2   *#",
38
 
   "#*   %  ****  ?   *#",
39
 
   "#******************#",
40
 
   "#XXXXXXXX##wwwwwwww#",
41
 
   "#DDDDDDDD###0#0#0#0#"
42
 
}
43
 
 
44
 
 
45
 
set_default_parent(function(x,y) if (x>=10) then cells["_"](x,y) else cells["-"](x,y) end end)
46
 
oxyd_default_flavor = "d"
47
 
create_world_by_map(level)
48
 
 
49
 
add_rubber_band_pairs(actors, stones, 10, 0)
50
 
 
51
 
spread_tag(pivots)
52
 
render_slopes(slopes)
53
 
 
54
 
oxyd_shuffle()