Search found 126 matches

by 4vZEROv
Sun Mar 31, 2019 1:47 pm
Forum: Support and Development
Topic: Drawing rectangle and table problem
Replies: 5
Views: 4269

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

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: 1
Views: 2899

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

Re: Canvas + camera shake

The problem is that you are drawing 2 layers : https://love2d.org/imgmirrur/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: ...
by 4vZEROv
Fri Feb 22, 2019 9:37 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 27
Views: 26650

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

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: 9
Views: 12864

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
by 4vZEROv
Sat Feb 09, 2019 3:16 pm
Forum: General
Topic: need explanations on how rotation transforms works
Replies: 1
Views: 2664

Re: need explanations on how rotation transforms works

local rect = {x = 100, y = 100, w = 200, h = 200} rect.center_x = rect.x + rect.w/2 rect.center_y = rect.y + rect.h/2 rect.angle = 0.1 function love.update(dt) if love.keyboard.isDown("left") then rect.angle = rect.angle + 0.01 end if love.keyboard.isDown("right") then rect.angl...
by 4vZEROv
Sat Feb 09, 2019 2:56 pm
Forum: Games and Creations
Topic: is it possible to make a rpg like Mother?
Replies: 12
Views: 18955

Re: is it possible to make a rpg like Mother?

Löve as fast as Gamemaker (in fact a lot more) so everything you can do with one you can do with the other.
by 4vZEROv
Sun Feb 03, 2019 1:59 pm
Forum: Libraries and Tools
Topic: Möan.lua - A simple messagebox system.
Replies: 40
Views: 88876

Re: Möan.lua - A simple messagebox system.

Nice rework :)
I found some things you could work :
- playSound() and parseSpeed() are global
- indentation timer is framerate dependant