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.


Topics - kiswa

Pages: [1]
1
SFML projects / Simple SFML Game Starter Setup
« on: May 08, 2015, 02:09:29 pm »
I made this for myself to have a basic starting point for making games with SFML, and I thought someone else might find it useful/interesting.

https://github.com/kiswa/SFML_Starter

It uses CMake (though only tested on Linux, so please let me know if it needs changes for other platforms) and builds an executable named "sfml" which demonstrates the state transitions and debug output.

It includes an asset manager which currently only manages sf::Texture and sf::Font objects, but more will be added once I make a game with it. Have a look through the code and let me know if there's anything that could make it more useful (or if it has any bugs).

EDIT: I should mention that it assumes C++11 and SFML 2.2.

2
General / [SOLVED] Segmentation Fault When Exiting Pause State
« on: May 05, 2015, 02:12:48 am »
I have been working on a basic starter setup for an SFML game. When I run it, it works fine, states transition as expected, updates are are at 30 per second, FPS is unbound. Going well.

However, when I transition from the game state to the pause state and back, I get a segfault when closing the window. This does not happen when exiting directly from the game (initial) state, or from the pause state. It only happens when exiting after returning from the pause state to the game state.

I have no idea what I'm missing. Take a look at the code and let me know if you have any ideas. https://github.com/kiswa/SFML_Starter/

Pages: [1]
anything