/[enigma]/enigma/data/levels/natmaze4.lua
ViewVC logotype

Diff of /enigma/data/levels/natmaze4.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Sun Jan 5 21:15:47 2003 UTC revision 1.2 by ant_39, Thu Feb 13 18:36:19 2003 UTC
# Line 66  do Line 66  do
66      oxyd(2*maze.width-1,2*maze.height)      oxyd(2*maze.width-1,2*maze.height)
67      oxyd(1,2*maze.height)      oxyd(1,2*maze.height)
68      oxyd(2*maze.width-1,0)      oxyd(2*maze.width-1,0)
69        
70      local actorx, actory = cell_to_level( random(maze.width)-1,      -- ant 2003-02-13: actor should not appear at space cell
71                                            random(maze.height)-1 )      local actorx, actory = 0,0
72        repeat
73           actorx, actory = random(maze.width)-1, random(maze.height)-1
74        until (not(cell_is_straight(maze, actorx, actory)))
75    
76        actorx, actory = cell_to_level(actorx, actory)
77      set_actor( "ac-blackball", actorx + 0.5, actory + 0.5,      set_actor( "ac-blackball", actorx + 0.5, actory + 0.5,
78                 { player=0 } )                 { player=0 } )
79  end  end
80  display.SetFollowMode(display.FOLLOW_SCROLLING)  display.SetFollowMode(display.FOLLOW_SCROLLING)
   
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26