Reputation: 991
I am totally new to web development and I am trying to create a network game.I already implemented most of the game logics in C++ and I wanted to utilize this. It includes most of the logic but does not have graphic features. I believe that client would handle this.
Suppose I am running a game logic on 127.0.0.1:8000
(with C++ language).
Then how could I display graphic features such as sprite using a browser? Is it possible to execute client code when you access using browser?
This is my plan:
Client Side:Representing graphical feature(Gui...) from the information that is sent from the server.
Server side: Handle all game logic
Please correct me if it does not make sense at all.
Upvotes: 0
Views: 48
Reputation: 789
I would look into using HTML canvas alongside WebSockets
It's worth noting that these are relatively new features and so aren't compatible with older browsers.
Upvotes: 1