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

« back to all changes in this revision

Viewing changes to data/levels/ss_esp82.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
 
levelw = 58
3
 
levelh = 13
4
 
create_world(levelw, levelh)
5
 
display.SetFollowMode(display.FOLLOW_SCROLLING)
6
 
oxyd_default_flavor = "b"
7
 
set_actor("ac-rotor", 3, 10.5, {mouseforce=0, range=70, force=50})
8
 
set_actor("ac-blackball", 51.5, 10.5)
9
 
 
10
 
fill_floor("fl-bluegray", 0,0, levelw,levelh)
11
 
enigma.AddConstantForce(0,40)
12
 
 
13
 
function renderLine( line, pattern)
14
 
    for i=1, strlen(pattern) do
15
 
      local c = strsub( pattern, i, i)
16
 
      if c ==   "#" then
17
 
         set_stone("st-glass2", i-1,line)
18
 
      elseif c =="b" then
19
 
         set_stone("st-actorimpulse", i-1,line)
20
 
      elseif c =="c" then
21
 
         set_item("it-coffee", i-1,line)
22
 
      elseif c =="." then
23
 
         set_item("it-extralife", i-1,line)
24
 
      elseif c=="O" then                                                               
25
 
         oxyd(i-1,line)         
26
 
        end
27
 
    end  
28
 
end
29
 
renderLine(00 , "##########################################################")
30
 
renderLine(01 , "#                                                        #")
31
 
renderLine(02 , "#  O  c   O   c  O   .  c     O       c    O     c    O  #")
32
 
renderLine(03 , "#                                                        #")
33
 
renderLine(04 , "#                                                        #")  
34
 
renderLine(05 , "#                                                        #")
35
 
renderLine(06 , "#                                                        #")
36
 
renderLine(07 , "#                                                        #")
37
 
renderLine(08 , "#                                                        #")
38
 
renderLine(09 , "#                                                        #")
39
 
renderLine(10 , "#                                                        #")
40
 
renderLine(11 , "#                                                        #")
41
 
renderLine(12 , "#bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb#") 
42
 
 
43
 
oxyd_shuffle()