Z
Zsolnai Csaba
Hello
I'm trying to write a program, that hopefully will turn into a simple
strategy game sometime. For now, i've got to the point, where a new game
window shows up.
Now i wrote a method that should draw a rectangle when you hold down the
left mouse button, and move the mouse (like in any rts game, so that you
can select multiple units). Now, this method obviously does not work,
and i'm not sure why.
If somebody could look at my code (its 1 page), and tell me the problem,
i would be grateful. However, i'm using the 'gosu' module, so it is
needed to run this program. I attached the code to this message.
Attachments:
http://www.ruby-forum.com/attachment/3427/Gosu.rb
I'm trying to write a program, that hopefully will turn into a simple
strategy game sometime. For now, i've got to the point, where a new game
window shows up.
Now i wrote a method that should draw a rectangle when you hold down the
left mouse button, and move the mouse (like in any rts game, so that you
can select multiple units). Now, this method obviously does not work,
and i'm not sure why.
If somebody could look at my code (its 1 page), and tell me the problem,
i would be grateful. However, i'm using the 'gosu' module, so it is
needed to run this program. I attached the code to this message.
Attachments:
http://www.ruby-forum.com/attachment/3427/Gosu.rb