在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ondras/rot.js开源软件地址(OpenSource Url):https://github.com/ondras/rot.js开源编程语言(OpenSource Language):JavaScript 38.8%开源软件介绍(OpenSource Introduction):rot.jsROguelike Toolkit in JavaScript. For more info, see https://ondras.github.io/rot.js. LibraryThere are multiple ways of including rot.js in your project. DownloadingYou can get rot.js using either of these methods:
UsageRot.js is written in TypeScript, but its code is available in multiple formats. You can pick the one that best suits your development needs.
Node.jsMost parts of rot.js are usable from within node.js (server-side JavaScript). The let display = new ROT.Display({width:40, height:9, layout:"term"});
display.draw(5, 4, "@");
display.draw(15, 4, "%", "#0f0"); // foreground color
display.draw(25, 4, "#", "#f00", "#009"); // and background color UsageThe pre-bundled rot.js package can be loaded as a CommonJS module. There is an example that shows basic usage. MiscRogueBasin page (with links to some rot.js-based games): http://roguebasin.com/index.php/Rot.js |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论