Search found 3449 matches

by zorg
Wed Sep 17, 2014 7:40 am
Forum: Support and Development
Topic: String format related question
Replies: 5
Views: 4821

Re: String format related question

Edit: Roland explained what i tried to better below me DaedalusYoung probably meant this then: TEsound.play("assets/music/" .. songname[filename] .. ".mp3") On the other hand, when sorting, you could sort with using gsub and a pattern that returns only what's after the last /, o...
by zorg
Wed Sep 10, 2014 9:57 am
Forum: General
Topic: Checking pixels on a line
Replies: 4
Views: 3214

Re: Checking pixels on a line

Keep in mind that using getPixel constantly is probably (a lot) slower than pulling the whole image into a lua-table and accessing that. On the other hand, tables have some overhead in memory, while imagedata is (to my knowledge) just a simple c array holding byte quadruplets for the pixel colors; ...
by zorg
Wed Aug 27, 2014 6:33 pm
Forum: General
Topic: ABC Music Notation and how bad it sounds
Replies: 12
Views: 5490

Re: ABC Music Notation and how bad it sounds

what i hear on win7: https://dl.dropboxusercontent.com/u/36445632/music/teddybearpicnic_test.mp3 By the way, if you want a more consistent sounding track, why not just use a module format like .mod (that libmodplug also supports)? with samples that were used in chiptunes, it can easily be used to cr...
by zorg
Thu Aug 21, 2014 9:08 pm
Forum: Libraries and Tools
Topic: [Lib-Tool] Multi-partite Performance Graph
Replies: 1
Views: 1968

[Lib-Tool] Multi-partite Performance Graph

Hi everyone! Looking through the forums, i saw a post in a thread having a screenshot and code snippet for a pretty simple minecraft-like performance graph. I thought i'd make it a bit more interesting, so (with the approval of the original coder) here's my first released library, a multipartite per...
by zorg
Thu Aug 14, 2014 3:36 pm
Forum: Support and Development
Topic: Canvases and thin lines.
Replies: 7
Views: 2454

Re: Canvases and thin lines.

veethree wrote:But why?
This post has a neat image that i think explains it (i think) :3

...also, the whole tread actually.
by zorg
Wed Jul 23, 2014 4:00 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1796
Views: 1569309

Re: What's everyone working on? (tigsource inspired)

Motion blur you say.. How are you doing this ? I've always been interested in this perticular shader, I tried coding it once but I never got the expected result Actually, i used blendmodes and canvases instead of shaders... though it depended on some shotgun programming for me to get it to work; an...
by zorg
Wed Jul 23, 2014 3:41 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1796
Views: 1569309

Re: What's everyone working on? (tigsource inspired)

Working on 3 things simultaneously, and one is finished. (i never start small :c) (image links lead to animated gifs (made with LICEcap, so they are somewhat huge)) The finished one (a just-for-fun thing, so i could resurrect the ANALog ClOCK thread) https://dl.dropboxusercontent.com/u/36445632/cloc...
by zorg
Tue Jul 22, 2014 10:47 am
Forum: Support and Development
Topic: Get time duration in key down event
Replies: 5
Views: 4248

Re: Get time duration in key down event

Well then, keys = {} function love.keypressed(key) keys[key] = os.clock() end function love.keyreleased(key) keys[key] = os.clock() - keys[key] end Though you'd need to check for the key to not be pressed since this only gives back the correct held time then...unless you use something like this: fun...
by zorg
Sun Jul 20, 2014 8:40 pm
Forum: Games and Creations
Topic: Analog clock
Replies: 17
Views: 22909

Re: ANALog ClOCK

Apologies for being late, hope this was worth the wait :3 Resizable, keys are b for bordered/borderless, 1-6 for clock types, 0(or `) for overview, 8 toggles dates (regular, discordian, eternal september) and ⑨ if you're mathematically challenged... ZLOCK.love edit: forgot to give a cool image, have...
by zorg
Sun Jul 20, 2014 8:28 pm
Forum: Support and Development
Topic: Get time duration in key down event
Replies: 5
Views: 4248

Re: Get time duration in key down event

you can do something like this (my original usage was that i needed to differentiate between 4 key states): keys = {} keyt = {} function love.update(dt) for k,v in pairs(keys) do if v == 'pressed' and love.keyboard.isDown(k) then v = 'held' else if v == 'released' and not love.keyboard.isDown(k) the...