Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess it will fly in your face once you'll try to create multiplayer games and serve several games at the same time?

What do you gain from making a game a singleton?



Well in that case, I'd have a Server class and a Client class. One handles logic and the other handles display and input.

And actually, for my last little prototype (now that I think about it), I didn't make it a singleton, I just had a single public instance of it.

Question retracted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: