Changeset 27403

Show
Ignore:
Timestamp:
12/25/08 20:54:58 (4 years ago)
Author:
isaisstillalive
Message:

リソースの位置を整理

Location:
lang/ruby/starframe/samples/stg
Files:
1 added
1 modified
11 moved

Legend:

Unmodified
Added
Removed
  • lang/ruby/starframe/samples/stg/main.rb

    r27389 r27403  
    3333#     自機 
    3434class Player < Character 
    35   @texture = StarRuby::Texture.load("player") 
     35  @texture = StarRuby::Texture.load("resources/player") 
    3636  @center_x = 16 
    3737  @center_y = 16+6 
     
    8686    # カスリアニメーションを動的に生成できるようにしたい 
    8787    @scene.foreground.render_rect other.x-3, other.y-3, 7, 7, StarRuby::Color.new(0xFF, 0xFF, 0xFF) 
    88     StarRuby::Audio.play_se "tm2_shoot000" if StarRuby::Audio.playing_se_count < 4 
     88    StarRuby::Audio.play_se "resources/tm2_shoot000" if StarRuby::Audio.playing_se_count < 4 
    8989  end 
    9090   
    9191  def init *args 
    9292    self.src_height = 32 
    93     @crash_se = "tm2r_bom34" 
     93    @crash_se = "resources/tm2r_bom34" 
    9494    @score = -1000 
    9595    super 
     
    124124  def fire 
    125125    animation(:shot).start 
    126     StarRuby::Audio.play_se "tm2_gun001" 
     126    StarRuby::Audio.play_se "resources/tm2_gun001" 
    127127  end 
    128128   
     
    145145  def init options 
    146146    @target = options[:target] 
    147     @crash_se = "tm2_bom001" 
     147    @crash_se = "resources/tm2_bom001" 
    148148     
    149149    @shot_point_x =  0 
     
    182182  # 敵機名:ディスク 
    183183  class Disc < Enemy 
    184     @texture = StarRuby::Texture.load("enemy") 
     184    @texture = StarRuby::Texture.load("resources/enemy") 
    185185    @center_x = 16 
    186186    @center_y = 16 
     
    245245 
    246246class Smoke < StarFrame::Sprite 
    247   @texture = StarRuby::Texture.load("smoke") 
     247  @texture = StarRuby::Texture.load("resources/smoke") 
    248248  @center_x = 16 
    249249  @center_y = 16 
     
    268268 
    269269class Shot < StarFrame::Sprite 
    270   @texture = StarRuby::Texture.load("shot") 
     270  @texture = StarRuby::Texture.load("resources/shot") 
    271271  @center_x = 4 
    272272  @center_y = 4 
     
    343343    @pause = false 
    344344     
    345     @numbers = StarRuby::Texture.load("numbers") 
    346     @background = StarRuby::Texture.load("bg") 
     345    @numbers = StarRuby::Texture.load("resources/numbers") 
     346    @background = StarRuby::Texture.load("resources/bg") 
    347347    @foreground = StarRuby::Texture.new(@screen.width, @screen.height) 
    348348     
    349349    @pause_screen = StarRuby::Texture.new(@screen.width, @screen.height) 
    350350    @pause_screen.fill StarRuby::Color.new(0, 0, 0) 
    351     pause_logo = StarRuby::Texture.load("pause") 
     351    pause_logo = StarRuby::Texture.load("resources/pause") 
    352352    @pause_screen.render_texture pause_logo, (@screen.width-pause_logo.width)/2, (@screen.height-pause_logo.height)/2 
    353353  end 
  • lang/ruby/starframe/samples/stg/resources/bg.png

  • lang/ruby/starframe/samples/stg/resources/enemy.png

  • lang/ruby/starframe/samples/stg/resources/numbers.png

  • lang/ruby/starframe/samples/stg/resources/pause.png

  • lang/ruby/starframe/samples/stg/resources/player.png

  • lang/ruby/starframe/samples/stg/resources/shot.png

  • lang/ruby/starframe/samples/stg/resources/smoke.png

  • lang/ruby/starframe/samples/stg/resources/tm2_bom001.wav

  • lang/ruby/starframe/samples/stg/resources/tm2_gun001.wav

  • lang/ruby/starframe/samples/stg/resources/tm2_shoot000.wav

  • lang/ruby/starframe/samples/stg/resources/tm2r_bom34.wav