Not logged inGosu Forums
Forum Gosu Homepage Help Search Register Login
Up Topic Gosu / Gosu Showcase / Alpha Channel (LD#18) v1.4.0
- - By Spooner Date 2010-08-23 10:14 Edited 2011-12-15 14:05
Alpha Channel is my first Ludum Dare; particular thanks to jlnr for persuading me to actually enter the competition! I had a great deal of fun and it was a really good development style to get into for someone who labours over the details and usually has projects die due to feature bloat!

"It is hell being a pixel. Why can't they all just get along?"

I used Ruby 1.9.2 with Gosu/Chingu (And Chipmunk in the post-LD versions).

* Website
* Downloads
Parent - - By Spooner Date 2010-08-30 14:55
After the competition, I've hooked the game up to Chipmunk (much improved over Chingu Ruby-based physics) and hit it with the bloom-stick :)
Parent - - By RavensKrag Date 2010-09-19 00:32
It's a little late, but how did you achieve this lighting effect? It looks really cool.
Parent - By Spooner Date 2010-09-19 01:15
It is actually just a semi-transparent circle that fades out towards the edge that I draw over the actual blocks using :additive mode. Bit of a cheat, but quite effective (and, after all, nearly all graphical effects are cheats of one sort or another).

I draw the light circle image itself pixel-by-pixel with Texplay, which made it easier to modify as I was trying to get the shading exactly right, rather than drawing it in an external package.

http://github.com/Spooner/spooner_ld_18/blob/master/lib/spooner_ld_18/pixel.rb

#make_glow draws to the @@glow image (only one image in white for all pixels, drawn in the colour of the pixel)
Parent - - By Jwosty Date 2011-10-29 03:53
Extremely addicting. I played it for about 30 minutes as soon as I downloaded it!
Parent - - By Spooner Date 2011-10-29 10:37
Thanks! It it gets a bit repetitive in the end, but it certainly grabs you for a while. Shame is that it is has original game-play, so it is hard to get people to grok it right away - glad it "clicked" for you, anyway!
Parent - - By Jwosty Date 2011-10-29 13:46
Eh, I like the originality of it. Maybe that's why it's so fun; no on has used the idea before!
Also, I'm not sure if this is a feature or a bug, but when you exit out of the help menu, it doesn't draw the player and red pixels spawn and move to the center.
Parent - - By Spooner Date 2011-10-29 13:49
Sounds very definitely like a bug. I will look at it, but I can't promise to re-release it properly any time soon (because I can't test on Linux or build the Mac app since my linux VM died). I'll try to update it at Github though.
Parent - - By Jwosty Date 2011-11-01 22:39
Yeah, I'm on a Mac just so you know
Parent - - By Spooner Date 2011-11-23 18:28 Edited 2011-11-24 14:03
Sorry, took me a while to get around to this. I don't have access to a Mac, so I haven't updated that version (there is a rake task, release_osx, that does that nicely, but it demands you have the RubyGosu App.app in a rather specific place so it is kind of messy; run it directly from github?).

== v1.2.2 (2011-11-23)
  - Updated Windows executable to use Ruby 1.9.3 (should start up a bit faster)
  - Fixed: Game breaks when paused (pressed 'P') or in help (pressed 'F1') (Thanks Jwosty)
Parent - - By Dahrkael Date 2011-11-23 19:16
just played a bit with this new version, cooler graphics since the last version i played.
as a side note, when i closed it clicking the X the process kept running on the background, ocra bug?
Parent - By Spooner Date 2011-11-23 19:21
It shouldn't be doing that (it doesn't happen for me with this version or earlier ones as far as I remember). Ocra should do some cleanup after the game quits, but it should only take a few milliseconds before it closes down properly. I'm on win7x64 without UAC - perhaps some issue with not being able to delete the temp files properly (clutching at straws!)?

And thanks for taking a look :)
Parent - - By jlnr (dev) Date 2011-11-24 14:27
This happens when the wrong version of OpenAL.dll is being loaded. Are you on Windows 7? Spooner, have you updated the bundled .dll during the last three revisions or so?
Parent - By Spooner Date 2011-11-24 20:08
Updated the bundled dll? I haven't done anything other than installing new versions of Gosu with 'bundle update'.

I am on win7x64 and I do have my own openal.dll installed in system somewhere which I think it why Ocra doesn't find the correct one in Gosu.
Parent - - By Jwosty Date 2011-11-24 05:21 Edited 2011-11-24 05:37
I'll upload a Mac app for ya :)
-----
Haven't been able to try this for a bit; Ruby 1.9.3 installation doesn't like me and your game doesn't work with anything else. But now I finally got 1.9.3 installing correctly. Now to see if it works... xP

EDIT: Yeah, I can't get it to work at all now... :/
This is what it says when I try to run it from source (plus a nasty warning saying that libyaml isn't installed):
/Users/*****/.rvm/gems/ruby-1.9.3-head/gems/chipmunk-5.3.4.5/lib/chipmunk.rb:6: Use RbConfig instead of obsolete and deprecated Config.
/Users/*****/Downloads/alpha_channel_v1_2_2_SOURCE/lib/alpha_channel/game.rb:29:in
<top (required)>': uninitialized constant EXTRACT_PATH (NameError)
  from alpha_channel.rb:1:in require_relative'
  from alpha_channel.rb:1:in
<main>'
And this is what it says from the Mac app executable, after replacing all the old Alpha Channel files with the new ones:
/Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/Main.rb:2:in require_relative': no such file to load -- /Users/******/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rb (LoadError)
  from /Users/******/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/Main.rb:2:in
<top (required)>'
  from <internal:lib/rubygems/custom_require>:29:in require'
  from <internal:lib/rubygems/custom_require>:29:in
require'
  from /Users/******/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/gosu/run.rb:11:in <main>'
Not sure what any of this means.
Parent - - By Spooner Date 2011-11-24 14:09
Sorry about the 1.9.2 error - that was sloppy of me. Does work now with 1.9.2 and 1.9.3.

Regarding the app, I do various magic things with the files in 'rake release_osx', so you should download jlnr's base wrapper and put it in the folder that rake command asks for (it will fail if the file isn't there and thus you'll see where it should be ;) ). Thanks for building that for me!
Parent - - By Jwosty Date 2011-11-24 16:51
That's no big deal xP

Hmm... I just followed your instructions, but for some reason it still won't work for me. This is what it says after I build it:
Redirecting output to '/Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/alpha_channel.log'
<internal:gem_prelude>:182:in
path_to_full_rubygems_library': rubygems.rb (LoadError)
  from <internal:gem_prelude>:162:in load_full_rubygems_library'
  from <internal:gem_prelude>:217:in
try_activate'
  from <internal:lib/rubygems/custom_require>:32:in rescue in require'
  from <internal:lib/rubygems/custom_require>:29:in
require'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/lib/chingu.rb:28:in <top (required)>'
  from <internal:lib/rubygems/custom_require>:29:in
require'
  from <internal:lib/rubygems/custom_require>:29:in require'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel/game.rb:3:in
<top (required)>'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel.rb:1:in require_relative'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel.rb:1:in
<top (required)>'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rb:98:in require_relative'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rb:98:in
<top (required)>'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/Main.rb:2:in require_relative'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/Main.rb:2:in
<top (required)>'
  from <internal:lib/rubygems/custom_require>:29:in require'
  from <internal:lib/rubygems/custom_require>:29:in
require'
  from /Users/*****/gosu_wrappers/alpha_channel_v1_2_3_OSX_10_6/Alpha_channel.app/Contents/Resources/gosu/run.rb:11:in <main>'

Not sure who's end it is... Do you want me to upload the app for you to look at?
Parent - - By Spooner Date 2011-11-24 16:59
I don't think it would help me to see the built app. Seems to be failing in the attempt to require timeout, which is a standard library thing (**/lib/chingu.rb:28); some oddity of Ruby on OS X is stopping that working. Previously, I build the app until it worked for jlnr (he would tell me what went wrong with the built app until it worked, but that meant I could just use rake to make a package I knew worked). Perhaps jlnr can shed some light on the problem here?
Parent - By Jwosty Date 2011-11-24 22:19
Hmm... Yeah, I really don't know anything about how to fix things like this, to be honest. I would help you more if I could ;)

Also, I can't test it for a while today because I'm on a friend's Windows computer. I will get back to helping you as soon as I'm finished. :P
Parent - By Jwosty Date 2011-11-24 05:41
Oh also, after I rename Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rbw to .../alpha_channel.rb, it spits out:
Redirecting output to '/Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/alpha_channel.log'
/Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel/game.rb:1:in
<top (required)>': uninitialized constant Object::RbConfig (NameError)
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel.rb:1:in require_relative'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/lib/alpha_channel.rb:1:in
<top (required)>'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rb:98:in require_relative'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/alpha_channel/bin/alpha_channel.rb:98:in
<top (required)>'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/Main.rb:2:in require_relative'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/Main.rb:2:in
<top (required)>'
  from <internal:lib/rubygems/custom_require>:29:in require'
  from <internal:lib/rubygems/custom_require>:29:in
require'
  from /Users/*****/Desktop/alpha_channel_v1_2_1_OSX_10_6 2/Alpha_channel.app/Contents/Resources/gosu/run.rb:11:in <main>'
Parent - By Spooner Date 2011-11-24 14:06 Edited 2011-11-24 20:31
== 1.2.3 (2011-11-24)
  - Fixed for ruby 1.9.2 (Thanks Jwosty)
  - Added message when building OSX if required file is missing
- - By Spooner Date 2011-07-16 20:21 Edited 2011-07-17 19:29
Had a momentary leap to fix a couple of things that I'd left for...erm...a year and take release v1.2
Parent - By Spooner Date 2011-07-17 19:27 Edited 2011-11-23 18:27
And a hotfix, v1.2.1
- By Spooner Date 2011-11-24 20:31 Edited 2011-12-15 15:51
v1.2.4

Downloads

== 1.2.4 (2011-11-24)
  - Hopefully fixed issue with openal in ocra package (I think - thanks jlnr and dahrkael)

== 1.2.3 (2011-11-24)
  - Fixed for ruby 1.9.2
  - Added message when building OSX if required file is missing.

== v1.2.2 (2011-11-23)
  - Updated Windows executable to use Ruby 1.9.3 (should start up faster)
  - Fixed: Game breaks when paused (pressed 'P') or in help (pressed 'F1') (Thanks Jwosty)
- - By Spooner Date 2011-12-15 14:00 Edited 2011-12-15 15:52
v1.0.0

Downloads

* All releases now include source code.
* Added Windows INSTALLER.
* Added some music from KanonBaum (Brian Peppers).
* Fixed occasional graphical glitches.
* OSX package now runs on OS X 10.5 or later.
* Source (Linux) version now works with Ruby 1.9.3
Parent - - By Maverick Date 2011-12-15 15:37
Hoops? Wrong post eh? :P
Parent - - By Spooner Date 2011-12-15 15:38
Yeah, sorry, I was releasing them both at the same time. Link fixed :)
Parent - - By Maverick Date 2011-12-15 15:49
But THIS post is AlphaChannel. The link was correct originally. Just not the content. :D
Parent - By Spooner Date 2011-12-15 15:52
Releasing is stressful. You confused me :D Right now or you can all live with it :D
- - By Spooner Date 2011-12-22 23:20
Alpha Channel v1.4.0

Sorry about the last release, a dumb error made it not work on native Linux (but it did work on my Linux VM, so I didn't notice the problem).

download

* Settings and high scores now stored in ~/.alpha_channel_spooner
* Added Easy/Normal/Hard difficulties (‘Normal’ is a bit easier than previous; ‘Hard’ is a bit harder)
* Top 20 global scores are recorded and can be viewed ingame and online: http://www.gamercv.com/gamers/9-spooner
* Top 20 of your own scores, ignoring global scores, are stored locally (so you don’t have to compete with people with reflexes).
* Pixel glow shrinks as a pixel is wounded, as well as some other minor tweaks.
* Made the game entirely independent of frames per second, so it can be played on older hardware.
* Fixed: Mistyped filename meant previous version wouldn’t work on Linux :(
* Fixed: Physics messy when window is dragged while playing.
Parent - - By Jwosty Date 2011-12-23 15:49
It didn't show any highscores ingame for me (on any mode). But other than that, I think its still really fun! xD
Parent - - By Spooner Date 2011-12-23 22:56
Hmm, you didn't see any by pressing S on the main menu either? jlnr complained about that, but I thought it was just a poor internet connection; maybe I need to increase the timeout period for less lucky people :D
Parent - By Jwosty Date 2012-01-05 00:38
That doesn't work either... :/
------
Sorry for the long response; my internet got knocked out for a couple days by the wind.
Up Topic Gosu / Gosu Showcase / Alpha Channel (LD#18) v1.4.0

Powered by mwForum 2.29.1 © 1999-2013 Markus Wichitill