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

Pages: [1]
1
General / Re: explosions with smfl
« on: November 09, 2014, 03:16:06 pm »
Hi there,
I downloaded the nightly build from the following
url: http://www.nightlybuilds.ch/project/show/2/Thor/
commit: 949f79ebcf10e85656d9c9d5e81faf7a6cf68dfd

I put the content into: C:\Thor

Then I opened the properties of my project and added the thor libraries:
http://www.directupload.net/file/d/3801/aj329oge_jpg.htm
http://www.directupload.net/file/d/3801/dgx9vsmm_jpg.htm
http://www.directupload.net/file/d/3801/hv4twi8i_jpg.htm      

Did I miss something?

_schuki

2
General / Re: explosions with smfl
« on: November 09, 2014, 03:00:50 pm »
I tried to include Thor. Visual Studio now knows the thor library, but if I excecute my game it tells me that it isn't able to find the thor-d.dll. How could I fix this?

If I copy the file into my project folder I get an "Entry Point Not Found" exception :(

3
General / Re: explosions with smfl
« on: November 08, 2014, 05:27:49 pm »
Ok thanks a lot. Ill try the library, because it supports the particle system I need =)
To include the library into my projekt I have to do the same as I did with SFML, right?

_schuki

4
General / Re: explosions with smfl
« on: November 07, 2014, 02:16:48 am »
Thanks for the advice using thor. I did the cmake, but I can't compile the files. I get the following error: msb6006 code 3.
Could anyone pls compile and upload this library?

I use SFML 2.1 and VS2013, Windows 8.1

Thanks a lot
_schuki

5
General / explosions with smfl
« on: November 06, 2014, 10:38:16 am »
Hi there,
I'm new to sfml and created a little break out game. It's very basic and therefor I want to pimp it with some explosions. I thought about creating a little particle system to simulate a explosion of the breaks. Then I found the spar engine, which seems to be a very powerful engine for particle purposes....

Please could you tell me, what the common way in sfml to create explosions is? Sprites or bigger systems like spark?

thx a lot.
rgds
_schuki

6
General / Re: moving a ball over the window
« on: October 16, 2014, 07:42:47 pm »
haha  ;D because they don't know how to solve the problem. I'll review my code and I'll have a look at the link you posted.

7
General / Re: moving a ball over the window
« on: October 16, 2014, 06:37:44 pm »
it's not a thread like sf::Thread, it's just the while(window.isOpen()) loop =)

8
General / moving a ball over the window
« on: October 16, 2014, 05:35:52 pm »
Hi there,
for my studies I have to program a simple game. There for I chose "Break out" and sfml. I created a class ball and reset the position:

void Ball::ResetPosition(int windowWidth, int windowHeight)
{
        _moveToX = -1.f;
        _moveToY = -1.f;
        float distanceToGround = 10.f;
        float ballPositionX = windowWidth / 2.f;
        float ballPositionY = windowHeight - _paddleSize.y - distanceToGround - (_ball.getSize().y) - 4;
        _ball.setPosition(ballPositionX, ballPositionY);
}

For collision testing I don't want to move the ball randomly on the screen. There for I created to variables, the first one is for the movement direction to the x-axis and the second one for the y-axis.

My game thread calls from now on the function MoveBall:
void Ball::MoveBall()
{
        _ball.move(_moveToX, _moveToX);
}

The idea was the following... If I set the direction to -1,-1 the ball would move towards to the left corner of my window. If I change the direction to 1 and -1 it would move to the right side of the window.

My problem now is, that the ball doesn't behave like expected:

vectordirection
1, 1down
-1, -1left
-1, 1left
1, -1down


Is there something I wrong with my code? Or has the ball possibly a own coord system?

rgds
_schuki

Pages: [1]