Basic help

1 view
Skip to first unread message

JeremyW...@gmail.com

unread,
Nov 1, 2007, 9:32:22 PM11/1/07
to ShatteredRuby
So, it's been a while since I've messed around with shattered. Time to
dive back in. So my first question is how do I tell what the bounds of
the window are?
When I do something like
key :held => :down, :action => { :move => :down }

I lose my object off the face of the screen. Also, I noticed in
key_manager.rb that the

# Called from the key listener
def key_held(e)
@held[e.key]=true
@released[e.key]=false
@pressed[e.key]=false
end

method was missing, so I popped it back in there.

The other thing I was curious about was, how do I get text to appear
on the ogre screen. I can get it in the console where the script/
runner is running, but that's it. Do I have to have text objects, and
treat them like images?


~Jeremy

Martyn Garcia

unread,
Nov 5, 2007, 11:47:49 AM11/5/07
to shatte...@googlegroups.com, ShatteredRuby
Hi Jeremy,
Sorry for the late response, mikkel and I just got back from ruby conf.

There isn't any built in DSL for text yet, but it is accessible using
ogrerb. I'll send you a link later today.

As far as the key held event... I swear we are using it. I'll have to
look into it

Thanks,
Martyn

Sent from my iPhone

On Nov 1, 2007, at 7:32 PM, "JeremyW...@gmail.com" <JeremyW...@gmail.com

Reply all
Reply to author
Forward
0 new messages