Coder Social home page Coder Social logo

libpen's People

Contributors

derrick56007 avatar ppvk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libpen's Issues

remove forced styling

Right now users are forced to have the canvas at the top left and have to wait for font.load to change the styling.

tile placing features

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.

flush() performance

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! ๐Ÿ‘

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.