/[enigma]/enigma/data/models-2d.lua
ViewVC logotype

Diff of /enigma/data/models-2d.lua

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

revision 1.95 by reallysoft, Fri Jul 18 17:09:20 2003 UTC revision 1.96 by reallysoft, Mon Jul 21 08:19:05 2003 UTC
# Line 885  do Line 885  do
885  end  end
886    
887  -- Stone impulse stone  -- Stone impulse stone
888  namelist = def_subimages("st-stoneimpulse", {h=4})  --
889  def_roundstone("st-stoneimpulse", namelist[1])  -- Note: It's important that the duration of the closing animation
890  def_anim("stoneimpulse-anim1", buildframes(namelist, 60))  -- (anim2) is longer than the opening animation (anim1). Otherwise
891  def_roundstone("st-stoneimpulse-anim1", "stoneimpulse-anim1")  -- impulse stones do not work porperly!
 def_anim("stoneimpulse-anim2", reverseframes(buildframes(namelist, 61)))  
 def_roundstone("st-stoneimpulse-anim2", "stoneimpulse-anim2")  
892    
893  namelist = def_subimages("st-stoneimpulse-hollow", {h=4})  do
894       namelist = def_subimages("st-stoneimpulse", {h=4})
895       def_roundstone("st-stoneimpulse", namelist[1])
896       frames={}
897       for i=1,4 do tinsert(frames, namelist[i]) end
898       def_anim("stoneimpulse-anim1", buildframes(frames, 60))
899       def_roundstone("st-stoneimpulse-anim1", "stoneimpulse-anim1")
900       tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer!
901       def_anim("stoneimpulse-anim2", reverseframes(buildframes(frames, 60)))
902       def_roundstone("st-stoneimpulse-anim2", "stoneimpulse-anim2")
903    end
904    
905  def_shmodel("st-stoneimpulse-hollow", namelist[1], "sh-glass")  do
906  def_anim("stoneimpulse-hollow-anim1", buildframes(namelist, 60))     namelist = def_subimages("st-stoneimpulse-hollow", {h=4})
907  def_shmodel("st-stoneimpulse-hollow-anim1", "stoneimpulse-hollow-anim1", "sh-glass")     def_shmodel("st-stoneimpulse-hollow", namelist[1], "sh-glass")
908  def_anim("stoneimpulse-hollow-anim2", reverseframes(buildframes(namelist, 61)))     frames={}
909  def_shmodel("st-stoneimpulse-hollow-anim2", "stoneimpulse-hollow-anim2", "sh-glass")     for i=1,4 do tinsert(frames, namelist[i]) end
910       def_anim("stoneimpulse-hollow-anim1", buildframes(frames, 60))
911       def_shmodel("st-stoneimpulse-hollow-anim1", "stoneimpulse-hollow-anim1", "sh-glass")
912       tinsert(frames, namelist[4]) -- add 1 frame to make closing anim longer!
913       def_anim("stoneimpulse-hollow-anim2", reverseframes(buildframes(namelist, 65)))
914       def_shmodel("st-stoneimpulse-hollow-anim2", "stoneimpulse-hollow-anim2", "sh-glass")
915    end
916    
917  -----------------  -----------------
918  -- Thief stone --  -- Thief stone --

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96

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