Code Monkey home page Code Monkey logo

Comments (4)

cronvel avatar cronvel commented on August 20, 2024

What you want to achieve exactly?

There is an undocumented feature called ScreenBuffer in Terminal-kit.
Basically, it's like sprite for the terminal.

There is a ScreenBuffer demo shipped with the lib: demo/spaceship.js.
It's well optimized, as you can see: it only writes the part that changed.

Tell me if this is what you need.

I will document ScreenBuffer when I will be 100% sure of its API, its name, and so on.

from terminal-kit.

ashnur avatar ashnur commented on August 20, 2024

I am mostly just trying out things. My current focus is on trying to paint as much frames as possible, I've seen things like movie players with ascii symbols. I don't actually want that, I think at first I will do some kind of a silly game.
This ScreenBuffer sounds exactly what I need, I will try it out and report back. Thanks. (The changing api is not a problem because I am just experimenting right now :) )

from terminal-kit.

cronvel avatar cronvel commented on August 20, 2024

If you want to do a little game, have a look at LeetEd (leet editor), it is a little tool (still in alpha) that can produce ASCII sprite with colors and all. It can save them and terminal-kit can load them. I don't have time to improve LeetEd right now, but it should be good enough for a little game!

You should definitively have a look at the code of the spaceship demo, it was done using ScreenBuffer and LeetEd ;)

from terminal-kit.

cronvel avatar cronvel commented on August 20, 2024

I have updated the README.md of LeetEd, the keys and their actions are now listed ;)

from terminal-kit.

Related Issues (20)

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.