Search found 27 matches
- Sun Oct 21, 2012 3:56 pm
- Forum: Support and Development
- Topic: Lighting
- Replies: 8
- Views: 4280
Re: Lighting
That is not the effect I wanted, but thanks anyways. I don't want it to be a perfect circle, but rather be "blocky", and only have one shade per tile.
- Sun Oct 21, 2012 2:06 pm
- Forum: Support and Development
- Topic: Lighting
- Replies: 8
- Views: 4280
Lighting
I have been thinking about something: an easy way to apply simple lighting to games. I was thinking about creating an emtpy ImageData, and filling it with a dark color, with a low alpha value. And loop through all of the tiles, and measure the distance from every light source, and then apply the cor...
- Fri Oct 12, 2012 2:28 pm
- Forum: Support and Development
- Topic: Accessing Data from the conf.lua file
- Replies: 8
- Views: 5262
Re: Accessing Data from the conf.lua file
Yeah... But for a Lua beginner, t might be easier to understand ó_óRoland_Yonaba wrote: That basically has the same spirit as Ref's snippet, though.
- Fri Oct 12, 2012 2:14 pm
- Forum: Support and Development
- Topic: Accessing Data from the conf.lua file
- Replies: 8
- Views: 5262
Re: Accessing Data from the conf.lua file
Actually, this would be the easiest, I think: conf.lua configTable = {} -- use any variable name function love.conf(t) t.screen.width = 800 t.screen.height = 600 t.title = "Test Window" configTable = t end main.lua function love.load() local screenWidth = configTable.screen.width -- access...
- Thu Oct 11, 2012 6:23 pm
- Forum: Support and Development
- Topic: Accessing Data from the conf.lua file
- Replies: 8
- Views: 5262
Re: Accessing Data from the conf.lua file
You could also just declare global variables in the conf.lua files, I think. It is possible, though, that LÖVE does not run the two files with the same Lua_state. Anyways, this is how you'd do it: -- conf.lua S_WIDTH, S_HEIGHT = 800, 600 S_TITLE = "Test Window" function love.conf(ct) ct.sc...
- Sun Sep 30, 2012 3:36 pm
- Forum: General
- Topic: Battle of the Lua Game Engines: Corona vs. Gideros vs. Love
- Replies: 21
- Views: 13371
Re: Battle of the Lua Game Engines: Corona vs. Gideros vs. L
I have had MOAI running in my Linux environment. There are some helpful people in their IRC channel, that helped me set it up.kikito wrote: It was the only one that ran on Linux. That was enough for me.
- Sat Sep 29, 2012 2:57 pm
- Forum: General
- Topic: Unnecessary use of the umlaut
- Replies: 27
- Views: 19953
Re: Unnecessary use of the umlaut
Are you perhaps danish?
- Fri Sep 28, 2012 11:04 am
- Forum: Libraries and Tools
- Topic: Jupiter - Save tables to files
- Replies: 7
- Views: 4010
Re: Jupiter - Save tables to files
I know that it sounded like whoring, but it was not meant to do that, at all. I was just trying to tell you, that I thought you overcomplicated it. I see that it easily looks like something else.
- Fri Sep 28, 2012 10:16 am
- Forum: Libraries and Tools
- Topic: Storage - Save data to files
- Replies: 11
- Views: 8908
Re: Storage - Save data to files
And that's the reason, that I didn't use string.dump
Anyway, do you like it?
Anyway, do you like it?
- Thu Sep 27, 2012 5:36 pm
- Forum: Libraries and Tools
- Topic: Jupiter - Save tables to files
- Replies: 7
- Views: 4010
Re: Jupiter - Save tables to files
Nice. But I think you over-complicated the table saving/loading WAAAAY too much. Look at this (at the bottom of the code), and see if you can figure out what I did...