Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Forum
Search
Topic Showing a new window just hangs in Linux By geo Date 2009-10-10 14:58
Has anyone tried to run Gosu under KDE?
Topic Showing a new window just hangs in Linux By geo Date 2009-10-04 11:19
Yeah, KDE's the default.
Topic Showing a new window just hangs in Linux By geo Date 2009-10-04 06:57
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.
Topic Showing a new window just hangs in Linux By geo Date 2009-10-03 15:05
Hey!

Sorry for the delay!

I ran the code you provided ( for a few seconds ) , and it generated this :

before main loop
update
update
update
update
update
update
update

Still, nothing shows on the screen.
Topic Showing a new window just hangs in Linux By geo Date 2009-09-29 19:29
No output. Nothing.
Topic Showing a new window just hangs in Linux By geo Date 2009-09-29 19:05
The same. The window still isn't showing.
Topic Showing a new window just hangs in Linux By geo Date 2009-09-29 16:11
Hi guys!

I have this snippet:

require "rubygems"
require "gosu"

a = Gosu::Window.new(640,480,false)
a.show

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]
Topic Can you tell if I'm going in the right way? By geo Date 2009-09-18 22:16
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.
Topic Can you tell if I'm going in the right way? By geo Date 2009-09-18 21:46
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!
Topic Can I draw an image reversed on the horizontal axis? By geo Date 2009-09-18 21:12
Thanks for the details guys!
Topic Can I draw an image reversed on the horizontal axis? By geo Date 2009-09-18 18:08
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?
Topic Can I draw an image reversed on the horizontal axis? By geo Date 2009-09-18 16:43
That worked! Thanks!

Where did you read that?
Topic Is this the proper way of reducing flickering? By geo Date 2009-09-18 06:22
As soon as I get home I'll post the code that flickers.
Topic Is this the proper way of reducing flickering? By geo Date 2009-09-17 20:21
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?
Topic Can I draw an image reversed on the horizontal axis? By geo Date 2009-09-17 20:00
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?
Topic ZOMFG!!! ZOMBIEEEEES!!!!!11!oneone!1 By geo Date 2009-09-15 19:08
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
Topic ZOMFG!!! ZOMBIEEEEES!!!!!11!oneone!1 By geo Date 2009-09-15 16:48
I get this when I try to run it:

./Tilemap.rb:111:in read_map': uninitialized constant Tileset::Zlib (NameError)

        from ./Tilemap.rb:67:in
load_map'
        from ./Tilemap.rb:13:in initialize'
        from ./Map.rb:25:in
new'
        from ./Map.rb:25:in initialize'
        from ./Title.rb:38:in
new'
        from ./Title.rb:38:in update'
        from ./Window.rb:32:in
update'
        from Main.rb:29:in `show'
        from Main.rb:29
Topic How can I draw a rectangle that supports transparency? By geo Date 2009-09-15 16:36
Hey guys!

Is there a way I could draw a rectangle that is semi-transparent?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill