Search found 6 matches

by OnlyFails
Sun Jun 08, 2014 2:16 pm
Forum: General
Topic: [Worked Around] math.floor and Canvas
Replies: 0
Views: 1702

[Worked Around] math.floor and Canvas

A bit of research lead me to believe that flooring the values of a translation function with a Canvas would help prevent any artefacts, however I am receiving a weird affect where items are 'jiggling' around with what I can assume to be numbers be rounded down (similar to snapping to a grid). I have...
by OnlyFails
Sun Jun 08, 2014 1:56 pm
Forum: General
Topic: [Worked Around] Please include Cpryto for resource checking!
Replies: 3
Views: 2067

Re: Please include Cpryto for resource checking!

So it took me about over a week to figure out but I'm compiling my own version of love with the obvious issues kikito mentioned. By compiling my own version I can keep the source code hidden so it can't be modified, to prevent tampering. Thanks again guys, the forums are amazing filled with helpful ...
by OnlyFails
Wed May 28, 2014 3:52 pm
Forum: General
Topic: [Worked Around] Please include Cpryto for resource checking!
Replies: 3
Views: 2067

[Worked Around] Please include Cpryto for resource checking!

The site http://mkottman.github.io/luacrypto/manual.html has a library for encrypting strings into MD5 strings. By serialising files you can compare files on the local storage device with an expected MD5 string to detect if there are any discrepancies (via hacking or cheating, etc.) This is very han...
by OnlyFails
Tue May 06, 2014 1:00 am
Forum: Support and Development
Topic: [Solved] Memory Leak in only two lines
Replies: 15
Views: 9550

Re: Memory Leak in only two lines

I am using userData in the love physics module so I might be misusing it probably, are there any basic house keeping tips I should know about with using them? Set userdata to nil before destroying an object. You need to explicitly pass it nil otherwise it will error. How are they any different from...
by OnlyFails
Mon May 05, 2014 1:44 am
Forum: Support and Development
Topic: [Solved] Memory Leak in only two lines
Replies: 15
Views: 9550

Re: Memory Leak in only two lines

Thanks everyone for the help, I wasn't expecting such an amazing response time! I was just worried because I usually program in C++ and I handle my own garbage collection, I guess that caused some trust issues when moving to easier, more user friendly languages like Lua. If you have a leak of few mb...
by OnlyFails
Fri May 02, 2014 9:38 pm
Forum: Support and Development
Topic: [Solved] Memory Leak in only two lines
Replies: 15
Views: 9550

[Solved] Memory Leak in only two lines

Introduction: So I noticed my game was slowly eating up more and more memory and couldn't find out why! I decided to learn about garbage collection by creating a new, simple love2d project with the following code: main.lua: function love.load() end function love.update() end function love.draw() lo...