在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jakesgordon/javascript-racer开源软件地址:https://github.com/jakesgordon/javascript-racer开源编程语言:HTML 75.9%开源软件介绍:Javascript Pseudo 3D RacerAn Outrun-style pseudo-3d racing game in HTML5 and Javascript
Incrementally built up in 4 parts:
With detailed descriptions of how each part works:
A note on performanceThe performance of this game is very machine/browser dependent. It works quite well in modern browsers, especially those with GPU canvas acceleration, but a bad graphics driver can kill it stone dead. So your mileage may vary. There are controls provided to change the rendering resolution and the draw distance to scale to fit your machine. Currently supported browsers include:
The current state of mobile browser performance is pretty dismal. Dont expect this to be playable on any mobile device.
A note on code structureThis project happens to be implemented in javascript (because its easy for prototyping) but is not intended to demonstrate javascript techniques or best practices. In fact, in order to keep it simple to understand it embeds the javascript for each example directly in the HTML page (horror!) and, even worse, uses global variables and functions (OMG!). If I was building a real game I would have much more structure and organization to the code, but since its just a racing game tech demo, I have elected to KISS. FUTUREIt's quite astounding what it takes to actually finish a game, even a simple one. And this is not a project that I plan on polishing into a finished state. It should really be considered just how to get started with a pseudo-3d racing game. If we were to try to turn it into a real game we would have to consider:
Related Links
LicenseMIT license.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论