ppvk / libpen Goto Github PK
View Code? Open in Web Editor NEWan ascii console display for dart-written roguelikes. Inspired heavily by libtcod and rot.js
License: MIT License
an ascii console display for dart-written roguelikes. Inspired heavily by libtcod and rot.js
License: MIT License
Right now users are forced to have the canvas at the top left and have to wait for font.load to change the styling.
It would be cool if this library implemented different way to place tiles in a 2d array. The console class could either implement a method that renders a 2d array at a certain point on the console
void put2DArrayAt(2DArray array, int offsetX, int offsetY) {...}
or render only a portion of the 2d array.
I already have a pretty solid implementation of the camera class and you can see how it is used here. A way I see this being useful is if you have different 2d arrays of things such as the map, player stats, or a menu to choose items. This way you can overlap the arrays without losing data.
It seems like flush() is taking a really long time to draw (maybe it's the font drawing?). I can barely draw a 100x100 map under 250 ms. Perhaps we can look into optimizations for the drawing and test to see which part is the bottleneck.
*edit: I forgot to mention, nice library and thanks for making it! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.