Permalink
Browse files

small updates to work w/ Chingu 0.7+

  • Loading branch information...
1 parent 2c29a6a commit e49437c64bd717706f7f855af8f4996bfc33dc4a @ippa committed Jan 27, 2010
Showing with 6 additions and 1 deletion.
  1. +4 −0 .gitignore
  2. +1 −1 src/cavern_state.rb
  3. +1 −0 src/my_game_object.rb
View
@@ -0,0 +1,4 @@
+*.dll
+*.svg
+*.zip
+*.exe
View
@@ -172,7 +172,7 @@ def update
def spawn_smoke(x, y, factor)
x += 10 - rand(20)
y += 10 - rand(20)
- Particle.create(:x => x, :y => y, :image => Image["particle.png"], :fading => -5, :rotating => 10, :zooming => 0.04, :zorder => 100, :mode => :default, :factor => factor)
+ Particle.create(:x => x, :y => y, :image => Image["particle.png"], :fade_rate => -5, :rotation_rate => 10, :scale_rate => 0.04, :zorder => 100, :mode => :default, :factor => factor)
end
def click
View
@@ -2,6 +2,7 @@
# Most in game objects are based this clss
# Provides simple x/y movement, status, animation etc.
#
+require 'set'
class MyGameObject < Chingu::GameObject
attr_reader :rect, :height, :width, :energy
attr_accessor :status, :zorder

0 comments on commit e49437c

Please sign in to comment.