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

Pages: [1]
1
SFML projects / Open Source top-down game - Warlock's Gauntlet
« on: September 18, 2010, 08:16:07 pm »
I played it through.  The game was really great... reminded me of diablo, but faster with even more hordes of enemies.  My only real complaint was the lack of spell slots (I was using the arrows for movement + qwe for slots control mode).  Remembering the complex keyboard shortcuts for un-slotted spells was tough.  I would also add some visual indicator on the character when low on health, reminding you to heal.  Right now it's easy to forget checking and die when careless.

2
SFML projects / simple SFML + Box2D test project
« on: September 13, 2010, 03:23:58 am »
True enough.  I'll look into github.  Git seems to be growing in popularity, though I'm not too familiar with it.  Can't be too far off from svn, I guess.

3
SFML projects / simple SFML + Box2D test project
« on: September 13, 2010, 02:15:45 am »
I use subversion locally (with the awesome tortoise svn client), but I like to just zip up the project dir for the examples since it's easy and doesn't require users to have the right version control client just to get the files.

4
SFML projects / simple SFML + Box2D test project
« on: September 12, 2010, 08:42:50 pm »
I updated the first set of code to wake up the blocks on gravity changes: http://box2dsfmlfun.blogspot.com/2010/09/update-to-test-1.html

I also created a new SFML+Box2D test project where I draw an arch using the polar equation of an ellipse: http://box2dsfmlfun.blogspot.com/2010/09/box2d-with-sfml-test-2-arch.html

5
SFML projects / simple SFML + Box2D test project
« on: September 08, 2010, 09:23:48 pm »
Nice tip there... I'll add it in :)  I need to read all the way through the docs to fine these neat tidbits.

6
SFML projects / simple SFML + Box2D test project
« on: September 08, 2010, 05:31:56 pm »
Yeah, I need to figure out how to un-freeze objects that come to rest so gravity will apply... I suppose I could give them a small force to "nudge" them into falling, but there should be a better way.

7
SFML projects / simple SFML + Box2D test project
« on: September 08, 2010, 07:17:42 am »
I made a simple test project with SFML and Box2D.  My entire goal was "make a box and bonk into some stuff," so I guess I've succeeded.  Here is the (windows exe) download to play with, and source:

windows binary/exe:  https://sites.google.com/site/box2dsfmlfiles/box2dsfmlfiles/sfml_test.zip

source code:  https://sites.google.com/site/box2dsfmlfiles/box2dsfmlfiles/sfml_testsource.zip

I made a stupid blog about it, thinking that I'll make some more examples to share in the future:
http://box2dsfmlfun.blogspot.com/

This is a really basic project, but hopefully I can build on it and learn some more (physics sims are fun :).

8
General / VS C++ Express : SFML Window tutorial
« on: August 31, 2010, 04:35:54 am »
Since you're using the dynamic libraries, don't forget to define SFML_DYNAMIC in the preprocessor properties:

Quote
Important: if you link against the dynamic libraries, you have to define the SFML_DYNAMIC  macro in your project's settings. If you don't, you'll get linker errors when compiling your application.
as seen in http://www.sfml-dev.org/tutorials/1.6/start-vc.php

Though, since you could successfully compile the program, it's probably just a problem with where you placed the dll files.  If I have a project named sfml_test, I would paste the dll files into:

C:\Documents and Settings\blah\My Documents\Visual Studio 2008\Projects\sfml_test\sfml_test

since this directory is automatically searched when running the program through visual studio.

9
General / process keeps running after Close() is called [solved]
« on: August 31, 2010, 04:27:29 am »
If I create a sf::Window object, and then close the window and exit the program, the process/executable still remains in memory for some reason.  I have a basic code example to illustrate my issue:

Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>

int main() {
sf::Window app(sf::VideoMode(800, 600, 32), "SFML Test");

sf::Clock clock;
while (clock.GetElapsedTime() < 5.0f) sf::Sleep(0.5f);

app.Close();

return EXIT_SUCCESS;
}


This will open a blank window then close it five seconds later, but the task manager still shows the process as running indefinitely.   I did notice the following line in the documentation:

Quote
If you have played around a bit with SFML windows, you have probably noticed that clicking the close box will generate a Closed event, but won't destroy the window. This is to allow users to add custom code before doing it (asking for save, etc.), or cancel it. To actually close a window, you must either destroy the sf::Window instance or call its Close() function.


But I do call the Close function (the window appears to 'close'), and the process continues regardless.  This is with Visual C++ Express 2008 on Windows XP with the linker's entry point property set to 'main' (is this part a problem?).  I'm linking in the dynamic libraries, with the SFML_DYNAMIC preprocessor definition set.  I would appreciate any suggestions.

Edit: Solved the problem.  It really was an issue with declaring the 'main' entry point myself.  Linking in sfml_main.lib instead fixes the issue.  Sorry for the confusion.

Pages: [1]