Jump to content

  • Log In with Google      Sign In   
  • Create Account


yoni0505

Member Since 09 Dec 2010
Offline Last Active Nov 16 2013 10:14 AM

Posts I've Made

In Topic: C++ - Is Goto a Good Practice?

14 November 2012 - 01:28 PM

Basically there's no reason to use "goto" unless your code's workflow is incorrect.

In Topic: SDL vs. SFML

17 April 2011 - 12:38 PM

I know that SFML is much faster then SDL because it's hardware accelerated.
Here is a post about how faster it is in SFML's forum, proving it using some test:

http://www.sfml-dev.org/forum/viewtopic.php?t=43


It shows how significant is the hardware acceleration, it can be over 9000% faster for specific things.

In Topic: Need some consultation

17 April 2011 - 04:03 AM

is MS3D a good format to use? It seems to support bone animation.
There is any other formats like MS3D that I should consider using?

In Topic: Skipping functions?

14 December 2010 - 03:12 AM

Quote:
Original post by Asem
Also take a look at those supposed unrelated functions again.


Quote:
Original post by Asem
Actually I compiled your code and had no problems with it working. It's a message using your block images. I think the re-build thing is what needs to happen.

Since it seems you tried that and it didn't work, start another project and copy paste the files over and re-setup the libs.

also you need the SDLmain.lib file too.

Also your character won't move without the added lines in bold:

//set the player's position
void movePlayer(int destX, int destY) {
player.x = destX;
player.y = destY;
player.dest.x = destX*32;
player.dest.y = destY*32;

}


Thank you guys, I didn't notice it!

[Edited by - yoni0505 on December 14, 2010 9:12:54 AM]

In Topic: Skipping functions?

13 December 2010 - 06:26 PM

I tried to change the "checkInput" function's call location and it works outside the "while(SDL_PollEvent(&event))" loop, at the "while(running)" loop it works!

What can cause such a thing?! Thing is really weird!

PARTNERS