Dec 15 2015, 5:13 pm
|
|
Inner closures are a kinda gross form of programming, you should avoid them regardless.
|
In response to Somepotato
|
|
Maybe, though I've honestly never heard much about them in a positive or negative sense. I just know they're extremely useful when there's a recursive step your function, but the entire function can't readily be written recursively.
I could possibly implement it recursively in total, but there would be a much larger memory footprint that makes me hesitant to even consider it. |
http://i.imgur.com/lXcu39i.webm
Webm because too big. Testing out the conversation code I added for cutscenes. Works well, but needs polish. Also, lines are not final, it's just an example of what could be said with it. Thoughts? |
In response to Bravo1
|
|
Dang, that looks really sharp.
|
In response to Bravo1
|
|
You can make it look a little nicer by having it calculate the whole length of a word before you write it, and if it's going to overlap, start it from the next line, rather than doing it whilst writing which makes the text teleport.
|
In response to Rushnut
|
|
Rushnut wrote:
You can make it look a little nicer by having it calculate the whole length of a word before you write it, and if it's going to overlap, start it from the next line, rather than doing it whilst writing which makes the text teleport. Yeah, I've been looking into that. I have a system that'll do it per-paragraph but not per-line, so it shouldn't be too hard to replicate it on a per-line basis. Just have to figure out how many will fit in the line based on the font/font-size. Probably around 45 characters. |
max chars = ((length of character * number of characters) * (length of space * number of characters - 1))/width of box
|
Text wrapping is working properly now, I had that working pretty quick, been spending too much time on this:
Note: I've already got the timing issue fixed, if you notice, the bottom gets wide faster than the top does. They all use the same timing, but due to processes actually taking time from the cpu, it takes a bit longer, so I've accounted for that in the code and it looks perfect now, I just didn't want to record a new gif. I also noticed it's offcenter. That's due to poorly positioned LICEcap window, it's centered in-game. Alls it needs now is a bit of easing and I'll be able to add the mugshot window above it. |
In response to Bravo1
|
|
Can we name our little robot, rover, thingy?
|
In response to Ghost of ET
|
|
Better yet, can we have a forum poll to name him?
I vote ROVR9K |
In response to Rushnut
|
|
^
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
Can we name our little robot, rover, thingy? Like Legend of Zelda style? I don't see why not. "Do you have a title, strange robot?" "CLASSIFICATION: Sexbot9000" |
In response to Bravo1
|
|
Never played legend of zelda U>U. So i have no idea what you mean :]
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
Never played legend of zelda U>U. So i have no idea what you mean :] you get to name link |
In response to Vrocaan
|
|
Who's link?
|
In response to Ghost of ET
|
|
Ghost of ET wrote:
Never played legend of zelda U>U. So i have no idea what you mean :] I don't love you anymore, ET. |
In response to Ghost of ET
|
|
I think that's another name for Zelda from the Legend of Zelda games. He collects rubies, fights Gannondalf, and doesn't afraid of anything.
|
In response to Popisfizzy
|
|
In response to Bl4ck Adam
|
|
I'm pretty sure I know what I'm talking about. You can tell by the title, and having bombed quite a few dodongos in my time.
|
In response to Bl4ck Adam
|
|
So why exactly is it called legend of zelda Dx? Why i could never get into nintendo's games :/.
|