Search found 13 matches

by Zeggy
Mon Dec 01, 2008 12:40 am
Forum: Libraries and Tools
Topic: Creating a Text Editor
Replies: 15
Views: 17421

Re: Creating a Text Editor

Hehe, yeah. I do intend to create a game eventually. Like I said, this is just a way for me to learn how to use lua and love, and so far I've learnt so much! :D I'm not really a programmer (ie. I know syntax/structures and stuff, but I never programmed anything before), so pretty much everything is ...
by Zeggy
Sun Nov 30, 2008 9:58 pm
Forum: Libraries and Tools
Topic: Creating a Text Editor
Replies: 15
Views: 17421

Re: Creating a Text Editor

Thanks for the help! I used sub like this: text = string.sub(text, 0, (string.len(text)-1)) I thought sub(text, 0, -1) might work as a shorter way, but that didn't seem to do anything. :P btw, as for the switch, I think it's a lot eaiser to read than ifs and elseifs. I've changed my code to have the...
by Zeggy
Sun Nov 30, 2008 4:42 pm
Forum: Libraries and Tools
Topic: Creating a Text Editor
Replies: 15
Views: 17421

Creating a Text Editor

I'm creating a simple text editor with Love, called Create Love... I don't expect it to get anywhere, but I think it will be very useful for me to learn. This is my first time using lua/love, so please point out mistakes or better ways to do things :) Here is what I have so far: Removed to shorten p...