Posted 30 July 2016 - 02:23 PM
First off, I'd like to thank the judges for the kind words. It was very nice to be reading positive feedback on a program that was deeply flawed.
The things that were wrong with the program:
1. Save format. The judges didn't mention this, but I believe that if something written in texty would be opened in any other text editor (CC or other) you will just see a serialized table. Texty saves by getting every character in an x,y position, reformatting that to xxxyyy, then saving that as one character.
Example, "hi" would be stored as:
{
[ "001001" ] = "h"
[ "002001" ] = "i"
}
Very efficient =P, didn't make an export function of any sort…
2. Speed. When I was testing the program I was using "drawAll()" for every character. replacing that with "drawPart(xcurrent-1,ycurrent,xcurrent,ycurrent)" makes the program approximately 500x faster (kinda). That's what I get for not checking over my program. Still managed to get one 3 in speed…
3. The biggest flaw… getLine() which, since I didn't know the difference between "not text[a(x,y)] == nil" and "text[a(x,y)] ~= nil" (and still kinda don't), always returned 1. That led to everytime you pressed backspace when it should go to the last character of the above line, it instead put itself at x=1.
I have fixed nr 2. and nr 3. and it's actually functional now and can be viewed at https://github.com/S...ohn/TextyReboot but it's nothing I ask of you.
All in all it was fun to be in a competition and fun to get feedback, and I learned things! Which summed up, I think is what CCJam strived to be. :)/>
PS: 1lann and apemanzinna mentioned that the arrow keys didn't really work well. I haven't started to implement them yet… thanks for the idea! Knew something was missing! :P/>
The things that were wrong with the program:
1. Save format. The judges didn't mention this, but I believe that if something written in texty would be opened in any other text editor (CC or other) you will just see a serialized table. Texty saves by getting every character in an x,y position, reformatting that to xxxyyy, then saving that as one character.
Example, "hi" would be stored as:
{
[ "001001" ] = "h"
[ "002001" ] = "i"
}
Very efficient =P, didn't make an export function of any sort…
2. Speed. When I was testing the program I was using "drawAll()" for every character. replacing that with "drawPart(xcurrent-1,ycurrent,xcurrent,ycurrent)" makes the program approximately 500x faster (kinda). That's what I get for not checking over my program. Still managed to get one 3 in speed…
3. The biggest flaw… getLine() which, since I didn't know the difference between "not text[a(x,y)] == nil" and "text[a(x,y)] ~= nil" (and still kinda don't), always returned 1. That led to everytime you pressed backspace when it should go to the last character of the above line, it instead put itself at x=1.
I have fixed nr 2. and nr 3. and it's actually functional now and can be viewed at https://github.com/S...ohn/TextyReboot but it's nothing I ask of you.
All in all it was fun to be in a competition and fun to get feedback, and I learned things! Which summed up, I think is what CCJam strived to be. :)/>
PS: 1lann and apemanzinna mentioned that the arrow keys didn't really work well. I haven't started to implement them yet… thanks for the idea! Knew something was missing! :P/>