Search found 39 matches

by ZBoyer1000
Fri Jul 01, 2016 6:14 am
Forum: Support and Development
Topic: A single quick question
Replies: 2
Views: 611

A single quick question

I have been off for a while trying to make perfect code and I somehow came across this question.
Does .love 2d support background input for controllers and keyboard?
Sorry if I have made any mistakes. I normally have a bad sleep cycle that constantly changes
and it is messing with me.
by ZBoyer1000
Wed Jun 15, 2016 2:04 pm
Forum: Support and Development
Topic: Questions about fonts and text
Replies: 5
Views: 1423

Re: Questions about fonts and text

...Oh, and use the right subforum next time.
Whoops, looks like I did goof at placing this topic. Yea, that mistake might never happen again. :D
I've been studying code from all over the internet on neat ways to do things efficiently for too long.
That might also explain the derpy questions...
by ZBoyer1000
Tue Jun 14, 2016 10:07 pm
Forum: Support and Development
Topic: Questions about fonts and text
Replies: 5
Views: 1423

Questions about fonts and text

Okay, this might seem a bit weird but I have a few questions. :) -Is there a way to get the width and height in pixels of an individual character that uses a font? -Is there a way to get the size of a single pixel that makes up a character that uses a font? -Is there a way to prevent text from being...
by ZBoyer1000
Sun Jun 12, 2016 5:59 pm
Forum: General
Topic: Mini Functions Repository
Replies: 48
Views: 22646

Re: Mini Functions Repository

Here is another list of more functions I tried creating. Hint: The good stuff is below! function valueToKey(t,i) for k,v in pairs(t) do if v == i then return k end end return "nil" end function keyToValue(t,i) for k,v in pairs(t) do if k == i then return v end end return "nil" end --Returns a conver...
by ZBoyer1000
Sun Jun 12, 2016 4:15 pm
Forum: General
Topic: Mini Functions Repository
Replies: 48
Views: 22646

Re: Mini Functions Repository

Here is a large list of functions I tried creating. Hint: The good stuff is below! seeds={} function createSeed(name,n) for i = 1,#seeds do if seeds[i][1] == name and seeds[i][2] == n then print("Failed to create a new seed.") return end end seeds[#seeds+1] = {name,n} print("Seed: "..name..":"..n.."...
by ZBoyer1000
Mon Apr 25, 2016 11:53 pm
Forum: Libraries and Tools
Topic: Some random stuff
Replies: 0
Views: 724

Some random stuff

My computer sucks at using glsl efficiently so I made something that looks similar to old televisions without the performance drop. (I might make more of these kinds of things in the future) Also, I made a cool font, "Pixelception" that anyone can use for their projects and tests as long as they cre...
by ZBoyer1000
Mon Apr 25, 2016 11:29 pm
Forum: General
Topic: Dynamic lighting on sprites in LOVE 2D?
Replies: 3
Views: 1184

Re: Dynamic lighting on sprites in LOVE 2D?

Hmm... It seems really interesting, though I think I might need to make my own version of the lighting since it is a bit outdated and sometimes hogs memory .
by ZBoyer1000
Sun Apr 17, 2016 5:18 am
Forum: General
Topic: Dynamic lighting on sprites in LOVE 2D?
Replies: 3
Views: 1184

Dynamic lighting on sprites in LOVE 2D?

http://robotloveskitty.tumblr.com/post/ ... on-sprites
Is it possible to do this sort of thing in Love 2D? I'm starting to become really curious. :o:
by ZBoyer1000
Sat Apr 16, 2016 5:37 pm
Forum: General
Topic: Mini Functions Repository
Replies: 48
Views: 22646

Re: Mini Functions Repository

Here is another function that I created that can shift a number over a specific period of time. It's pretty good to use if you don't want to waste time making your own clocks that do similar things. To spice up things, I included "resetType" with four settings to help. :P numList = {} function shift...
by ZBoyer1000
Sat Apr 02, 2016 9:50 pm
Forum: General
Topic: Mini Functions Repository
Replies: 48
Views: 22646

Mini Functions Repository

I thought it would be neat to create a place where people could post small functions that can do useful things and possibly help other people's projects. :D Here is a function I created that could help create game clocks: gameClocks = {} function clock(name, time) index = 0 for i = 1,#gameClocks do ...