Search found 3091 matches

by zorg
Thu Oct 02, 2014 6:13 am
Forum: Support and Development
Topic: [SOLVED] Nested context scale doesn't work
Replies: 4
Views: 2211

Re: Nested context scale doesn't work

Sorry I should have been more clear, the scaling is an issue because I need to retain the translation and rotation but reset the scale. this is because I am drawing many canvases, then having them all added to a last one that I want to scale up. in that case, the code: love.graphics.translate(tx,ty...
by zorg
Wed Oct 01, 2014 8:07 am
Forum: Support and Development
Topic: [SOLVED] Nested context scale doesn't work
Replies: 4
Views: 2211

Re: Nested context scale doesn't work

Untested, but you probably want something like this: function love.draw() love.graphics.push() love.graphics.scale(scale) love.graphics.push() love.graphics.origin() -- the addition; reset all transformations. love.graphics.scale(1) -- This does not work at all local w, h = love.graphics.getWidth(),...
by zorg
Wed Sep 17, 2014 7:40 am
Forum: Support and Development
Topic: String format related question
Replies: 5
Views: 2493

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: 1867

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: 4210

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: 1259

[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: 1553

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: 1729
Views: 825108

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: 1729
Views: 825108

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: 2374

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...