Search found 19 matches

by AndreyMust19
Tue Dec 16, 2014 4:28 am
Forum: Support and Development
Topic: How to rename dir / move file?
Replies: 20
Views: 4062

Re: How to rename dir / move file?

slime
os.rename
Thx, i try it. I think need close all opened files in that directory before?
by AndreyMust19
Sun Dec 14, 2014 8:20 am
Forum: Support and Development
Topic: How to rename dir / move file?
Replies: 20
Views: 4062

How to rename dir / move file?

Not exist this functions in API. Just creating new directory and recursive recreating all files and directories, then delete old folder?
by AndreyMust19
Sun Oct 12, 2014 7:32 pm
Forum: Support and Development
Topic: Love2d GLSL Shaders
Replies: 51
Views: 14269

Re: Love2d GLSL Shaders

I need pixel shader for that effect. Yes, is about 2d lighting.
All "lighting engines" for Love2D what i found - using CPU for calculating shapes and creating stencil, and GPU - only for drawing. I think, may use shaders for calculation of shapes?
by AndreyMust19
Sat Oct 11, 2014 3:30 pm
Forum: Support and Development
Topic: Love2d GLSL Shaders
Replies: 51
Views: 14269

Re: Love2d GLSL Shaders

Hello again!

How with shader transform from:
Image
to this:
Image

I think, need drawing of image down? How it make at GLSL?
by AndreyMust19
Sat Sep 20, 2014 10:23 am
Forum: Support and Development
Topic: Separation of draw-loop and update-loop threads. Possible?
Replies: 6
Views: 1721

Separation of draw-loop and update-loop threads. Possible?

If us running in same thread, then drawing may slows updating and reversal. Love2d have threads, but is isolated threads, no shared environment, with exchanging by messages. Is possible separate loops to updating and drawing same objects from different threads, to optimal execution on multi-core sys...
by AndreyMust19
Sun Aug 03, 2014 11:45 am
Forum: Games and Creations
Topic: SpaceDestroyer
Replies: 1
Views: 965

SpaceDestroyer

Hello all lovers! It's modest top-down shooter in space, like Asteroids on Atari: * Loop-cycled screen * Meteors, spaceships and comets * Random-generated background * English and Russian language Screenshots http://dl.dropboxusercontent.com/u/24912219/Love2D/SpaceDestroyer/pre-release/new_screen01....
by AndreyMust19
Mon Jul 28, 2014 5:41 pm
Forum: Support and Development
Topic: Love2d GLSL Shaders
Replies: 51
Views: 14269

Re: Love2d GLSL Shaders

Thx all for helping. Anyway game almost ready.
by AndreyMust19
Sun Jul 27, 2014 8:38 am
Forum: Support and Development
Topic: Love2d GLSL Shaders
Replies: 51
Views: 14269

Re: Love2d GLSL Shaders

Create new project. Draw-code: if settings.effect ~= 0 then love.graphics.setPixelEffect(effects[settings.effect]) end love.graphics.draw(image); love.graphics.setColor(255,255,255,255) love.graphics.rectangle('fill',0,0,200,100) love.graphics.setPixelEffect() NO SHADER http://sd.uploads.ru/pPeNc.pn...
by AndreyMust19
Sat Jul 26, 2014 7:05 pm
Forum: Support and Development
Topic: Love2d GLSL Shaders
Replies: 51
Views: 14269

Re: Love2d GLSL Shaders

Hello, guys. I'm ask here. With vec4 effect(vec4 color, Image texture, vec2 tc, vec2 pc) { vec4 pixel = Texel(texture, tc) return pixel*color } drawing images, but not drawing lines, circles and rectanges (they not have texture). And with vec4 effect(vec4 color, Image texture, vec2 tc, vec2 pc) { re...