Search found 909 matches

by nevon
Sun Jan 29, 2012 11:09 am
Forum: General
Topic: When does "scripting" become "programming"?
Replies: 36
Views: 13113

Re: When does "scripting" become "programming"?

Going by that distinction, wouldn't Java be scripting, since it's run in the JVM?
by nevon
Sat Jan 28, 2012 8:22 pm
Forum: Support and Development
Topic: how to play one sound multiple times
Replies: 10
Views: 7199

Re: how to play one sound multiple times

For sounds, you should load them once as sounddata, and then use that sounddata to create a new source when you need to play it.
by nevon
Tue Jan 24, 2012 5:19 pm
Forum: General
Topic: Hypothetical: Making a word game and needing to check word..
Replies: 23
Views: 5932

Re: Hypothetical: Making a word game and needing to check wo

I don't know if you're actually wondering where to get such a list, or if you're only interested in how to check against it. But if you are in need of such a list, look no further than /usr/share/dict/<language>/ on any Linux system (quite possibly in OSX as well). There are a bunch of other databas...
by nevon
Sun Jan 22, 2012 10:33 am
Forum: General
Topic: Some self humorous coding-love-hate!
Replies: 14
Views: 6092

Re: Some self humorous coding-love-hate!

Keeping with the theme, let's talk about Javascript.

Code: Select all

> typeof Nan
"number"
DNZMW.jpg
DNZMW.jpg (24.95 KiB) Viewed 290 times

Code: Select all

> Math.min() < Math.max()
false
pZGFa.jpg
pZGFa.jpg (90.86 KiB) Viewed 290 times
by nevon
Wed Jan 18, 2012 4:17 pm
Forum: Libraries and Tools
Topic: Cave Generator
Replies: 8
Views: 4255

Re: Cave Generator

MarekkPie wrote:Must be using a framebuffer, because I can't see it on my netbook. I'll have to check it out when I get to my desktop.
Probably Po2 syndrome.
by nevon
Mon Jan 09, 2012 3:00 pm
Forum: Support and Development
Topic: New to Love >>> wit a problem
Replies: 11
Views: 5226

Re: New to Love >>> wit a problem

Nixola wrote:(I won't use it anymore to install something, only for searching)
This is only tangentially related to the topic, but you should almost always install your software from the repos, unless you know of a PPA that you trust and that is more up-to-date.
by nevon
Sun Jan 08, 2012 7:42 pm
Forum: Support and Development
Topic: New to Love >>> wit a problem
Replies: 11
Views: 5226

Re: New to Love >>> wit a problem

ayla wrote:One of my other question would be is it posible to intergade Love in a website?
It is not.
by nevon
Sun Jan 08, 2012 12:10 pm
Forum: General
Topic: What code editor do you use ?
Replies: 195
Views: 298114

Re: What code editor do you use ?

by nevon
Sat Jan 07, 2012 6:52 pm
Forum: Support and Development
Topic: (A lua only question)
Replies: 4
Views: 1865

Re: (A lua only question)

function Bin2Dec(s) local num = 0 local ex = string.len(s) - 1 local l = 0 l = ex + 1 for i = 1, l do b = string.sub(s, i, i) if b == "1" then num = num + 2^ex end ex = ex - 1 end return string.format("%u", num) end Source
by nevon
Sat Dec 31, 2011 8:11 am
Forum: Support and Development
Topic: Loading another script
Replies: 26
Views: 12457

Re: Loading another script

I think you're talking about require.