Has anyone tried to run Gosu under KDE?
I searched on my computer for a compositing window manager, but I couldn't find one. I think I'm not running one. I searched for compiz, but I didn't find it. Could there be others? As for OpenGL, Blender seems to run fine.
Sorry for the delay!
I ran the code you provided ( for a few seconds ) , and it generated this :
before main loop
Still, nothing shows on the screen.
The same. The window still isn't showing.
I have this snippet:
a = Gosu::Window.new(640,480,false)
Currently, on my Linux distribution, Backtrack 4 ( based on Ubuntu 8.10, I think ), the show line hangs my whole script. Nothing happens, the window doesn't appear. I followed the instructions written @ http://code.google.com/p/gosu/wiki/GettingStartedOnLinux
What details should I provide you? ruby -v gives this :
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
You're right, it does move a lot smoother. I think I should do something about the static image, because it shows up a lot when the character moves.
Sorry to be asking so many questions about Gosu. I hope this isn't bothering anyone ( if it is, tell me and I'll stop ).
I wrote a small app ( I'm trying to write a game ). I've uploaded the source and the sprites I'm using at http://www.mediafire.com/download.php?mzjnbjimztn
. Here are my questions:
- in order to make the character not move that fast I made update check for a number of milliseconds before changing the image shown on the screen ( I don't know if this is the way it's supposed to be done). The movement now doesn't seem very smooth. Is there another way of achieving this ?
- when moving left, I want to use the same sprites as the ones from moving right so I'm using the @image.draw(x,y,0,-1) call. The thing is, this isn't drawing the image at the same spot, even though the coordinates seem to be the same ones as when drawing the image to the right. I don't know how I could make this right, any suggestions?
I commented the code to the best of my ability, so I think it should be pretty easy to understand ( if anyone should take the time to read it ) . It's about 100 lines long.
I'm curious about how I could go and fix those bugs, so I'll eagerly wait your reply.
Thanks for the details guys!
I noticed the method was there. It has the following signature:
draw (x, y, z, factor_x=1, factor_y=1, color=0xffffffff, mode=:default)
Draws the image so its upper left corner is at (x; y).
How do you interpret the factor_x,factor_y,color and mode parameters?
That worked! Thanks!
Where did you read that?
As soon as I get home I'll post the code that flickers.
In the current game I'm trying to write, I'm using needs_redraw? to control the redrawing process. Is this the best way of controlling flickering? Are there other ways?
I have some sprites for character movement, and I'd like to use the same set for moving front & back. Is there a way to draw an image reversed?
I ran the main source file directly. Sorry!
I downloaded the win build and I have a small bug I could show you. Here's how you reproduce it:
- press enter when the screen appears
- let the zombies kill you
- press enter again like you would start a new game
You can see it here: http://img248.imageshack.us/img248/3191/zombiebug.png
I get this when I try to run it:
read_map': uninitialized constant Tileset::Zlib (NameError)load_map'
from Main.rb:29:in `show'
Is there a way I could draw a rectangle that is semi-transparent?
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill