Search found 131 matches

by Muris
Wed May 06, 2015 8:28 pm
Forum: General
Topic: Questions about require, calling tables from files.
Replies: 13
Views: 1593

Re: Questions about require, calling tables from files.

I think if you use require, you need to return a value from the end of the lua file? Also if you use require, I think you will get same object as a return value such as: -- something.lua return { moo = 'yo' } -- main.lua local a = require 'something' a.moo = "test" -- change the moo in the table to ...
by Muris
Wed May 06, 2015 4:48 pm
Forum: Support and Development
Topic: When does love.keypressed actually run?
Replies: 15
Views: 2973

Re: When does love.keypressed actually run?

You would need to define a valid time range anyway, because no way human reaction time is more precise than 60FPS, so I don't think that's necessary. Maybe the quote itself was not a reply for my rhythm based games, rather than a general answer, but regardless: Quick searching shows that some versi...
by Muris
Wed May 06, 2015 4:47 am
Forum: Support and Development
Topic: When does love.keypressed actually run?
Replies: 15
Views: 2973

Re: When does love.keypressed actually run?

If you are making a rhythm based game, you might run into problems with the accuracy. If you consider normal 60fps, its way too inaccurate for rhythm based games, meaning you probably have to make some way polling of keys actually work on separate thread outside of draw / update functions. I am not ...
by Muris
Tue May 05, 2015 9:54 pm
Forum: General
Topic: Why is (-1)^1.2 not defined?
Replies: 6
Views: 1237

Re: Why is (-1)^1.2 not defined?

I would guess at least some math libraries would define it something as:
{ re = cos 1.2pi, im = sin 1.2pi }

and if not, you can probably define it yourself.
by Muris
Mon Apr 27, 2015 4:56 pm
Forum: Support and Development
Topic: Menu structure
Replies: 8
Views: 1113

Re: Menu structure

There is this HTML-JS interactive storytelling engine whose name I forgot; it's basically a dialogue system. It has an editor but no way to save or export the result other than HTMl AFAIK, so you would need to write a little JS export and a fitting Lua library. Maybe you mean Twine: http://twinery....
by Muris
Sun Apr 19, 2015 6:32 pm
Forum: General
Topic: Big tables and performance with love.graphics.draw.
Replies: 12
Views: 1853

Re: Big tables and performance with love.graphics.draw.

Would you like to show me a table arranged in that way? This is how I understand the arrangement: t = { [y1] = {[x1] = {tile1},[x2] = {tile2},[x3] = {tile3},[x4] = {tile4}}, [y2] = {[x1] = {tile5},[x2] = {tile6},[x3] = {tile7},[x4] = {tile8}}, [y3] = {[x1] = {tile9},[x2] = {tile10},[x3] = {tile1},[...
by Muris
Sun Apr 19, 2015 8:43 am
Forum: General
Topic: Big tables and performance with love.graphics.draw.
Replies: 12
Views: 1853

Re: Big tables and performance with love.graphics.draw.

Even if you have millions of tiles, you only only should draw those that are visible to the screen anyways. There is no point iterating through millions of tiles if only 1000 of them are visible. On the other hand if you do need to update the look on every tile on every frame, then you will most lik...
by Muris
Fri Apr 03, 2015 11:07 am
Forum: General
Topic: performance too LOW!
Replies: 27
Views: 6223

Re: performance too LOW!

I am guessing you do not use sprite batches, and without using sprite batches on drawing stuff I think it is quite useless test. I am almost sure that you are more likely gonna be bounded by your gpu rendering unit, than LUAs performance. Also saying that you have 5000 polygons on your phone and 500...
by Muris
Sat Mar 21, 2015 9:44 am
Forum: Libraries and Tools
Topic: Love Game Maker
Replies: 39
Views: 9774

Re: Love Game Maker

Well I could be wrong, but up to my knowledge you cannot develop with Mono to mobile devices without Xamarin, maybe this has changed since I didn't anymore find any info about Xamarin on their page. The thing with mono is, which is not really mentioned well in their site, but it does cost money to p...
by Muris
Thu Mar 12, 2015 6:14 pm
Forum: Support and Development
Topic: table.remove wont "Remove" table
Replies: 21
Views: 2970

Re: table.remove wont "Remove" table

If you are only comparing distances, it might be good to know that calculating square root is kind of expensive operation, since up to my knowledge it always involves a lot of calculation. Might be using newton method or something, but regardless it is a lot more expensive to calculate square root t...