1 karma · joined Sep 2, 2022 (4y ago) · 2 submissions
comment 3y ago · link · parent
1. I created a static List<Action> of "jobs"
2. The Discord user sends a command to render some colored text
3. We create a SadConsole.Console instance; draw the text onto the Console; and push a job to the job list.
4. When the MonoGame instance enters the "Render" call, it runs each job in the job list.
5. The job we pushed then saves the Console to a PNG in a memory stream (file operations were substantially slower in thread for some reason), and then calls Discord API to send the response.
I'm personally proud of this because I used MonoGame in a way that it was not intended for.
The code worked at the time it was written. Unfortunately, it does not work anymore at this time (likely due to some API update).
The code is available here: https://github.com/INeedAUniqueUsername/Colorbot/blob/master...
comment 4y ago · link · parent
- Remote: Yes (Only)
- Willing to relocate: No
- Technologies: C#, MonoGame, Godot, C++, Python, Java, React, JavaScript
- Résumé: https://drive.google.com/file/d/1TOpY1lqmo4-_gctiuCquUkXY-r7...
- Email: achen115 (at] ucr.edu
- Site: https://ineedauniqueuserna.me
- Games: https://ineedauniqueusername.itch.io/
I am a recently-graduated software engineer and independent game developer. I prefer to use C# for most things. I am looking for full-time remote-first work in general software development.