Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jerrychan7/webmc
A web version of Minecraft built using js and WebGL without third-party libraries.
https://github.com/jerrychan7/webmc
3d-game browser browser-minecraft game javascript minecraft-web voxel voxel-game voxel-terrain web web-component web-minecraft webgl
Last synced: 13 days ago
JSON representation
A web version of Minecraft built using js and WebGL without third-party libraries.
- Host: GitHub
- URL: https://github.com/jerrychan7/webmc
- Owner: jerrychan7
- Created: 2019-06-22T07:08:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-25T06:14:17.000Z (6 months ago)
- Last Synced: 2024-10-14T02:03:22.332Z (about 1 month ago)
- Topics: 3d-game, browser, browser-minecraft, game, javascript, minecraft-web, voxel, voxel-game, voxel-terrain, web, web-component, web-minecraft, webgl
- Language: JavaScript
- Homepage: https://jerrychan7.github.io/WebMC/
- Size: 966 KB
- Stars: 71
- Watchers: 1
- Forks: 40
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebMC
这是一个使用JavaScript编写的基于WebGL的网页版minecraft。
> Any application that can be written in JavaScript, will eventually be written in JavaScript.
--Jeff Atwood (co founder of Stack OverFlow)
>> 任何能够用 JavaScript 实现的应用,最终都必将用 JavaScript 实现。
--Jeff Atwood(Stack OverFlow 的联合创始人)这就是网上著名的“[Atwood定律](https://blog.codinghorror.com/the-principle-of-least-power/)”,看到这个定律后,一直跃跃欲试,想用js实现下最喜欢的mc。从0开始制作,不使用任何第三方库。虽然很多地方会尝试重复造轮子,但我喜欢这种从零开始随心所欲创造的感觉。~~(虽然现在啥都没有实现)~~
虽然知道这句话是从 _[the Principle of Least Power](https://www.w3.org/DesignIssues/Principles.html)_ 和[图灵完备](https://en.wikipedia.org/wiki/Turing_completeness)角度出发的 ~~(大概)~~,但咱还是要学PHPer来一句:JavaScript是世界上最好的语言。
# How to Run
需要运行在服务器上,因为有纹理图片的跨域问题。
若是有Node.js环境,那可以执行`node server.js`指令来运行一个简单的服务器,然后通过`http://localhost:3000/`进行访问。
若是你正在使用的IDE有自带的静态服务器功能,那可以通过IDE在浏览器中打开`/index.html`文件。