Skip to content

Commit

Permalink
Adds:
Browse files Browse the repository at this point in the history
  => Prepares Gem for Release
  • Loading branch information
NSCoder committed Jul 28, 2013
1 parent 35e5622 commit cba1ad8
Show file tree
Hide file tree
Showing 33 changed files with 42 additions and 616 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
joybox (1.1.0b2)
joybox (1.1.0)
rake

GEM
Expand Down
8 changes: 0 additions & 8 deletions app/ios/app_delegate.rb
Expand Up @@ -7,13 +7,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
debug repl: true,
physics: [:shapes, :aabb]
end
@director.should_enable_retina_display = true


sprite_batch = SpriteBatch.new file_name: 'sprite_sheet.png'
p_tex = Pointer.new(CcTexParams.type)
p_tex[0] = CcTexParams.new(GL_LINEAR, GL_LINEAR, GL_REPEAT, GL_REPEAT)
sprite_batch.texture.setTexParameters(p_tex)

@navigation_controller = UINavigationController.alloc.initWithRootViewController(@director)
@navigation_controller.navigationBarHidden = true
Expand All @@ -22,7 +15,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.setRootViewController(@navigation_controller)
@window.makeKeyAndVisible

@director << GameScene.new
true
end

Expand Down
7 changes: 0 additions & 7 deletions app/ios/layers/background_layer.rb

This file was deleted.

81 changes: 0 additions & 81 deletions app/ios/layers/game_layer.rb

This file was deleted.

57 changes: 0 additions & 57 deletions app/ios/layers/map_layer.rb

This file was deleted.

135 changes: 0 additions & 135 deletions app/ios/layers/physics_layer.rb

This file was deleted.

11 changes: 0 additions & 11 deletions app/ios/scenes/game_scene.rb

This file was deleted.

5 changes: 2 additions & 3 deletions app/osx/app_delegate.rb
Expand Up @@ -9,10 +9,9 @@ def buildWindow
@director = Joybox::Configuration.setup do
director display_stats: true
debug repl:true,
physics: [:shapes, :aabb, :center_of_mass]
physics: [:shapes, :aabb, :center_of_mass]
end


@main_window = NSWindow.alloc.initWithContentRect([[240, 180], [480, 320]],
styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask,
backing: NSBackingStoreBuffered,
Expand All @@ -22,6 +21,6 @@ def buildWindow
@main_window.contentView.addSubview(@director.view)
@main_window.orderFrontRegardless

@director.run_with_scene(MapLayer.scene)
@director.run_with_scene(GameLayer.scene)
end
end
5 changes: 5 additions & 0 deletions app/osx/layers/game_layer.rb
@@ -0,0 +1,5 @@
class GameLayer < Joybox::Core::Layer

scene

end

0 comments on commit cba1ad8

Please sign in to comment.