Giter VIP home page Giter VIP logo

webglwebsocket's Introduction

webGL,websocket,nodeJS做的3D的多人在线游戏

最左侧是聊天系统,进入时默认缩放在左下角,聊天系统支持广播和私聊两种方式,要先输入昵称才能进入聊天室,点击右侧昵称切换到私聊,点击右侧牛头换到广播,支持键盘操作。 server文件夹里面的server.js是静态文件服务器,要注意路径问题,start.js是websocket服务器,注意端口号。常规方式启动就好了,index.html里面的websocket服务器地址修改一下

所有的键盘事件 上键,向前走 w键,向前走 下键,向后走 s键,向后走 左键,向左转圈 a键,向左转圈 右键,向右转圈 d键,向右转圈 空格键,跳跃 y键,装死 q键,攻击 ctrl键,蹲下 r键,换枪 g键,蹲下攻击 f键,蹲下痛苦 h键,蹲下装死 t键,嘲讽 c键,滑动 u键,痛苦 v键,wave摇动 x键,指点 0--9换枪 `键 系统菜单 聊天时 ctrl+enter 发送聊天消息

所有的动作要按住键盘才能正常进行,松开键盘默认取消该动作。

License

使用MIT协议发布。

webglwebsocket's People

Contributors

wangbin17910 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.