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

Pages: 1 2 3 [4] 5
46
Window / Re: setFramerateLimit doesn't work
« on: February 09, 2014, 07:11:03 pm »
you need to use
game.display();

47
General / Re: slow reaction to mouse event
« on: February 05, 2014, 07:20:10 pm »
You should not use sf::Mouse::getPosition() at events. Watch the tutorial.

48
SFML projects / Re: C++ and Game Development Articles
« on: January 23, 2014, 02:30:41 pm »
Very good article! keep it up.

49
General / Re: Enable user to open file
« on: January 22, 2014, 01:06:18 am »
I normally use "dirent.h" to access a directory and get the files. This is part of the standard POXIS, but in Windows, some compilers do not include (such as Microsoft Visual C++), but you can get the header and add it.

The downside is that it is made to C. In C++ I think you would have to use Boost in place, but I never used it.

50
General / Re: Low FPS with ~1000 objects
« on: January 21, 2014, 07:23:08 pm »
The program can go slow because you're setting the radio, the position and color of each of the objects, each frame

51
SFML projects / Re: Faster
« on: December 03, 2013, 04:44:16 am »
(sorry for the bad english - Google Translate)

I did not play the game yet. I can not run (I have Windows XP) and I can not compile (I have VS2008). But i was looking at the code a bit and has an error:
while (Window.pollEvent(Event)) //proccess the events
{
        if (Event.type == sf::Event::Closed) //if the close button is hit
                Window.close(); //close the window
}

ScreenManager::GetInstance().Update(Window, Event);
When run
ScreenManager::GetInstance().Update(Window, Event);
The last event processed in the frame is passed as a parameter, when in reality can occur several events that maybe be needed.

52
General discussions / Re: Favorite IDE
« on: November 13, 2013, 04:55:41 pm »
I currently use Visual Studio Express, but by the university. When I get to choose my own IDE someday, probably look for one cross-platform, such as Code::Block.

53
Graphics / Re: Round View
« on: October 31, 2013, 10:39:13 pm »
if you're rendering the minimap to a render texture you can also use a vertexarray, to create a circle with vertices and texture coordinates.

55
Graphics / Re: I have a question regarding the best way to draw shapes
« on: August 18, 2013, 07:52:13 pm »
Here I give you the version I made a few days ago. Includes Windows executable and the project from Visual C + + 2008.

Look at him and use it as you want, it's all yours.

http://www.mediafire.com/download/yy1kgbyd3mrikpx/GameLife.zip

56
Graphics / Re: I have a question regarding the best way to draw shapes
« on: August 17, 2013, 11:46:50 pm »
(google translate) A few days ago I made a clone of Conway's Game of Life. Use one vertex per cell (one pixel) I draw on a rendertexture. Then draw a sprite with that texture rescaled in the window.

57
General / Re: SFML2.1 No Window.PollEvent
« on: August 13, 2013, 12:14:49 am »
you're using SFML 1.6, because the function names like Clear or Display in SFML 2.0 and later are in lowercase

58
General / Re: Game window not working
« on: August 08, 2013, 06:29:52 pm »
(google translate)

the code
GameWindow.clear();
GameWindow.draw(Circle);
GameWindow.display();
is inside the "if" (which really should be "while").
if(GameWindow.pollEvent(GameEvent))

the code would have to be inside the loop
while(GameWindow.isOpen())

59
SFML projects / Re: My proyect: ImageRunner
« on: August 04, 2013, 01:37:23 am »
i was messing with this for atleast an hour. good job

Thank you very much!


i was messing with this for atleast an hour. good job

Where did you find the download link, I did not find it in that website.

http://blogimagerunner.blogspot.com.ar/p/descargar.html

"Ultima versiĆ³n del juego:"  --->  "Last game version:"

60
SFML projects / Re: My proyect: ImageRunner
« on: July 30, 2013, 12:26:37 am »
New version: ImageRunner 0.0.5 BETA

(Google - Translate) In this new version I made one change, though important: game text are not included in the executable, but it will be read from a text file. With this modification, you can have the game in another language easily, whether I do the translation or make it any other.

On my own I did the English version of the file, but if you have any suggestions feel free to tell me. And if you create another version in another language, I would like to send me the file, and I add it to the download page (with proper attribution, of course)

http://blogimagerunner.blogspot.com.ar/p/descargar.html

Pages: 1 2 3 [4] 5