Changeset 17319
- Timestamp:
- 08/10/08 15:53:13 (5 years ago)
- Location:
- lang/ruby/nario/nario
- Files:
-
- 1 removed
- 11 modified
-
image/bush2.bmp (modified) (previous)
-
image/castle.bmp (modified) (previous)
-
image/chibi_nario.bmp (modified) (previous)
-
image/cloud1.bmp (modified) (previous)
-
image/cloud2.bmp (modified) (previous)
-
image/cloud3.bmp (modified) (previous)
-
image/coin.bmp (modified) (previous)
-
image/kuribo.bmp (modified) (previous)
-
image/mountain.bmp (modified) (previous)
-
image/nokonoko.bmp (modified) (previous)
-
image/php-j.gif (deleted)
-
scene.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/nario/nario/scene.rb
r17193 r17319 152 152 def sky(max_x) 153 153 background Material::BackGround.new_color(0, 0, 11000, 800, [0xff, 0xff, 0xfe]) 154 #x = 0155 #while max_x > 0156 #x+=300157 #background Material::BackGround.new_single_image(x, 100, SDL::Surface.load("nario/image/cloud1.bmp"))158 #x+=300159 #background Material::BackGround.new_single_image(x, 50, SDL::Surface.load("nario/image/cloud3.bmp"))160 #x+=400161 #background Material::BackGround.new_single_image(x, 30, SDL::Surface.load("nario/image/cloud2.bmp"))162 #max_x-=(300+300+400)163 #end154 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 164 164 end 165 165 166 166 def ground(max_x, floor) 167 #x = 0168 #while max_x > 0169 #b1 = Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/bush2.bmp"))170 #x+=500171 #b1.y_move(-b1.h)172 #background b1173 #m = Material::BackGround.new_single_image(x, floor, SDL::Surface.load("nario/image/mountain.bmp"))174 #x+=500175 #m.y_move(-m.h)176 #background m177 #max_x-=(300+400)178 #end167 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 179 179 end 180 180
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)