loopier / animatron-godot3

Yet another implementation of Animatron, but in Godot
GNU General Public License v3.0
17 stars 1 forks source link

Letters #20

Open loopier opened 2 years ago

loopier commented 2 years ago

I'm working on some frames of animated letters. I'm expecting to do the whole ascii code. It's hand-drawn, nothing fancy, we could think of a command to write with these, maybe /write word. What would be the best way to implement it? This would not be used to type with fonts, but with sprite sheets or sequences of images. Each sequence is just one letter, so it gives a shaky effect. Things that come to mind:

Any thoughts?

totalgee commented 2 years ago

Not the same thing, but sort of related: I also wanted something with letters/text, in this case probably drawing from fonts, for various reasons. One of them would be to draw the code (commands) being executed. Not the same as your idea, but just a reminder we may have various text needs.

totalgee commented 2 years ago

For yours, I think maybe we should have a special kind of asset that is the whole alphabet (possibly with animated letters, as you suggest). Then code that knows how to use them, deal with simple layout and spaces, etc.

loopier commented 2 years ago

Not the same thing, but sort of related: I also wanted something with letters/text, in this case probably drawing from fonts, for various reasons. One of them would be to draw the code (commands) being executed. Not the same as your idea, but just a reminder we may have various text needs.

Yes, we need that, too. We listed it in #6. We can kind of do that already with /say. Not the best tool for it, but the base is there.

For yours, I think maybe we should have a special kind of asset that is the whole alphabet (possibly with animated letters, as you suggest). Then code that knows how to use them, deal with simple layout and spaces, etc.

I'd prefer a special command over a special asset. If all assets are of just one type, we can use any commands with them, which opens up the creative possibilities. Maybe the command should have a list of assets and work on those? Maybe a def-ish map to map ascii chars to actors?

def /alphabet/a actor-or-asset
    /alphabet/b actor-or-asset
   ...
    /alphabet/A actor-or-asset
   ...
    /alphabet/( actor-or-asset // or /alphabet/openningparenthesis