Search found 18 matches

by infinte
Mon Oct 17, 2011 7:31 am
Forum: Support and Development
Topic: REAL random numbers?
Replies: 7
Views: 4679

REAL random numbers?

Using CryptGenRandom or /dev/random?
Maybe a mixed implementation between real and pesudo.
by infinte
Sat Oct 15, 2011 5:19 pm
Forum: Support and Development
Topic: IDE for Lua and LOVE?
Replies: 30
Views: 20021

Re: IDE for Lua and LOVE?

Nobody here uses vim?
by infinte
Sat Oct 15, 2011 4:27 pm
Forum: Libraries and Tools
Topic: Boids 3D
Replies: 11
Views: 6548

Re: Boids 3D

Here's a 0.8-compatible ver.
by infinte
Fri Oct 14, 2011 12:26 pm
Forum: Support and Development
Topic: Lua binary files?
Replies: 6
Views: 3845

Re: Lua binary files?

It probably does. Lua's virtual machine executes both compiled and non-compiled code alike. Are you sure your luac.exe output is correct? I've compiled a lua file (library-level, .lua) into binary (.b) and love cannot require it. It needs the *.lua extension, unless you modify package.path. BTW, it...
by infinte
Fri Oct 14, 2011 11:45 am
Forum: Support and Development
Topic: Lua binary files?
Replies: 6
Views: 3845

Re: Lua binary files?

ivan wrote:It probably does. Lua's virtual machine executes both compiled and non-compiled code alike.
Are you sure your luac.exe output is correct?
I've compiled a lua file (library-level, .lua) into binary (.b) and love cannot require it.
by infinte
Fri Oct 14, 2011 11:29 am
Forum: Support and Development
Topic: Lua binary files?
Replies: 6
Views: 3845

Lua binary files?

Hi.
I'm thinking about a problem in destribution. Does love2d support lua "binery code"s generated by luac?
thanks.
by infinte
Thu Oct 06, 2011 5:36 pm
Forum: General
Topic: A very simple Chinese-compatible layouter (0.8.0)
Replies: 4
Views: 2303

Re: A very simple Chinese-compatible layouter (0.8.0)

Another minor thing - since you are only exporting the layout function, you can skip the "exports" table altogether: local function isHan(char) -- Simple processing. Not precise return char >= 0x3000 end ... return layout Usage: layout = require 'layout' ... layout("Wish your dream c...
by infinte
Thu Oct 06, 2011 3:59 pm
Forum: General
Topic: A very simple Chinese-compatible layouter (0.8.0)
Replies: 4
Views: 2303

Re: A very simple Chinese-compatible layouter (0.8.0)

Robin wrote:You might want to change all functions to local functions, to prevent polluting the global scope.

Sorry, It is fixed
function(){...} IS local in JavaScript, but not in lua. sigh~
by infinte
Thu Oct 06, 2011 3:18 pm
Forum: General
Topic: A very simple Chinese-compatible layouter (0.8.0)
Replies: 4
Views: 2303

A very simple Chinese-compatible layouter (0.8.0)

Code: local exports = {} local function isHan(char) -- Simple processing. Not precise return char >= 0x3000 end local function isSpace(char) return char == 0x20 end local function isBreak(char) return char == 0xA end local function forUChar(s, f) local i = 1 local len = string.len(s) while i <= len ...
by infinte
Tue Oct 04, 2011 5:48 pm
Forum: Support and Development
Topic: 大家好(Hello,everyone)
Replies: 9
Views: 7273

Re: 大家好(Hello,everyone)

哎呦,遇到自己人了。我目前有利用 love2d 制作 RPG 的打算,正好 0.8.0 版本即将支持中文输出。但是我主要是写 js 的,lua 有点不习惯…… RPGs are fairly simple to program (as opposed to, say, a shooter), however, they generally require a lot more content (music, maps, characters (which probably have animations), lists of random encounters, items and all ...