Permalink
Browse files

+ files moved, times fixed

  • Loading branch information...
1 parent d4335a9 commit aee82715735162d01d5ed3134d384a84379026dc @floere committed May 11, 2009
@@ -1,7 +1,7 @@
class Puff < ShortLived
def initialize window
- self.lifetime = 1
+ self.lifetime = 40
super window
@@ -3,7 +3,7 @@ class SmallExplosion < ShortLived
include Hurting
def initialize window
- self.lifetime = 0.5
+ self.lifetime = 15
super window
View
@@ -17,7 +17,7 @@ def generates moveable_class, seconds
module InstanceMethods
def start_generating
- threaded 1 do
+ threaded 30 do
generate
end
end
File renamed without changes.
@@ -5,7 +5,7 @@ class Bullet < ShortLived
include Shot
def initialize window
- self.lifetime = 2
+ self.lifetime = 50
super window
@@ -17,7 +17,7 @@ def initialize window
@shape.collision_type = :bullet
self.friction = 0.1
- self.velocity = 100
+ self.velocity = 50
end
def validate_position
File renamed without changes.
File renamed without changes.
@@ -23,7 +23,7 @@ def initialize window
self.muzzle_velocity_func { |target| (target.position - self.muzzle_position[] + self.random_vector(1/skill)).normalize }
self.muzzle_rotation_func { self.rotation }
self.range = 300
- self.frequency = 1.5
+ self.frequency = 30
end
def random_vector strength
@@ -13,7 +13,7 @@ class Nuke < ShortLived
attr_reader :score
def initialize window
- self.lifetime = 20
+ self.lifetime = 800
super window
@@ -3,7 +3,7 @@ class NukeLauncher < Gun
def initialize window
super window
- self.frequency = 0.3
+ self.frequency = 100
self.range = 500
self.muzzle_position_func { self.position }
self.muzzle_velocity_func { |target| self.direction_from_earth }
@@ -40,7 +40,7 @@ def initialize window
self.muzzle_position_func { self.position + self.direction_to_earth * 20 }
self.muzzle_velocity_func { |target| self.direction_to_earth }
self.muzzle_rotation_func { self.rotation }
- self.frequency = 2
+ self.frequency = 20
self.lives = 30
end
View
@@ -37,17 +37,19 @@
require 'lib/lives'
require 'lib/short_lived'
-require 'lib/puff'
-require 'lib/small_explosion'
-require 'lib/player'
-require 'lib/gun'
-require 'lib/nuke_launcher'
-require 'lib/asteroid'
-require 'lib/bullet'
require 'lib/controls'
-require 'lib/earth'
-require 'lib/city'
-require 'lib/nuke'
+
+require 'lib/ambient/puff'
+require 'lib/ambient/small_explosion'
+require 'lib/units/player'
+require 'lib/units/gun'
+require 'lib/units/nuke_launcher'
+require 'lib/units/asteroid'
+require 'lib/units/bullet'
+require 'lib/units/earth'
+require 'lib/units/city'
+require 'lib/units/nuke'
+
require 'lib/game_window'
EARTH_POSITION = CP::Vec2.new(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2)

0 comments on commit aee8271

Please sign in to comment.