Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Showcase / Captain Cat - Captain Ruby Skin Pack
- - By ml Date 2013-08-06 07:02 Edited 2013-08-06 07:37
Hi everyone, this is a nice skin pack for the classic adventure game, Captain Ruby, by jlnr.

I added some sounds and some new images, and adjusted the map a little bit.

I also added the Wall Jump feature from the epic game, Captain Ruby with Wall Jump by Maverick.

CptnCat requires both Gosu and Chingu.

I think it's turning out pretty good.

Below are installation instructions, if you want to check it out.

Once you have installed gosu and chingu...

/$ git clone https://github.com/mattlemmon/CptnCat.git
/$ cd CptnCat
/CptnCat/$ ruby cptncat.rb

I am trying to figure out how to load separate levels, with separate maps, using Chingu's gamestates. I have tried a bunch of different things, but none of them have worked. Any suggestions in this regard would be useful. I've been trying in two different ways: one using Chingu's viewport, and one using the text-based-map-style. Neither one has been successful so far, although I am making progress with the viewport approach. My next plan is going to be to try to hijack some of the code from ippa's game, Gnorf, and copy its general setup and use of viewports. I would prefer to use the good ol' text-style maps, but I'm running into problems where the map seems to only want to work from a Window, and not from a GameState.

Best wishes to all. Gosu is awesome.
Parent - - By jlnr (dev) Date 2013-09-21 06:56
I have no idea about Chingu. But this looks so much better than my crappy CptnRuby graphics :)
Parent - - By ml Date 2013-09-24 06:11
lol - I'll take that as a compliment. My personal opinion is that Captain Ruby is awesome. Captain Cat is a fan work. I think that within another six months or so I will be at the level where I will be able to either translate Captain Ruby to Chingu, or create a simple gamestate manager in Gosu. My ultimate programming goal is to make a version of Captain Ruby with various levels. Once I reach that point, I will feel that I have "arrived"....... at first base.
Parent - - By jlnr (dev) Date 2013-09-24 08:24
I think you can use Chingu's states without converting all the logic to Chingu, but that's just something I read in the chat…years ago…?

If you use Chingu for everything, you will probably have to turn the separate arrays of objects into one big 'objects' array-and that's almost the second base already ;)
Parent - - By ml Date 2013-09-27 07:56
Ya, I'll get there eventually. I've been able to translate some things over to Chingu without difficulty, but the Map object in Captain Ruby has defied my efforts.... I am planning to read up on Marshall when I get some extra time.

With regard to artwork, one thing I learned from Captain Ruby, which helps a lot - is that it is useful to start out with a large version of the artwork and then shrink it down. I was looking at Captain Ruby and trying to figure out how to make a small pixel-based character, and after a while I came to the conclusion that he was created large, and then shrunk down.
Parent - - By shawn42 Date 2013-09-27 12:37
Have you looked at doing a port to Gamebox? A nice compare and contrast would probably be useful.  ;)

To get you started:
gamebox library
OMG Aliens (space invaders clone)
Killbox (larger game under development with tmx map loading)
Parent - - By ml Date 2013-09-28 16:04 Edited 2013-10-03 04:20
Hi @Shawn, thanks for the suggestion. I took a quick look right now, and I will take a more detailed look when I have a little more time. Without having pried too deeply, here is what I came up with on a first quick test run:

I cloned omg_aliens to my hard drive.

I ran bundle install from the /omg_aliens folder.

I cd'd into the /src folder, and executed "ruby app.rb".

I got a bunch of errors.

I cloned killbox to my hard drive. When I cd'd into the /killbox folder, I got a warning message from rvm about the .rvmrc file.

I ran bundle install from the /killbox folder.

I got a message telling me that killbox was trying to access my private key (whatever that is). I cancelled out of bundle install.

I hashed out (commented out) the second half of line 9 of the gemfile, and tried bundle install again. I got an error:

An error occurred while installing nokogiri (1.5.9), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.5.9' succeeds before bundling.

I tried gem install nokogiri -v '1.5.9' and got the following error:

ERROR:  Error installing nokogiri:
  ERROR: Failed to build gem native extension.

        /.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

I have only looked over the documentation a little bit so far. I browsed the instructions in TUTORIAL.md in /omg_aliens, but didn't see anything relating to the errors I was getting. Here is the first part of the omg_aliens error log (when I execute "ruby src/app.rb"):

.rvm/gems/ruby-1.9.3-p362@sampleGemset/gems/chipmunk-5.3.4.5/lib/chipmunk.rb:6: Use RbConfig instead of obsolete and deprecated Config.
.rvm/gems/ruby-1.9.3-p362@sampleGemset/gems/gamebox-0.4.1/lib/gamebox/core/actor_factory.rb:44:in rescue in block in build':  (RuntimeError)
          score not found:
          #<RuntimeError: Could not open TTF file .rvm/gems/ruby-1.9.3-p362@sampleGemset/gems/gamebox-0.4.1/lib/gamebox/data/fontsAsimov.ttf>
          .rvm/gems/ruby-1.9.3-p362@sampleGemset/gems/gamebox-0.4.1/lib/gamebox/core/font_style.rb:16:in
text_width'

It looks like Gamebox might be a little bit over my head, but I'm certainly interested to give it a try. I will dig around a little more when I have some extra time. My system is a little bit finicky - it's Ubuntu 12.04, installed on a 7-year-old MacBookPro. I have never successfully loaded any of the games by either Spooner or lol_o2, all of which I am dying to try out.
Parent - - By shawn42 Date 2013-09-30 01:28
@ml,
Can you make sure you're using bundler when running the game?
You can either run them via rake, or by hand with bundle exec ruby src/app.rb

Feel free to toss me an email or github issue if you get stuck: shawn42 @ gmail

Killbox is setup to install the latest gamebox gem from master on github. I'm guessing it was the github pull to get the latest gamebox.

Hope this helps,
Shawn
Parent - By ml Date 2013-10-03 03:15
Thanks Shawn, I will give it another try. I appreciate the explanation. I'm still learning the ropes, slowly but surely.
Matt
Up Topic Gosu / Gosu Showcase / Captain Cat - Captain Ruby Skin Pack

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill