Skip to content

vue3+egg.js+ts练手项目,使用socket.io实现实时游戏

Notifications You must be signed in to change notification settings

sschen-cn/vue3-eggjs-ts-realtime-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue3 + eggjs 构建实时小游戏

主要是用于学习eggjs和vue3的练手项目,同时也使用了Typescript帮助规范开发。

预览

客户端:http://game.artifact4u.com

服务端:http://ws.game.artifact4u.com

previw

主要依赖

  • socket.io

    socket.io不同于websocket,它有自己的协议,可以使用websocket模式,可以理解为websocket的超集。服务端和客户端必须同时使用它的服务。本项目中使用了服务端 egg-socket.io和客户端 @types/socket.io-client

  • TypeScript

    本项目中,因为vue3官方也是用ts重构过的,ts用起来很顺利,eggjs目前体验不是很好。

About

vue3+egg.js+ts练手项目,使用socket.io实现实时游戏

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published