-
The function Sprites::Group#collide_group says in documentation:
"Check collision between each member of the calling Group and each member of group. Returns a Hash table with each member of the calling Group as a key, and as a value an Array of all members of group that it collided with."
However, it always returns nil.
example:
class Foo
include Sprites::Sprite
def rect;...
2007-05-13 16:51:27 UTC in rubygame
-
irb(main):011:0> f = Ftor.new 1,0
=> #
irb(main):012:0> f.m = f.m
=> 1.0
irb(main):013:0> p f
#
Notice the reversed x and y coordinates for the ftor.
2007-05-13 16:05:21 UTC in rubygame
-
Screen#set_mode.
2007-05-02 16:44:20 UTC in rubygame
-
SDL_Delay is used by Clock.delay and Clock.wait, which blocks the whole ruby process, suspending all other ruby-threads. Try this (http://pastie.caboo.se/57938):
require "rubygame"
Rubygame.init
$x = 0
Thread.new { loop do $x = $x + 1 end }
#sleep 1
Rubygame::Clock.delay 1000
puts $x
If you change the comments from "sleep 1" to the "Clock.delay", the counter is increased properly.
2007-05-02 16:41:06 UTC in rubygame
-
imi committed revision 2 to the Clan SVN repository, changing 254 files.
2006-03-19 09:58:58 UTC in Clan
-
I hope to get clan reanimated the next weeks.
- First, the code repository has to been fixed
- Then I will translate the codebase into english and modernize it to Java5
- I hope to catch some designers for Clan. My old one is cool but has almost no time left to do anything. Stea.. err. Inspiring from other games like Attal: Lords of Doom (HOMM-clone) could also be an option.
2006-03-19 09:55:28 UTC in Clan
-
imi committed revision 1 to the Clan SVN repository, changing 319 files.
2006-03-16 17:25:42 UTC in Clan
-
imi committed patchset 2278 of module MegaMekNET to the MegaMekNET CVS repository, changing 2 files.
2005-04-11 20:19:16 UTC in MegaMekNET
-
imi committed patchset 2277 of module MegaMekNET to the MegaMekNET CVS repository, changing 9 files.
2005-04-11 20:01:27 UTC in MegaMekNET
-
imi committed patchset 2276 of module MegaMekNET to the MegaMekNET CVS repository, changing 4 files.
2005-04-11 19:13:19 UTC in MegaMekNET