Using CryptGenRandom or /dev/random?
Maybe a mixed implementation between real and pesudo.
Search found 18 matches
- Mon Oct 17, 2011 7:31 am
- Forum: Support and Development
- Topic: REAL random numbers?
- Replies: 7
- Views: 4913
- Sat Oct 15, 2011 5:19 pm
- Forum: Support and Development
- Topic: IDE for Lua and LOVE?
- Replies: 30
- Views: 20756
Re: IDE for Lua and LOVE?
Nobody here uses vim?
- Sat Oct 15, 2011 4:27 pm
- Forum: Libraries and Tools
- Topic: Boids 3D
- Replies: 11
- Views: 6776
Re: Boids 3D
Here's a 0.8-compatible ver.
- Fri Oct 14, 2011 12:26 pm
- Forum: Support and Development
- Topic: Lua binary files?
- Replies: 6
- Views: 4081
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...
- Fri Oct 14, 2011 11:45 am
- Forum: Support and Development
- Topic: Lua binary files?
- Replies: 6
- Views: 4081
Re: Lua binary files?
I've compiled a lua file (library-level, .lua) into binary (.b) and love cannot require it.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?
- Fri Oct 14, 2011 11:29 am
- Forum: Support and Development
- Topic: Lua binary files?
- Replies: 6
- Views: 4081
Lua binary files?
Hi.
I'm thinking about a problem in destribution. Does love2d support lua "binery code"s generated by luac?
thanks.
I'm thinking about a problem in destribution. Does love2d support lua "binery code"s generated by luac?
thanks.
- Thu Oct 06, 2011 5:36 pm
- Forum: General
- Topic: A very simple Chinese-compatible layouter (0.8.0)
- Replies: 4
- Views: 2408
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...
- Thu Oct 06, 2011 3:59 pm
- Forum: General
- Topic: A very simple Chinese-compatible layouter (0.8.0)
- Replies: 4
- Views: 2408
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~
- Thu Oct 06, 2011 3:18 pm
- Forum: General
- Topic: A very simple Chinese-compatible layouter (0.8.0)
- Replies: 4
- Views: 2408
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 ...
- Tue Oct 04, 2011 5:48 pm
- Forum: Support and Development
- Topic: 大家好(Hello,everyone)
- Replies: 9
- Views: 7469
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 ...