Mar
05
2013
4

Rubinius support for rbSFML

After I finished the chapter deadline for the publisher I had some free time in the weekend. I spent some of it in making rbSFML compatible with the high performing Ruby implementation Rubinius. Sweet! Sure it required me to do a pull request to the Rubinius repository and do some fixes for them but it is now fully supported.

So if you want to do parallel tasks with rbSFML that should now be fully supported as well since Rubinius doesn’t have a GIL so using native threads there is actually worth it.

I’ve encountered a minor problem with it on Arch Linux. Somehow Rubinius gets it to crash inside Nvidia’s library libGL when the opengl context is being destroyed and I don’t understand why. But well I’ll track it down and fix it as soon as I get time. But it is still usable since the crash happens only when you are exiting the application and as it is destroying the last window created.

Nov
15
2012
0

Making games in Ruby so far

Well I’ve been playing around in rbSFML now for a while and it’s been very satisfying to see how fast and easily your game evolves in Ruby. I recommend this language and I will try to give some tutorials for it.

Of course there are still some problems, like that every math operation is a heavy method call. Ruby truly embed the proverb for optimization:

The fastest code is the one never run.

(more…)

Apr
21
2012
0

rbSFML Logo

Well thought it would be nice with a logo that could be used in your projects. I had one made for me some long time ago but never put it up on a good place to be available. So here it is

 

Remember I am very much interested in anything you guys create so let me know. I already know of an old SFML user who will compete in Ludum Dare with the bindings.

Written by Groogy in: Projects,rbSFML | Tags: , , , ,
Apr
16
2012
0

SFML 2.0-RC and rbSFML-RC

Since SFML 2.0 is getting a release candidate status now I will have to put out a release candidate for rbSFML as well. A tag has been put up on Groogy/rbSFML for the release candidate 1.0-rc.

Go ahead and use it and have fun coding in ruby! I am most interested in anything you have to show and especially if you find bugs or flaws in the design.

I was hoping to create documentation and RSpec specifications for the bindings but I don’t have the time currently. If anyone is interested to help me out and do some kind of tutorial or something like that please let me know.

Written by Groogy in: rbSFML | Tags: , , , , , ,
Jul
19
2010
0

New Ascension classes – Symbol and BaseController

Well I’ve added two new classes to the project and I believe that there won’t be any more changed to them as they have all functionality I want with them.

First are the Symbol class which is an idea I got from Ruby symbols. They are supposed to be used as optimized identification strings where comparison is as fast as it can be. The second class is the BaseController which implements the base functionality of a controller. It implements the ability to ask which will let an outside non-friend class query the controller after a specific value . I thought of it like a system based on “Answering a question” which is sent to the controller.

All of this can be found in the Github repository.

(more…)

Jun
24
2010
0

Madness Script comeback!

Oh, I got to dust it off. I’m thinking about to use it instead of Ruby for Ascension. I am having a problem with getting Ruby embedded in the application for windows. Whenever I tried any output to a file or stdout, it crashed.

So I’ll play around with Madness Script instead for Ruby. I won’t change or improve Madness Script cause it crashed in a dead end. But the latest version should work well enough.

Jun
22
2010
0

C++ for Ascension

Aight so I meet some resistance in Ruby. Not the speed of ruby itself but the fact that I can’t get this damn blur effect to work in real-time rendering. So the main shift was from the start to switch from Rubygame to SFML for ruby, but I noticed that the ruby version for SFML was only 1.2 and the latest version of SFML is 1.6 and there’s a huge difference between them so I had to switch everything to C++ but I will use Madness Script as the scripting language.

Here I’ll now go trough the entire structure of the project in C++ and also show some homemade diagrams. Why I’m not using proper UML is because I’m lazy.
(more…)

May
19
2010
0

Ascension’s Loading Manager

I did something pretty cool today ^^ Well at least I think it’s pretty cool. Also quite simple. A module in Ruby that’s pretty independent and can be used for most applications. It’s called LoadingManager and it will queue things needed by the application and load them in a separate thread for you without you even having to be aware that it is run in another thread.

Here comes an example with it using Rubygame surfaces

1
2
3
4
5
6
7
8
9
10
11
require 'rubygame'
require 'loading_manager.rb'
 
LoadingManager.load Rubygame::Surface, "image1.png"
LoadingManager.load Rubygame::Surface, "image2.png"
LoadingManager.load Rubygame::Surface, "image3.png"
 
# Will print something between 0.0 to 1.0 depending on how far the thread has gone
p LoadingManager.progress
# Wait for the loading to finish before exiting the application.
LoadingManager.join

(more…)

Dec
05
2008
0

GWF 1.1.0

There’s some modifications to GWF and one addition. It’s not much but it’s still something and needed. I did not really make the fixes for the Framework. They just rather came to be, as I was working on TacDom I noticed some tiny faults and that it was not doing exactly what I wanted. So I fixed them and continued. Later I remembered that I need to add in the fixes to the core of GWF since even though they are tiny, they can be really irritating.

(more…)

Written by Groogy in: GWF | Tags: , , , , , ,
Nov
18
2008
0

Bug in Form class discovered and fixed(GWF)

Found a bug in the Form class while playing around with Ajax.
The action was set to ‘post’ and a bug occurred here in file lib/support/form.rb:

if action.is_a?(Link) && (method == 'POST' || method == 'get') # This was supposed to be 'post'
  action = action.link
elsif action.is_a?(Link) && (method == 'GET' || method == 'get')
  self << HiddenField.new('view', action.view) unless action.view.blank?
  self << HiddenField.new('action', action.action) unless action.action.blank?
  action.params.each do |key, value|
    self << HiddenField.new(key, value)
  end
  action = action.page
end

Anyway it has been fixed now and an update has been placed in the download page.

Written by Groogy in: Bugs,GWF | Tags: , , , ,

Powered by WordPress. Theme: TheBuckmaker