r/ASCII • u/Aware_Yogurtcloset99 • 15h ago
Art I made an ASCII-painted Roguelike where every single ASCII can be individually animated in my own "engine"
galleryHeya,
I just found this community randomly, and figured you might appreciate seeing this. :) Honestly, the stuff I am seeing on this subreddit is absolutely drop dead gorgeous, so this might seem a bit less impressive in comparison haha, but its a system that to my knowledge is very unique and cant be easily replicated by in Unity/Godot as I stitched it together in the last 1,5 years from scratch in WinForms/C# , so I figured you might appreciate seeing and hearing about it :)
If Videogames are your thing, you can wishlist it on Steam and the demo is currently fust the full version: https://store.steampowered.com/app/4761790/Rogue_Elements/
It started the entire project as just basic ascii, the stone floor being a . and ice being a blue * and so on. Eventually I noticed that people really seem to enjoy the basic gameplay loop and they started stumbling over the simplistic graphics more and more, so I sat my ass down to do something about it. I was always a bit of a weirdo when it comes to finding solutions, so instead of just using normal tiles, I started "painting" my graphics with ascii and just randomly threw some ascii together to see how they look. The golem you can see in the gif was one of the first characters I made, just consisting of [] and ==.
As those were a bit static, I started wiggling the ascii individually a bit, and noticed that one simple rotation animation basically works as the idle animation for everything and every future character, no matter how many enemies I would make, which is amazing. The death animation not shown in the gif is every ascii tile falling apart, while the critical hit animation is them exploding across the room ( https://i.postimg.cc/Qx7fVpqv/ezgif-5f4a531d7f614817as.gif ) . It was absolute luck to stumble into this, but this is basically now a system that animates everything in a very vivid way without me ever needing to touch animations again, which wouldnt be possible with standard assets. I love so much how this turned out.
I eventually refined it a bit, adding more ascii for backgrounds, adding different settings of the idle for when enemies saw you but my performance crashed entirely as I was trying to draw every ascii on screen simultaneously trying to draw tens of thousands of ascii simultaneously every draw call, which just is not possible, even with modern computers.
I think it took me like a year of trying to rebuild it from scratch constantly to make it run smoother. It now takes the outlines of the characters from the font and stores them as reusable bitmaps, which I can rotate, resize, move, and colour without redrawing every single ascii, but every time something changes, it rebuilds the bitmap and then draws that as one element. Not rocket science, I know, but getting there from scratch sure was a journey haha.
Recently I added another layer on top, where I was experimenting with making ascii characters move individually, even on the same tile in different directions with different timing, which you can see better in this gif: https://i.postimg.cc/Qtj2JffR/ezgif-80fb72d6ae88c6c5.gif
The ascii now individually moves to the left and right, even on the same tile if something passes it, to make the environment feel a bit more reactive.
So yeah, I hope someone here enjoyed seeing and reading about it. Have a great week everyone!