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' ,
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")
@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...
> 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.
Can you please open a Terminal,
? That is the most reliable way to see why the .app won't run.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill