- Timestamp:
- 10/07/08 23:30:12 (2 months ago)
- Files:
-
- 1 modified
-
lang/ruby/nario/nario/test.rb (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/nario/nario/test.rb
r20291 r20929 85 85 } 86 86 87 chibi_nario_test = Scene::Builder.new{ 88 mapping :map_1, ::Scene::FlowWorld.new{ 89 success :map_1 90 } 91 }.scene_map[:map_1].screen_build { 87 chibi_nario_test = {} 88 chibi_nario_test[:map_1] = ::Scene::FlowWorld.new{ success :map_1 } 89 chibi_nario_test[:map_1].build_scene { 92 90 background Material::BackGround.new_color(0, 0, 10000, 800, [0x00, 0x99, 0xff]) 93 91 floor Material::Floor.new_fill_image(0, 600, 200, 300, SDL::Surface.load("nario/image/floor_block.bmp")) … … 108 106 109 107 test_chibi_nario_move = lambda {|input, screen| 110 chibi_nario_test.act(input) 111 chibi_nario_test.render(screen) 112 } 113 114 fear_nario_test = Scene::Builder.new{ 115 mapping :map_1, ::Scene::FlowWorld.new{ 116 success :map_1 117 } 118 }.scene_map[:map_1].screen_build { 108 chibi_nario_test[:map_1].act(input) 109 chibi_nario_test[:map_1].render(screen) 110 } 111 112 fear_nario_test = {} 113 fear_nario_test[:map_1] = ::Scene::FlowWorld.new{ success :map_1 } 114 fear_nario_test[:map_1].build_scene { 119 115 background Material::BackGround.new_color(0, 0, 6000, 800, [0x00, 0x99, 0xff]) 120 116 floor Material::Floor.new_fill_image(0, 600, 800, 300, SDL::Surface.load("nario/image/floor_block.bmp")) … … 132 128 133 129 test_fear_nario_move = lambda {|input, screen| 134 fear_nario_test.act(input) 135 fear_nario_test.render(screen) 136 } 137 138 block_test = Scene::Builder.new{ 139 mapping :map_1, ::Scene::FlowWorld.new{ 140 success :map_1 141 } 142 }.scene_map[:map_1].screen_build { 130 fear_nario_test[:map_1].act(input) 131 fear_nario_test[:map_1].render(screen) 132 } 133 134 block_test = {} 135 block_test[:map_1] = ::Scene::FlowWorld.new{ success :map_1 } 136 block_test[:map_1].build_scene { 143 137 background Material::BackGround.new_color(0, 0, 6000, 800, [0x00, 0x99, 0xff]) 144 138 block Material::Pipe.new(500, 480) … … 161 155 } 162 156 163 goal_test = Scene::Builder.new{ 164 mapping :map_1, ::Scene::FlowWorld.new{ 165 success :map_1 166 } 167 }.scene_map[:map_1].screen_build { 168 background Material::BackGround.new_color(0, 0, 6000, 800, [0x00, 0x99, 0xff]) 157 goal_test = {} 158 goal_test[:map_1] = ::Scene::FlowWorld.new{ success :map_1 } 159 goal_test[:map_1].build_scene { 169 160 floor Material::Floor.new_fill_image(0, 630, 5000, 300, SDL::Surface.load("nario/image/floor_block.bmp")) 170 161 goal 800 … … 173 164 174 165 test_goal = lambda {|input, screen| 175 goal_test.act(input) 176 goal_test.render(screen) 177 } 178 179 goal_test = Scene::Builder.new{ 180 mapping :map_1, ::Scene::FlowWorld.new{ 181 success :map_1 182 } 183 }.scene_map[:map_1].screen_build { 166 goal_test[:map_1].act(input) 167 goal_test[:map_1].render(screen) 168 } 169 170 goal_test[:map_1] = ::Scene::FlowWorld.new{ success :map_1 } 171 goal_test[:map_1].build_scene { 184 172 background Material::BackGround.new_color(0, 0, 6000, 800, [0x00, 0x99, 0xff]) 185 173 floor Material::Floor.new_fill_image(0, 630, 5000, 300, SDL::Surface.load("nario/image/floor_block.bmp")) … … 189 177 } 190 178 test_triangle = lambda {|input, screen| 191 goal_test .act(input)192 goal_test .render(screen)179 goal_test[:map_1].act(input) 180 goal_test[:map_1].render(screen) 193 181 } 194 182
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)