Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Forum
Search
Topic Cannot install Gosu on OS X 10.9.1? By Eamonn Date 2014-02-02 20:07
Ok well I will post the CPP errors.

I didn't get Ruby pre installed on my Mavericks, I had to download Ruby myself. I installed V2.1.0. I am using an official Mavericks installation, not a Hackintosh.

I decided to install JewelaryBox and use Ruby 1.9.3-p484, just in case Gosu didn't work with Ruby 2.1.0.

I cannot find a way to download Ruby 2.0.0, just Ruby 2.1.0.

Anyway, after switching to Ruby 2.1.0 using JewelaryBox, and using the RVM command, Gosu now works! :D Thanks!
Topic Cannot install Gosu on OS X 10.9.1? By Eamonn Date 2014-01-30 21:22
I recently put an SSD into my MacBook Pro, and now I cannot seem to install Gosu. It installs fine, and says there was 1 gem installed, but when I build and run any Gosu code, I get the following error message:

/Users/Eamonn/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- gosu (LoadError)
  from /Users/Eamonn/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in
require'
  from /Users/Eamonn/Programming/Ruby/Tests/main.rb:10:in `<main>'
[Finished in 0.2s with exit code 1]
[shell_cmd: ruby "/Users/Eamonn/Programming/Ruby/Tests/main.rb"]
[dir: /Users/Eamonn/Programming/Ruby/Tests]
[path: /usr/bin:/bin:/usr/sbin:/sbin]


This is both in Sublime Text 3 and from the command line. It seems to me that it cannot find my Gosu installation. I have no idea where it installs to. I installed it using "sudo gem install gosu", because otherwise it just get's stuck hanging. I'm still pretty inexperienced with Gosu, but I have a better understanding of both game development and Ruby now, so I think I'll give it a go again!

I doubt this would be the issue, but when installing I get LOADS of errors from CPP files. I have Xcode Command Line Tools installed, and I had one hell of a time installing Ruby itself. It look me like 5 hours to install it because it kept just producing errors and not working, but after trying the same thing over and over again it worked. This isn't working with Gosu :(

Thanks! Any help is appreciated!

P.S. I'm using the example Gosu code, which is the following:

=begin

This very simple example demonstrates the Gosu::Window update/draw
loop by incrementing a counter on each update, and drawing the value
on each call to draw.

=end

require 'rubygems'
require 'gosu'

class GameWindow < Gosu::Window

  def initialize
    super(640,480,false)
    self.caption = "Update/Draw Demo"
   
    # we load the font once during initialize, much faster than
    # loading the font before every draw
    @font = Gosu::Font.new(self, Gosu::default_font_name, 20)
    @counter = 0
  end
 
  def update
    @counter += 1
  end
 
  def draw
    @font.draw(@counter, 0, 0, 1)
  end
 
  def button_down(id)
    if id == Gosu::KbEscape
      close  # exit on press of escape key
    end
  end

end

window = GameWindow.new
window.show
Topic A few questions on Gosu... By Eamonn Date 2013-07-02 22:11
Ok, most my questions on Gosu can be summed up in one question, if you're familiar with the LÖVE engine.

Is Gosu as powerful(or maybe even more powerful) than LÖVE/löve/Löve/love2d/Love2d/löve2d/Löve2d/LÖVE2d?

If you are not familiar with LÖVE, here are my questions:

• Can Gosu handle SpriteSheets, either via a plugin/library or natively?
• Can Gosu render Tiled maps?
• Is Gosu capable of creating a commercial game? Purely curiosity!!
• Is Gosu still active?

Those are questions that could have been answered if you knew what LÖVE was. Now I have a few other questions on Ruby & Gosu, and here they are:

• I asked this a while ago, but maybe there's one now: Is there a tutorial on Gosu? If not, can I have a game to learn from?
• Where could I go to recap on Ruby?
• Are there any commercial games made using Gosu?

As I asked above, where can I go to recap on Ruby? Maybe a small 20 minute recap? The Ruby website was good for a recap, with their learn Ruby in 20 minutes. But I'd like to recap more!!

Thanks! Any help is appreciated!
Topic Can I use Gosu to make an Isometric 2D game? By Eamonn Date 2013-05-17 14:46
Hey that IS what I'm looking for. I was told somewhere it was called isometric. Is this achievable using Gosu?
Topic Looking for a Gosu tutorial(Video or Text) By Eamonn Date 2013-05-17 14:39
Thank you all for your help! So really I should just read the main parts of the documentation and then when I understand the main concepts get some example games and mod them a little bit? The only thing that puzzles me is camera movement. What I think you would do would make the X/Y position of the object(s) that you want to move adjust depending on the way you move like up, down, left and right. I'll look into it though. Thanks you all for giving me some help on this!!! :D
Topic Looking for a Gosu tutorial(Video or Text) By Eamonn Date 2013-05-16 20:09
Hello. I have recently finished learning the Ruby Programming Language and I would like to jump right into learning Gosu. I was looking at the ruby4kids tutorial series but it didn't really teach that much and wasn't very useful. I could not find any other tutorials. Does anyone know where I can find a simple easy(ish)-to-follow Gosu tutorial? I'd like it to teach enough concepts to program a full game. If a tutorial is not a good idea, how do other people learn Gosu? Can you tell me the best way to learn Gosu? I don't like reading though documentation so don't say to read the documentation(even if it's the best thing :P).

Thanks! Any help is welcome/appreciated! :D
Topic Can I use Gosu to make an Isometric 2D game? By Eamonn Date 2013-05-15 19:44
Hello. I am planning to make a game with Ruby and Gosu. I was gonna use RubyGame but found no good tutorials on it. So I found this nifty little library with a good few tutorials. Bear in mind I'm still learning Ruby.

So I am planning on making my game with the Isometric camera view. For those that don't know it's like the camera view from the old pokemon DS games(Pokemon Perl + Diamond). Can Gosu create that camera angle? If so could you maybe link me to a video/tutorial on how to do it? This may be a little stupid, so if it is would it become clearer when I finish learning Gosu and Ruby? Thank you for any feedback and please don't hate on this if it is stupid :D

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill