Hai, I hope it's okay to show off with our little game on the mailinglist. Over the weekend we participated in a contest at the Super Gamedev Weekend at the metalab[1] in Vienna. Against the hard competition of games developed in Objectiv-C (for the iPad), pygame, HTML, Flash and even C++ (the only team who couldn't finish) our game in MacRuby did beat them all. Well, not in voting category "Fun" (who needs that in a game?), but in "Theme" (it was Black&White) and it took the win in the final round of voting on "overall impression". We used MacRuby and OpenGL, we didn't manage to draw any fonts, the fullscreen mode is not reliable and the Release build seems to work on if one has macruby installed. But all in all we are happy with the weekend's work :) I hope you like it and if you find a way to put some fun into it, go ahead. https://github.com/Metalab/The-Flying-Camera ciao, tom [1] http://metalab.at a hackerspace, visit us if you are ever in tow.
Hi Thomas, Very well done :) I gave the game a try and it works fine. (I noticed that the Xcode project has a reference to a README file which doesn't exist in the github repository. You may want to fix that.) Congratulations for grabbing the prizes! Would you mind if we bundle your game as a sample code project, in the distribution? Laurent On Dec 14, 2010, at 10:12 AM, Thomas R. Koll wrote:
Hai,
I hope it's okay to show off with our little game on the mailinglist. Over the weekend we participated in a contest at the Super Gamedev Weekend at the metalab[1] in Vienna. Against the hard competition of games developed in Objectiv-C (for the iPad), pygame, HTML, Flash and even C++ (the only team who couldn't finish) our game in MacRuby did beat them all. Well, not in voting category "Fun" (who needs that in a game?), but in "Theme" (it was Black&White) and it took the win in the final round of voting on "overall impression".
We used MacRuby and OpenGL, we didn't manage to draw any fonts, the fullscreen mode is not reliable and the Release build seems to work on if one has macruby installed. But all in all we are happy with the weekend's work :) I hope you like it and if you find a way to put some fun into it, go ahead.
https://github.com/Metalab/The-Flying-Camera
ciao, tom
[1] http://metalab.at a hackerspace, visit us if you are ever in tow. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Am 15.12.2010 um 02:03 schrieb Laurent Sansonetti:
(I noticed that the Xcode project has a reference to a README file which doesn't exist in the github repository. You may want to fix that.)
Right, renamed it for github.
Congratulations for grabbing the prizes!
Would you mind if we bundle your game as a sample code project, in the distribution?
That would be great but let me add a more human readable score counter and some "fun" first. In January, maybe? -- Thomas R. "TomK32" Koll just a geek trying to change the world http://ananasblau.com || http://photostre.am || http://photolog.at
FYI I'm getting a few error messages: unknown: warning: already initialized constant MIN_SPEED unknown: warning: already initialized constant MAX_SPEED unknown: warning: already initialized constant MAX_TURN unknown: warning: already initialized constant SPEED_FACTOR There was a problem while in fullscreen mode ! 2010-12-16 01:57:01.590 The Flying Camera[36622:a0f] /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/GameWindowController.rb:30:in `keyDown:': wrong number of arguments (1 for 0) (ArgumentError) from /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/GameView.rb:50:in `keyDown:' from /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/rb_main.rb:24:in `<main>' There was a problem while in fullscreen mode ! 2010-12-16 01:57:11.787 The Flying Camera[36622:a0f] /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/GameWindowController.rb:30:in `keyDown:': wrong number of arguments (1 for 0) (ArgumentError) from /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/GameView.rb:50:in `keyDown:' from /Users/mattetti/Code/builds/Debug/The Flying Camera.app/Contents/Resources/rb_main.rb:24:in `<main>' - Matt On Wed, Dec 15, 2010 at 10:54 PM, Laurent Sansonetti <lsansonetti@apple.com>wrote:
On Dec 15, 2010, at 1:44 AM, Thomas R. Koll wrote:
That would be great but let me add a more human readable score counter and some "fun" first. In January, maybe?
Perfect, feel free to ping me when you have a version that we can bundle :)
Laurent
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Am 16.12.2010 um 01:58 schrieb Matt Aimonetti:
FYI I'm getting a few error messages:
unknown: warning: already initialized constant MIN_SPEED unknown: warning: already initialized constant MAX_SPEED unknown: warning: already initialized constant MAX_TURN unknown: warning: already initialized constant SPEED_FACTOR
That's because I have to require some files more than once as e.g. the Visibility class doesn't seem to be loaded early enough in the rb_main. Thus I have to load it from both, e.g. Enemy and then rb_main loads it again causing this error. What didn't help was putting lib and game_items in the $LOAD_PATH $LOAD_PATH << File.join(dir_path, 'lib') # doesn't work How's everyone else solving this? Requiring every file manually in rb_main? At the end I solved my problem with "unless const_defined?('MIN_SPEED')" but I'm not sure if I'm happy with this. I think I saw a require_once popping up in ruby 1.9.2, or am I wrong? ciao, tom PS: New version of the game coming Sunday. With 100% more fun :|
I ended up solving this problem in my MacRuby app by writing a little class to load dependencies - it keeps track of the full file paths of every dependency in a class variable and makes sure to only load a file once even if you request it again. Let me know if you would like me to post some sample code... -Gabriel On Fri, Dec 17, 2010 at 2:09 AM, Thomas R. Koll <info@ananasblau.com> wrote:
Am 16.12.2010 um 01:58 schrieb Matt Aimonetti:
FYI I'm getting a few error messages:
unknown: warning: already initialized constant MIN_SPEED unknown: warning: already initialized constant MAX_SPEED unknown: warning: already initialized constant MAX_TURN unknown: warning: already initialized constant SPEED_FACTOR
That's because I have to require some files more than once as e.g. the Visibility class doesn't seem to be loaded early enough in the rb_main. Thus I have to load it from both, e.g. Enemy and then rb_main loads it again causing this error.
What didn't help was putting lib and game_items in the $LOAD_PATH $LOAD_PATH << File.join(dir_path, 'lib') # doesn't work
How's everyone else solving this? Requiring every file manually in rb_main?
At the end I solved my problem with "unless const_defined?('MIN_SPEED')" but I'm not sure if I'm happy with this.
I think I saw a require_once popping up in ruby 1.9.2, or am I wrong?
ciao, tom
PS: New version of the game coming Sunday. With 100% more fun :|
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (4)
-
Gabriel Gilder
-
Laurent Sansonetti
-
Matt Aimonetti
-
Thomas R. Koll