简体   繁体   中英

Client - Server Web application

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM