By ConnorRM
Date 2016-01-08 03:06
Edited 2016-01-11 19:51
Hi, I'm fairly new to Ruby, and Gosu, and i've created a game, based off of the Cptn_Ruby example, and I was looking to how I can create this game into a mac .app. ( As i'm on Mac OS X.
I have seen the mac os x packaging page, for the first option, i create the app with my game files inside the Contents/Resources folder and follow the steps but the application doesn't run. For stuff like Releasy, I get fairly confused, but i'd probably work it out if it was explained to me like talking to an idiot. For creating an exe file using OCRA, i get an error when running 'ocra example.rb' ,
- /usr/local/lib/ruby/gems/2.2.0/gems/ocra-1.3.6/bin/ocra:41:in relative_path_from': undefined method
path' for "/usr/local/lib/ruby/gems/2.2.0":String (NoMethodError)
and it does not give me an .exe file. Can someone please help me, by telling me the easiest way to package my creation, and show me how exactly?? Any help at all would be appreciated thanks!
UPDATE : I received an error with the words Undefined Method to_blob.
I changed the syntax of all the images, from :
@image = Gosu::Image.new(window, "directory/filename.png")
to
@image = Gosu::Image.new("directory/filename.png")
Ran that with the .app and everything worked. Thanks for telling me how i can see the error in terminal. This helped me narrow down exactly what was going on...
Thanks again!
Loading...