Search found 13 matches

by 20047m
Thu May 15, 2014 5:49 pm
Forum: Support and Development
Topic: How do you reset back to the default font?
Replies: 5
Views: 4216

Re: How do you reset back to the default font?

You shouldn't be calling that with any kind of frequency. Also, is it really that hard to store a variable? I doubt it. It's really not being called that often, it's not frequent at all. And, no, it's obviously not hard to store a variable. I need to make this as clean and efficient as possible tho...
by 20047m
Mon May 12, 2014 3:06 pm
Forum: Support and Development
Topic: How do you reset back to the default font?
Replies: 5
Views: 4216

Re: How do you reset back to the default font?

Thanks guys! I really didn't want to have to store it in a variable because storing variables would clutter the API that I'm making. I ended up using "love.graphics.setFont(love.graphics.newFont(12))" for now. It's not enclosed in a tight loop, and what I'm making is supposed to be very li...
by 20047m
Mon May 12, 2014 3:37 am
Forum: Support and Development
Topic: How do you reset back to the default font?
Replies: 5
Views: 4216

How do you reset back to the default font?

I have loaded up a font, and set it as the default with love.graphics.setFont. Now, I need to reset the font back to what the default is when you load up the game. How would I go about doing this? I thought love.graphics.reset would accomplish this, but it doesn't.
by 20047m
Wed May 07, 2014 3:41 pm
Forum: Games and Creations
Topic: Concerned Joe
Replies: 137
Views: 79393

Re: Concerned Joe

Although Monocle was restarting the whole game when you changed something. And mine updates files but doesn't preserve upvalues and such the way Lurker does. Are you talking about my debugging library, Monocle? https://github.com/kjarvi/monocle If so, and there is anything you would like changed, p...
by 20047m
Tue Feb 11, 2014 2:30 am
Forum: Libraries and Tools
Topic: PlayBoy - An open-source IRC API!
Replies: 8
Views: 7046

Re: PlayBoy - An open-source IRC API!

Do what you want with it, and I'll do what I want with it. Have it your way, but it's not Burger King. Okay, so how do we send stuff on it? Or can't you? I'm (kind of) new to LuaSocket and you didn't provide much of an example in your repo :P Also, I am making a terminal style game. Considering you...
by 20047m
Wed Feb 05, 2014 4:06 am
Forum: Support and Development
Topic: Problem printing table with metatable
Replies: 6
Views: 4690

Re: Problem printing table with metatable

Woops, I didn't think about that! Thanks!
by 20047m
Wed Feb 05, 2014 2:38 am
Forum: Support and Development
Topic: Problem printing table with metatable
Replies: 6
Views: 4690

Re: Problem printing table with metatable

Also, for the record, a lot of lua's string methods can be performed on strings directly using the colon syntax: ] Yes, I knew that! Thanks :) I know it is redundant, but why include only the JavaScript string functions, why not include them all? Also, I have just tried making a ".val()" ...
by 20047m
Wed Feb 05, 2014 12:44 am
Forum: Support and Development
Topic: Problem printing table with metatable
Replies: 6
Views: 4690

Problem printing table with metatable

So, I created a string library called Twine: https://github.com/kurtjarvi/twine Everything seems to work fine, but when I do this: a = twine('Hello, World!') function love.draw() love.graphics.print(a,0,0) end 'a' is a table. Now, I know that you can't print tables in lua, but I have a '__tostring' ...
by 20047m
Sat Feb 01, 2014 4:20 am
Forum: General
Topic: How do people create their .loves and .exes? (Discussion)
Replies: 13
Views: 7617

How do people create their .loves and .exes? (Discussion)

First off, this is meant to be for discussion. I already know how to do these things, I am just curious how others go about this. Anyways, yeah, if you haven't guessed already, I was just kind of wondering what methods people go about to creating their .love files and their game .exe's! I only know ...
by 20047m
Sun Jan 26, 2014 10:05 pm
Forum: Libraries and Tools
Topic: Monocle - Love2D debugging for 0.9.0
Replies: 3
Views: 4854

Re: Monocle - Love2D debugging for 0.9.0

Monocle.watch("FPS", function() math.floor(1/love.timer.getDelta()) end) (And then remove the loadstring in monocle.lua.) Done! Thank you, Robin! That has been implemented in this newest version, which you can grab from the top of the page or at https://github.com/kurtjarvi/monocle/releas...