Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TricksterGuy

Pages: [1] 2 3 ... 5
1
SFML projects / Tilemap Editor (working title)
« on: September 12, 2011, 06:35:48 am »
Haha thanks, but I haven't given up sorry about not keeping you posted.  Other things like school and work take over :/

I'm working on making the program crossplatform at this time; however, running it on linux does have some major issues at this time seems like wxWidgets and SFML don't want to get along...

2
Window / class sf::window has no member named 'Clear'
« on: July 16, 2011, 02:06:04 am »
Code: [Select]
sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window");

needs to be

Code: [Select]
sf::RenderWindow App(sf::VideoMode(640, 480, 32), "SFML Window");

3
Graphics / Drawing Tile Map: 1 Pixel Between Tiles
« on: June 15, 2011, 04:54:39 am »
It may be caused by the smooth filter

Try image.SetSmooth(false)

4
General / Map Viewer
« on: June 12, 2011, 06:30:29 am »
So I am working on a tile map editor (taking a break from it now) here
and I wrote several useful things involving it

one of which is a viewer for my specialized map format.

I just rewrote that program in ruby for rbSFML and rbSFML runs it perfectly!

I am also posting the source code for it which is available here download

You need the latest commit of rbsfml in order to use this.

You can use this code to help out on your game.

5
General / rbSFML
« on: June 05, 2011, 12:34:26 am »
Alright.

Odd that you can't get it working.

Also it seems like rake rdoc generates unreadable documentation or at least the documentation doesn't look great.  I'll be having a look at this

And I just provided an overload for Image#new pass in a width, height, and a color object it will call Create (the one thing that annoyed me when porting my code over)'

6
General / rbSFML
« on: June 04, 2011, 10:45:21 pm »
Alright I am back for the most part.

I have set up a github account username is the same as my username here.

and I come with gifts too

http://trickster.wg2140.com/Games/samegamerbsfml.zip (depends on Narray)

^ ported this code I wrote with Rubygame to rbSfml last night  :D

Also my new laptop is awesome.

7
General / rbSFML
« on: April 07, 2011, 07:49:36 am »
Quote from: "Groogy"
I'm wondering what you think trickster? Should we support that the end user compile rbSFML with static sfml libraries? Like he writes in the console:
Code: [Select]
rake static and it uses the static libraries instead?

I'm just thinking it might be annoying for some people having to juggle around double shared libraries, especially on windows. It probably should even be the default on windows.

It's just a convenience thing and not something important really. They can live with it. So it depends on if you got the time to modify the rakefile to support it. If not, then we don't do it unless someone complains.

Since the libraries should be encapsulated in a gem normally, it shouldn't be a bother.


I'll wait until someome complains.

I also have little time for the next couple of weeks due to graduate school...

However the good news is I have purchased a new laptop with a better graphics card than my old laptop and its a 64 bit system. So I'll play around it with it with this when I am able.

8
General / rbSFML
« on: February 13, 2011, 06:52:17 pm »
If you get it from svn (the whole sfml2 stuff) it should compile out of the box.  The default directories it searches assumes the same directory structure as whats in the repository.

You can switch them by defining some environment variables in which case it will override the default.

SFML_INCLUDE to tell it where the SFML header files are
SFML_LIB to tell it where the SFML library files are

and currently rake install does put the things in the wrong directory however on linux it installs in the correct directory at least from what I have seen :|
This should be an easy fix however.

Haha cool, but ruby still crashes on exit on my computer :P

9
General / rbSFML
« on: February 13, 2011, 06:08:43 am »
I'll have it committed in a second. Checking to make sure I didn't break anything. EDIT It is now committed.

I am testing the changes on linux now and I don't get the crash on exit thing.  Interesting...

Also this laptop has an Intel



So as I said I was testing this under windows with the window-demo.rb test.
It works fine however upon closing ruby crashes.
Interesting enough if I comment all of the code to initialize the window library and require it. It will still crash. That is regardless of the code for window.so requiring it makes ruby crash upon closing.

10
General / rbSFML
« on: February 11, 2011, 01:53:51 pm »
So I have already changed the structure in my working version.

Basically I just created a shared folder with the things from the system folder that was used in the other folders. And edited all of the other files main.cpp as necessary.

As of now I am working to fix a bug in the window-demo that causes ruby to crash when you exit.  If you want to help find it I could commit what I have right now.

I'm shooting for sometime next week but I have exams keeping me busy unfortunately

11
General / rbSFML
« on: February 06, 2011, 10:02:35 am »
Yep that would fix that

sorry about that, etam!

Also I have made progress getting this to compile/link under windows I am able to at least open the window-demo program.

There are a few changes that will have to be made to the directory structure for this to all work however.  Consider this payback for messing with the rakefile I guess :P

12
General / rbSFML
« on: January 22, 2011, 09:59:06 pm »
It was down at the time I made the post I couldn't access the server or something, but it is back up now

You did not mess anything up.

Also starting next week hopefully I will start working again.  I've been busy for the past couple of weeks.

Also to get this to compile/link successfully on windows I'd have to change the structure of the project a bit. I was not able to solve the linking issues and mingw doesn't have lazy link functionality (from what I've searched on the internet).

13
General / rbSFML
« on: January 18, 2011, 04:09:12 pm »
Its fine I would have done the same thing, but it looks like its down.  I can't access it.

14
General / rbSFML
« on: December 05, 2010, 05:27:20 am »
I was wondering how one would wrap a C++ library for use with ruby.  I did not know how to do that 2 years ago so I just stuck with CSFML.

When I tested the methods I wrapped they worked.

Also can't you just use
Array#push Array#pop if you want to have a stack
Array#shift Array#push if you want to have a queue (though inefficient since shift moves all of the elements down)

I believe this kind of stuff is straying away from the focus of this, and should be left to another library whose focus is dedicated to datastructures and making them efficient as possible for ruby. As they say don't reinvent the wheel :P

Now that is not to say you should not add anything of this sort.  There are some things that could be added to make peoples lives a little easier.  

For example you can add a datastructure that holds drawables and each drawable has a z value.  You overload RenderWindow#draw to also be able to draw this and it will draw them all in order of z value

15
General / rbSFML
« on: December 04, 2010, 10:10:12 pm »
Ok I have created an account there.

Groogy if you are interested you can look at the rdocs for my version of the bindings I did a while back

http://trickster.wg2140.com/doc/index.html

Pages: [1] 2 3 ... 5
anything