Posted 20 November 2015 - 11:49 AM
So! I tried to make some games, (unique) but I decided to start small, with a paint program similar to the one from nitrogenfingers. Then I realized that only writing things to the screen wont make them stay if something else is overwriting them… Genius. I made a try to fix that. first I did a simple one that worked (100 lines no color support) And this here is that; http://pastebin.com/mtdfr836
After trying it out on a simple game (not worth mentioning) It seemed a little restricting without colors though.
So I made a new one, and after 1 hour of bugtesting, it kinda works! Here it is if you want to try it; http://pastebin.com/hVyVanQk
It's still buggy but the concept is the same as in the first version which is 99% bug free =)
If you don't want to look in the code what it means, =P, then: What it does is create a table "t" in which it stores all pixels on the screen in the format xxxyyy (or xxyy old format), and then stores a single character string at that key. The v2 also has two tables like this one, for color and for background color.
What I want to know!: Am I doing it right?
For more details, ask or look at the code =)
Thanks!
After trying it out on a simple game (not worth mentioning) It seemed a little restricting without colors though.
So I made a new one, and after 1 hour of bugtesting, it kinda works! Here it is if you want to try it; http://pastebin.com/hVyVanQk
It's still buggy but the concept is the same as in the first version which is 99% bug free =)
If you don't want to look in the code what it means, =P, then: What it does is create a table "t" in which it stores all pixels on the screen in the format xxxyyy (or xxyy old format), and then stores a single character string at that key. The v2 also has two tables like this one, for color and for background color.
What I want to know!: Am I doing it right?
For more details, ask or look at the code =)
Thanks!