Search found 237 matches

by mickeyjm
Sat Dec 28, 2013 10:10 pm
Forum: General
Topic: Making flash games
Replies: 4
Views: 1585

Re: Making flash games

If you do make any post the results. I play flash games at 6th form in my free lessons as they are about the only games that don't breach the IT code of conducts :P
by mickeyjm
Sat Dec 21, 2013 11:33 am
Forum: General
Topic: Notepad++ 0.9.0 Auto-Completion
Replies: 5
Views: 3054

Re: Notepad++ 0.9.0 Auto-Completion

Thanks, I was hoping someone would update this soon
by mickeyjm
Tue Dec 10, 2013 8:44 pm
Forum: Support and Development
Topic: real time count-down
Replies: 7
Views: 3288

Re: real time count-down

You use this when you actually want to get a string representation of the timer. For example if you are writing the timer in the top left corner of the screen you might do love.graphics.print(string.format("%02.0f:%02.0f",minutes,seconds),0,0) --Print formatted time at 0,0 Or if you are as...
by mickeyjm
Tue Dec 10, 2013 8:18 pm
Forum: Support and Development
Topic: real time count-down
Replies: 7
Views: 3288

Re: real time count-down

You can use string.format when displaying the time to achieve this
For example:

Code: Select all

string.format("%02.0f",seconds)
Or, to format the minutes aswell:

Code: Select all

string.format("%02.0f:%02.0f",minutes,seconds)
by mickeyjm
Sat Nov 23, 2013 11:37 am
Forum: Libraries and Tools
Topic: Skip List
Replies: 9
Views: 5214

Re: Skip List

-snip- Thank you, that was a very clear explanation. Strangely enough I just ran into a performance issue in a project of mine where it needs to sort elements very quickly so this seems ideal. EDIT: My god these are faster, I went from 20fps to 70fps as soon as I implemented skiplist instead of nor...
by mickeyjm
Sat Nov 23, 2013 10:38 am
Forum: Libraries and Tools
Topic: Skip List
Replies: 9
Views: 5214

Re: Skip List

Could you please explain what a skip list is/does? I tried looking on wikipedia but after the first line I was completely lost.
by mickeyjm
Fri Nov 22, 2013 7:52 pm
Forum: Support and Development
Topic: Cannot remove a directory with love.filesystem?
Replies: 1
Views: 1250

Re: Cannot remove a directory with love.filesystem?

Just a guess as I can't see the file structure itself but would you want

Code: Select all

lf.remove("prefs/assets")
as your code implies assets is in the pref directory but doesn't tell love to delete a file in that folder
by mickeyjm
Fri Nov 22, 2013 6:10 pm
Forum: General
Topic: Gotten interested in .lua and love 2D
Replies: 18
Views: 12629

Re: Gotten interested in .lua and love 2D

Welcome to the forums! I recommend you start out by looking through this and the wiki to get started, also looking through other people's code can help, provided it is commented well enough :P. Also small thing, but ".lua" is the file extension, the language is simply "Lua" and t...
by mickeyjm
Thu Nov 14, 2013 8:15 pm
Forum: Support and Development
Topic: GLSL Shader Help [Solved]
Replies: 3
Views: 3161

Re: GLSL Shader Help

Err is it meant to do this:
ShaderText.png
ShaderText.png (2.43 KiB) Viewed 3124 times
by mickeyjm
Mon Nov 11, 2013 8:25 pm
Forum: Support and Development
Topic: Running font functions on default font
Replies: 2
Views: 899

Re: Running font functions on default font

Add this at the beginning: love.graphics.setFont(love.graphics.newFont()) It will create a load a new font that is identical to the default one, allowing you to run the font functions as you showed in the example. (Also I assume it is a typo but you wrote lovegraphics instead of love.graphics in the...