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

Pages: [1]
1
General / Re: [linux] Dedicated server / run in Console
« on: September 23, 2012, 03:37:51 pm »
Thanks.

But I struggle finding a clean way to use the MVC pattern in this case. The problem is that my entities use different code to draw themself. So I'll need in my View class a special draw function for each entity types.

I don't know much about game design patterns. Do you know a better one for this case?

2
General / [linux] Dedicated server / run in Console
« on: September 23, 2012, 01:33:18 pm »
Hi all, I'm working on a little networked game created in c++ with SFML.
I would like to make a dedicated server that should be able to run in a console (no xserver).

I'm sharing the same classes between my client and server to manage the entities. And those classes have calls to some sfml-graphics functions (to draw my entities, to check for collision, etc...).

When I start a program in a tty I get a segfault from libsfml-window.so.2 even though I'm only linking with "-lsfml-graphics -lsfml-system -lsfml-network".

Is there a workaround to this problem or do I need to make a special version of my classes without any sfml-graphics related code ?

Thanks.

3
DotNet / Event System
« on: July 30, 2011, 03:57:00 pm »
That's what I'm doing.

Thanks for help.

4
DotNet / Event System
« on: July 30, 2011, 12:49:09 pm »
I was wondering, is it possible to manually pool the events as in c++?

The reason I'm asking this is because I'm working on the screen system explained there :

https://github.com/SFML/SFML/wiki/TutorialScreens

In the c++ version, we manually poll the events so a screen will stop responding to events when it doesn't have the focus.

But in c# we are using handler added to the sharded RenderWindow so a screen will continue to respond to events when it doesn't have the focus.

Pages: [1]