Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Forum
Search
Topic Ruby: what are the possible alpha modes? By adamsanderson Date 2009-10-21 01:22
The other option is :additive, give it a shot.  It basically adds the color channels together, good for special effects.
Topic 2D Camera? By adamsanderson Date 2009-10-20 06:03
I was hoping to make a simple 2D camera so that most of my code could be drawn relatively instead of always having to get an offset x,y, but I think I'm missing something :)

I tried this (really basic, I know, but before I hack around anymore I thought I'd ask):

require 'gl'
class Camera
  include Gl
  attr_accessor :x,:y
 
  def initialize(window, x=0,y=0)
    @window = window
    @x,@y = x,y
  end
 
  def draw
    @window.gl do
      glPushMatrix
      glTranslatef(x,y,0)
      yield
      glPopMatrix
    end
  end
end

Oh and the assumption is that you would then use it as:

@camera.draw do
  #... normal drawing code
end

This ends up not having any effect, any suggestions?

I think it would be pretty nice for a lot of games, a combination camera / clipping would let you do some decent windowing, etc.
Topic Post processing effects for Ruby By adamsanderson Date 2009-09-23 15:17
@deps:  I'm on a macbook pro, on the stock ruby 1.8.7 with a GeForce 8600M GT and I get a similar results.  For what it's worth I needed to install the ruby-opengl gem to get it up and running.
Topic Post processing effects for Ruby By adamsanderson Date 2009-09-22 23:20
Hey thanks for making this, I've really been wanting something along these lines.
Topic L-System fractal tree By adamsanderson Date 2009-09-19 15:48
That's pretty neat.  I should really try texplay out sometime.  Thanks for passing on the links.
Topic L-System fractal tree By adamsanderson Date 2009-09-18 01:15
Looks neat, do you have the source for the L-System code anywhere?
Topic Lexery By adamsanderson Date 2009-09-10 15:22
Thanks, yeah it's my idea.  If you have any suggestions, or ideas for gameplay, let me know.
Topic Lexery By adamsanderson Date 2009-09-09 16:56
Easy enough to fix.  I liked the colon syntax, oh well.  Thanks for taking a look.
Topic Lexery By adamsanderson Date 2009-09-09 05:29
Thanks, I need to get ruby1.9 installed sometime soon.  Perhaps next week, I don't want to muck up my 1.8 install though, I need that for real work ;)
That would probably also explain why the OSX template wasn't working out so well.
  .adam
Topic Lexery By adamsanderson Date 2009-09-08 05:41
Hey I just finished (or at least started to finish) a fairly entertaining little word game called Lexery.

Each round starts with a random five letter word (and some of them are very random).
To make you new word, you can:

* Add a letter
* Remove a letter
* Replace a letter
* Swap two letters

You may never reuse a word, and you are allowed a limited number of
'imaginary' as long as you make them using one of the moves listed above.

That's it.  Try to make as many words as you can from the given word.

The title screen gives the following example:
  grass => glass => lass => last => salt

Anyways, I haven't been able to package this up just yet, but there is a ruby gem and source available so if you want to try it either grab it from github:

  http://github.com/adamsanderson/lexery/tree/master

Or once github has the gem built, you can install it with
 
  gem install adamsanderson-lexery

Let me know what you think,
  .adam
Attachment: lexery.png (115k)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill