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 - Xylankant

Pages: [1] 2 3
1
Window / Bottleneck sf::Event
« on: July 09, 2008, 12:41:18 am »
Hi sitizen,

I'd put event-handling into a while()-construction like this:

Code: [Select]
sf::Event Event;
while(App.GetEvent(Event)){
     if((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape))
          App.Close();
}


Try this, I think it should work...

2
Window / [Solved] Multiple windows and pthreads
« on: July 09, 2008, 12:15:16 am »
hi tmac,
have you tried using RenderWindow nad to protect OpenGL Settings for your windows by calling once sf::RenderWindow::PreserveOpenGLStats(true); ?

3
Graphics / Save a sf::Sprite
« on: July 08, 2008, 10:13:23 pm »
mhhh, I'm not sure, however, I don't think there's such a function in SFML (it's just not what SFML is designed for in the first place ;) )

But I think that scaling the Image (respectively the Sprite) in SFML will give you the same result as scaling it with any other program...what counts, is the size of the original image, e.g. if you want to resize from 10*10 pixels to 800*600 pixels, the result *will* indeed be rather ugly ;)

edit: trying what I just wrote, I must say that it in fact does, what I predicted...the quality of my scaled images is just as if I had scaled them with paint or whatever...
However, I came across another problem: with my "workaround", you can only scale images up to you actual screen-resolution, because for any reasons, RenderWindows won't display if they oversize your screen...

4
Graphics / Save a sf::Sprite
« on: July 08, 2008, 08:10:15 pm »
Well, you could work around that by generating a Window for the scaled Image (same size etc.) and then taking a screenshot, which you can easily safe on your harddisk.

5
Graphics / [Solved] SetCenter
« on: July 06, 2008, 07:49:54 pm »
I don't know 1.2, but reading the documentation of 1.3, I'm not able to find GetWidth() or GetHeight() for either Sprites or Images. (What is what I expected, since I've never before used GetWidth()/Height() ...)

Did you try GetSize().x and GetSize().y? These Methods should give you the Height and Width!

6
Graphics / [Solved] SetCenter
« on: July 06, 2008, 07:38:43 pm »
mhhh, are you sure there is a GetWidth()-Method for Sprites?
I can't find one in the Doc, try using GetSize().x and GetSize().y instead...

7
Graphics / [Solved] SetCenter
« on: July 06, 2008, 07:23:57 pm »
well, you actually set your center at a top-left pixel of your sprite, so I'd say rotating around it's left corner is actually correct...

8
Graphics / SVN-Version: RenderWindow kills x11
« on: July 03, 2008, 09:02:10 pm »
Well, maybe one way of debuging is using 1.2 (if it's working as you said) doing the same things where 1.3 crashes X11 and then report here what exact methods etc. you used.
Maybe Laurent has changed some lines of code of these methods, which is now crashing your system (even though it's quite unlikely...)

9
SFML projects / Tanktris - a Tetris clone [RC2 & Sourcecode released]
« on: July 03, 2008, 07:48:34 pm »
lolz..."cheated" out by developer ;)

But yes, I imagined this new feature to make making points faster *g*

...Operation gelungen, Patient tot ;) (sry, don't know an english expression for that)

10
SFML wiki / German wiki?
« on: July 03, 2008, 06:47:09 pm »
Well, there's no mean to "split" community, however, there definitely *are* people who don't speak french or english.

And it's no problem to switch between french/english(/german) wiki and forum if one wishes ;)

Sometimes, it's just easier to use one's mother tongue.

11
SFML wiki / German wiki?
« on: July 03, 2008, 05:23:12 pm »
Hi folks (and namely Laurent ;) )

I was just wondering, how about a german wiki?

I noticed french (obviously ^^) and english wiki/homepage, however, I'm sure there are some german users of SFML, or even some who don't use SFML (what a shame) because they aren't that good, neither in english nor in french.

I'd even aggree to providing translations, as I speak both, english and french.

12
SFML projects / Tanktris - a Tetris clone [RC2 & Sourcecode released]
« on: July 03, 2008, 04:47:54 pm »
Quote from: "Tank"
Anybody broke my highscore of 126000, yet? ;)
Just got 134800 :D

13
SFML projects / Tanktris - a Tetris clone [RC2 & Sourcecode released]
« on: July 03, 2008, 02:10:58 pm »
Quote from: "Tank"
What do you mean by a tutorial? Describing how to write a Tetris-like game with SFML?
exactly :)
Quote from: "Tank"
But I got a better idea. ;) I have started to develop a library called "SFMLGame", which will provide useful mechanisms for programming games, like I used them in my Tetris game.
But that sound's great, as well :D

However, it'd be kind of "teaching", having a tutorial that explains the steps in building a Tetris-like game "from bottom to top" using SFML rather than providing another library on top of SFML (which is a good idea nevertheless, in my oppinion!)

Well, back2topic ^^

I just realized the speed in TankTris is increasing by time rather than by cleared lines. Interesting new concept for a Tetris, indeed!

14
Graphics / SVN-Version: RenderWindow kills x11
« on: July 03, 2008, 01:53:52 pm »
mhhh, that's quite strange.

So you're saying as long as you don't call your window's Display()-Method, the window won't crash your X11?
I'm not quite sure, but as SFML is using openGL for displaying content within the window, maybe sth is wrong with your system's configuration of openGL (or your graphics card is not capable of openGL, what I doubt, though...)

15
SFML projects / Tanktris - a Tetris clone [RC2 & Sourcecode released]
« on: July 03, 2008, 12:01:31 pm »
Impressive! I never knew 20hrs of work could result in something like this :)
And it works very well, too ^^

Great for v1.0, congratz and thank you!

Only thing I'd like to be added is a Volume-Control and a key that drops a block immediately *gg*

P.S.: How about a tutorial? ;)

Pages: [1] 2 3