Search found 2705 matches

by slime
Tue Feb 22, 2011 2:00 am
Forum: Support and Development
Topic: Type == boolean
Replies: 2
Views: 385

Re: Type == boolean

boolean is (probably) a nil value. string is a table. type(val) returns a string with the type name, therefore you need to compare it to another string:

Code: Select all

if type(foo) == "boolean" then print("bool") elseif type(foo) == "string" then print("str") end
by slime
Mon Feb 21, 2011 2:52 am
Forum: Games and Creations
Topic: Kurosuke (working title)
Replies: 96
Views: 29790

Re: Kurosuke (working title)

I envy your game's performance. I get 400+ FPS ingame in Kerosuke, and much less in most other löve games.
I think most of that has to do with your general lack of HUD text or particle systems. Both of those bring my FPS down pretty hard.
by slime
Sun Feb 20, 2011 7:48 pm
Forum: General
Topic: Multiplayer loving event
Replies: 27
Views: 3255

Re: Multiplayer loving event

Speaking as a Mac user, Savage 1 and 2 are both awesome. S2Mercenary would approve. :p
by slime
Fri Feb 18, 2011 4:02 am
Forum: General
Topic: LÖVE 0.7.1 Released
Replies: 21
Views: 52352

Re: LÖVE 0.7.1 Released

Zen: yes? :D
by slime
Thu Feb 17, 2011 10:14 am
Forum: Support and Development
Topic: LuaJIT-compiled LÖVE
Replies: 6
Views: 5141

Re: LuaJIT-compiled LÖVE?

I compiled an intel-only OSX LuaJIT (2.0.0-beta6) Löve build:

Compiling against a dynamic library kept giving me the error

Code: Select all

dyld:  Library not loaded:
so i had to use a static one.
by slime
Mon Feb 14, 2011 5:40 am
Forum: Support and Development
Topic: causing large performance hit
Replies: 3
Views: 762

Re: causing large performance hit

Well, yeah, but in a more "live" situation with my background and NPCs enabled it goes from 250fps to 320fps, plus I was planning on having more things printed onscreen than I currently am.

Oh well, good thing it's being redone soon™ at least. ;)
by slime
Mon Feb 14, 2011 5:30 am
Forum: Support and Development
Topic: causing large performance hit
Replies: 3
Views: 762 causing large performance hit

I have five calls in my code currently, and the one with the most text is "Health: 2000/2000" (they're all at default font/size too), so it's not like I'm printing whole paragraphs, however when I comment these calls out my FPS jumps drastically, from 390fps to 560fps. Is this no...
by slime
Sun Feb 13, 2011 6:40 pm
Forum: Support and Development
Topic: NPC chasing the player
Replies: 20
Views: 5408

Re: NPC chasing the player

It should be

Code: Select all

local len = math.sqrt(x*x + y*y)
Making the change didn't affect the speed of the tests at all for me.

EDIT: On a side note, localizing all the math functions (not the table itself) brought my times down from

Code: Select all

time: 	4.746087
time: 	8.156244

Code: Select all

time: 	3.405954
time: 	6.183561
by slime
Fri Feb 11, 2011 9:01 pm
Forum: General
Topic: The Egyptian protesters won!
Replies: 10
Views: 1331

Re: The Egyptian protesters won!

No one has won quite yet, this is only the first (or second, I guess) step. Good for them though. :)
by slime
Thu Feb 10, 2011 8:41 pm
Forum: Games and Creations
Topic: "Expand" | RTS/4X
Replies: 9
Views: 2272

Re: "Expand" | RTS/4X

Oh my. This is amazing! Very nice work.