Changeset 17319

Show
Ignore:
Timestamp:
08/10/08 15:53:13 (5 years ago)
Author:
authorNari
Message:

image change

Location:
lang/ruby/nario/nario
Files:
1 removed
11 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/nario/nario/scene.rb

    r17193 r17319  
    152152    def sky(max_x) 
    153153      background Material::BackGround.new_color(0, 0, 11000, 800, [0xff, 0xff, 0xfe]) 
    154 #      x = 0 
    155 #      while max_x > 0 
    156 #        x+=300 
    157 #        background Material::BackGround.new_single_image(x, 100, SDL::Surface.load("nario/image/cloud1.bmp")) 
    158 #        x+=300 
    159 #        background Material::BackGround.new_single_image(x, 50, SDL::Surface.load("nario/image/cloud3.bmp")) 
    160 #        x+=400 
    161 #         background Material::BackGround.new_single_image(x, 30, SDL::Surface.load("nario/image/cloud2.bmp")) 
    162 #         max_x-=(300+300+400) 
    163 #       end 
     154      x = 0 
     155      while max_x > 0 
     156        x+=300 
     157        background Material::BackGround.new_single_image(x, 100, SDL::Surface.load("nario/image/cloud1.bmp")) 
     158        x+=300 
     159        background Material::BackGround.new_single_image(x, 50, SDL::Surface.load("nario/image/cloud3.bmp")) 
     160        x+=400 
     161         background Material::BackGround.new_single_image(x, 30, SDL::Surface.load("nario/image/cloud2.bmp")) 
     162         max_x-=(300+300+400) 
     163       end 
    164164    end 
    165165 
    166166    def ground(max_x, floor) 
    167 #       x = 0 
    168 #       while max_x > 0 
    169 #         b1 =  Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/bush2.bmp")) 
    170 #         x+=500 
    171 #         b1.y_move(-b1.h) 
    172 #         background b1 
    173 #         m = Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/mountain.bmp")) 
    174 #         x+=500 
    175 #         m.y_move(-m.h) 
    176 #         background m 
    177 #         max_x-=(300+400) 
    178 #       end 
     167       x = 0 
     168       while max_x > 0 
     169         b1 =  Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/bush2.bmp")) 
     170         x+=500 
     171         b1.y_move(-b1.h) 
     172         background b1 
     173         m = Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/mountain.bmp")) 
     174         x+=500 
     175         m.y_move(-m.h) 
     176         background m 
     177         max_x-=(300+400) 
     178       end 
    179179    end 
    180180