Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Problem] Gosu won't work?

I have Gosu v0.7.14 on my Windows laptop. I'm trying to make a game with it, but it won't load. The DOS window just sits there, and it won't load the Gosu window. When I close it, it says it needs more time to complete an operation, but i've left it on for a half-hour, and nothing. Does anyone know what might be causing this?
 
Does this script do anything on your comp?

Code:
 

require 'rubygems'

require 'gosu'

 

class Game < Window

  def initialize

    super(640, 480, false)

    self.caption = "Does it work?"

  end

end

 

$game = Game.new

$game.show
 
@Commodore Whynot

I guess you are thinking he has Rubygems installed, if he doesnt that that code wouldn't work.

therefore you would have to use this code:
Code:
# require 'gosu'

#  

# class Game < Window

#   def initialize

#     super(640, 480, false)

#     self.caption = "Does it work?"

#   end

# end

#  

# $game = Game.new

# $game.show

 


@Ulqiorra
Also, have you put the files found in lib/
into the project folder and then ran the .rb file using Ruby interperter?
 
I have RubyGems, it's just that every other time i turn my laptop on, Gosu won't work. Like this:

Turn on - It works.
Turn off & Turn back on later - It doesn't
Turn off & Turn back on later - It does
etc, etc
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top