Skip to content

Instantly share code, notes, and snippets.

View shawn42's full-sized avatar

Shawn Anderson shawn42

  • Cisco
  • Holland, MI
View GitHub Profile
sanderson@shiny-3:~/code/eruta/src$ rsdl main.rb
Loaded Tilemap
2009-08-27 15:48:07.951 rsdl[17019:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
/Users/sanderson/code/eruta/src/sisa/screenmixin.rb:54: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]
-- control frame ----------
c:0007 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :open
c:0006 p:0285 s:0079 b:0079 l:000078 d:000078 METHOD /Users/sanderson/code/eruta/src/sisa/screenmixin.rb:54
c:0005 p:0027 s:0067 b:0067 l:000066 d:000066 METHOD main.rb:65
sanderson@shiny-3:~/code/chingu/examples$ ruby example7.rb
\example7.rb:79:in `update': uninitialized constant Particles1::Particle (NameError)
from /Users/sanderson/code/chingu/lib/chingu/game_state_manager.rb:229:in `update'
from /Users/sanderson/code/chingu/lib/chingu/window.rb:134:in `update_game_state_manager'
from /Users/sanderson/code/chingu/lib/chingu/window.rb:101:in `update'
from example7.rb:93:in `show'
from example7.rb:93
gen_eval.c: In function ‘redirect_iv_for_object’:
gen_eval.c:64: error: ‘ROBJECT_EMBED’ undeclared (first use in this function)
gen_eval.c:64: error: (Each undeclared identifier is reported only once
gen_eval.c:64: error: for each function it appears in.)
gen_eval.c:71: error: ‘struct RObject’ has no member named ‘as’
gen_eval.c:71: error: ‘struct RObject’ has no member named ‘as’
gen_eval.c:72: error: ‘struct RObject’ has no member named ‘as’
gen_eval.c:72: error: ‘struct RObject’ has no member named ‘as’
gen_eval.c:73: error: ‘struct RObject’ has no member named ‘as’
gen_eval.c:73: error: ‘struct RObject’ has no member named ‘as’
lines = ["001002003004",
"005006007008"
]
map = []
lines.each do |line|
map << line
end
w = map[0].size/3
cc -dynamic -bundle -undefined suppress -flat_namespace -o chipmunk.bundle chipmunk.o cpArbiter.o cpArray.o cpBB.o cpBody.o cpCollision.o cpHashSet.o cpJoint.o cpPolyShape.o cpShape.o cpSpace.o cpSpaceHash.o cpVect.o rb_chipmunk.o rb_cpBB.o rb_cpBody.o rb_cpJoint.o rb_cpShape.o rb_cpSpace.o rb_cpVect.o -L. -L/usr/local/lib -L. -arch x86_64 -arch i386 -arch ppc -lruby1.8 -ldl -lobjc
ld warning: in /usr/local/lib/libruby1.8.dylib, file is not of required architecture
ld warning: in /usr/local/lib/libruby1.8.dylib, file is not of required architecture
cd -
** Execute copy:chipmunk:i686-darwin9.7.0:1.8.7
cp tmp/i686-darwin9.7.0/chipmunk/1.8.7/chipmunk.bundle lib/1.8/chipmunk.bundle
rake aborted!
Don't know how to build task 'lib/1.9/chipmunk.bundle'
/Users/sanderson/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]'
/Users/sanderson/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:605:in `invoke_prerequisites'
@delay = 5
while @delay > 0.2
# spawn
puts "sleeping #{@delay}"
sleep @delay
@delay *= (1-rand)
end
sanderson@shiny-3:~/code/gamebox/examples/roids$ rake
(in /Users/sanderson/code/gamebox/examples/roids)
Warning: Could not load SDL_gfx! Continuing anyway, but some Surface methods will be missing.
Error message was: "Could not load SDL_gfx."
rsdl src/app.rb
Warning: Could not load SDL_gfx! Continuing anyway, but some Surface methods will be missing.
Error message was: "Could not load SDL_gfx."
2009-10-20 23:43:11.560 rsdl[46938:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
./src/../config/../../../lib/gamebox/wrapped_screen.rb:14:in `send': undefined method `draw_circle_s' for #<Rubygame::Screen:0xb0a8038> (NoMethodError)
% cumulative self self total
time seconds seconds calls ms/call ms/call name
11.17 12.35 12.35 29960 0.41 8.98 Array#each
7.36 20.49 8.14 18107 0.45 1.20 Rubygame::Color.convert_color
4.21 25.15 4.66 18107 0.26 1.83 Rubygame::Color.make_sdl_rgba
4.18 29.77 4.62 16670 0.28 2.40 Rubygame::Surface#_draw_circle
3.64 33.80 4.03 18107 0.22 0.33 Array#collect!
2.77 36.86 3.06 4160 0.74 1.58 Electron#update
2.58 39.71 2.85 124551 0.02 0.02 Kernel.kind_of?
2.32 42.27 2.56 18218 0.14 0.20 Array#collect
8.37 5.59 5.59 9171 0.61 15.72 Array#each
4.30 8.46 2.87 9640 0.30 1.35 Rubygame::Surface#_draw_circle
2.88 10.38 1.92 34688 0.06 0.20 Hash#[]
2.86 12.29 1.91 10649 0.18 0.26 Array#hash
2.79 14.15 1.86 10775 0.17 0.25 Array#collect
2.74 15.98 1.83 10614 0.17 0.74 Rubygame::Color.make_sdl_rgba
2.58 17.70 1.72 2430 0.71 1.37 Electron#update
2.38 19.29 1.59 21814 0.07 3.08 Class#new
1.89 20.55 1.26 3569 0.35 1.82 NiceFFI::Struct#initialize
1.68 21.67 1.12 8210 0.14 0.24 Array#eql?
class MeteorManager < Actor
def setup
@meteors = []
count = @opts[:count]
count.times do
@meteors << spawn :meteor
end
end
def method_missing(it,*args)