SFML community forums

Help => General => Topic started by: maidis on December 22, 2017, 01:36:42 pm

Title: Implementation of Input Observer in C#
Post by: maidis on December 22, 2017, 01:36:42 pm
Hello there,

I'm trying to port a network pong game [1] written in C++ to C# which I know at a very basic level. I've ported about half of the game [2]. Only input manager and network support left. I've some ideas about what I need to do about network support, and probably there will be no problems to do so. But I'm lost on input manager. I checked on observer pattern [3] and some other projects [4] but so far it has not helped much.

Any idea on where I made mistakes or any source that I could use would be very much appreciated.

[1] https://github.com/aweAshikaga/AshiNetworkPong
[2] https://paste.ubuntu.com/26232721/
[3] http://www.dofactory.com/net/observer-design-pattern
[4] https://github.com/leftidev/csharp-Spin-Pong/blob/708f33c9f84731da2b9f2896e71ff1609c08fdbe/src/GameStates/MenuState.cs