Search found 19 matches

by 4vZEROv
Tue Apr 23, 2019 10:24 pm
Forum: General
Topic: A hot potato
Replies: 4
Views: 4393

Re: A hot potato

Code: Select all

function love.update(dt)
	
	if love.keyboard.isDown("left")  then move_left()  end

end
by 4vZEROv
Mon Apr 22, 2019 11:42 pm
Forum: Support and Development
Topic: Help with shaders
Replies: 2
Views: 100

Re: Help with shaders

Draw your circle on a canvas and then use the shader on the canvas
by 4vZEROv
Mon Apr 01, 2019 11:20 pm
Forum: Support and Development
Topic: Drawing rectangle and table problem
Replies: 5
Views: 846

Re: Drawing rectangle and table problem

zorg wrote:
Sun Mar 31, 2019 7:35 pm
True, my bad, the error is similar tho. You have a table inside another table and you don't want that
by 4vZEROv
Sun Mar 31, 2019 1:47 pm
Forum: Support and Development
Topic: Drawing rectangle and table problem
Replies: 5
Views: 846

Re: Drawing rectangle and table problem

When you do :

Code: Select all

table.insert(s, newsouris)
The result is :

Code: Select all

 s = {newsouris = { x = x_coord, y = y_coord }}
What you want is :

Code: Select all

 s = {x = x_coord, y = y_coord}  
So just do :

Code: Select all

 
if love.mouse.isDown (1) then
	s = { x = love.mouse.getX(), y = love.mouse.getY() }
end
by 4vZEROv
Thu Mar 07, 2019 12:32 am
Forum: General
Topic: For design pattern material recommendations....
Replies: 2
Views: 3923

Re: For design pattern material recommendations....

https://github.com/adnzzzzZ/blog is good with plenty of advices on how to structure your game code by a guy that actually released a good game
by 4vZEROv
Fri Mar 01, 2019 5:18 pm
Forum: General
Topic: Stencil testing within stencil testing
Replies: 2
Views: 788

Re: Stencil testing within stencil testing

Why would you do that ?
by 4vZEROv
Wed Feb 27, 2019 5:56 pm
Forum: Support and Development
Topic: Canvas + camera shake
Replies: 25
Views: 4119

Re: Canvas + camera shake

The problem is that you are drawing 2 layers : https://i.imgur.com/t8EVE4b.png - 1 with your image - 1 with your lights and dark background And then you try to move them at the same time. ONe way to correct that would be to separate the lights from the transparent background and then draw: -image fi...
by 4vZEROv
Fri Feb 22, 2019 9:37 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 27
Views: 6390

Re: Scenes/Views/Activities question [Answered]

If I understand correctly what you are saying, if it bother you to have multiple files but as the same time you want to keep your code clear, you could just write a "compiler" that output a single file from multiple files (just use require() functions to guide you). But I don't understand what your ...
by 4vZEROv
Fri Feb 22, 2019 1:22 pm
Forum: Support and Development
Topic: Hard time combining pixel art scaling and hump camera
Replies: 4
Views: 1848

Re: Hard time combining pixel art scaling and hump camera

I use this with a modified copy of hump.camera to have crisp pixels function love.load() _GAME = {} _GAME.SCALE = 3 _GAME.CANVAS = lg.newCanvas(lg.getWidth(), lg.getHeight()) end function love.draw() lg.setCanvas(_GAME.CANVAS) lg.clear() lg.push() lg.scale(1/_GAME.SCALE) camera:draw(draw_game) lg.po...
by 4vZEROv
Wed Feb 13, 2019 10:44 pm
Forum: General
Topic: Proposal for a new Love2d IDE
Replies: 8
Views: 2449

Re: Proposal for a new Love2d IDE

The "documentation made easy to navigate part" sound good. Other than that I don't really see any feature that can't be implemented otherwise. Good luck anyway