Search found 14 matches

by cazura
Wed Mar 18, 2020 5:15 pm
Forum: General
Topic: Is it possible to create a hitbox path from an image?
Replies: 4
Views: 7064

Re: Is it possible to create a hitbox path from an image?

You can read images, see ImageData:getPixel . If you just want to detect crashes, you can check if any of the four corners is in the black area of an image. For other physics effects like bouncing against the black area, things get more difficult. I see, thanks. ImageData:getPixel may be enough for...
by cazura
Wed Mar 18, 2020 12:12 am
Forum: General
Topic: Is it possible to create a hitbox path from an image?
Replies: 4
Views: 7064

Is it possible to create a hitbox path from an image?

Hello! I'm working in a little project and it works basically like a very simple 2d top-down racing game. In a racing game you have the circuit to follow. With my basic knowledge of hitboxes, I can only think about making the circuit as a flat image, and fill it with circles and boxes of hitbox. Now...
by cazura
Sat Feb 15, 2020 6:44 pm
Forum: Support and Development
Topic: Canvas performance is costly if I clear() and draw on it again?
Replies: 4
Views: 5030

Re: Canvas performance is costly if I clear() and draw on it again?

If you have a canvas for just the GUI/menu elements, then you can do a love.graphics.setColor before you draw that canvas to the screen, setting the opacity of the whole canvas' contents. That said, setting, clearing and drawing to a canvas is NOT any more costly than what löve already does to the ...
by cazura
Sat Feb 15, 2020 6:31 pm
Forum: Support and Development
Topic: Canvas performance is costly if I clear() and draw on it again?
Replies: 4
Views: 5030

Canvas performance is costly if I clear() and draw on it again?

Hi, I want to know a little more of Canvas performance. I know that creating new canvas is something you do only once. But what if I need to update it? If I put all the "set canvas/clear/draw" operations in a function and call it when it needs to be updated, is it bad? I have elements that...
by cazura
Mon Feb 10, 2020 11:46 pm
Forum: Support and Development
Topic: How do I do simple http requests with love/lua?
Replies: 1
Views: 4381

How do I do simple http requests with love/lua?

Hello! First, I know Love is not meant for web, so I am sorry if my question should not be asked here. Here is my issue: I want to get time from http://worldtimeapi.org/ By running http = require("socket.http") tempVar = http.request("http://worldtimeapi.org/api/timezone/Europe/London...
by cazura
Fri Feb 07, 2020 11:02 pm
Forum: General
Topic: What code editor do you use ?
Replies: 195
Views: 294799

Re: What code editor do you use ?

Notepad ++ for president!
by cazura
Wed Jan 15, 2020 8:09 pm
Forum: Support and Development
Topic: [IMPORTANT] Problem with the game distribution.
Replies: 13
Views: 10080

Re: [IMPORTANT] Problem with the game distribution.

2) They can do it anyway, but that's a matter of copyright law, not of whether the source is part of the program. A curiosity if I may ask, and if you, of course, would know the answer. But, is this true for all engines? Corona, GDevelop, Unity, Unreal, Blender, and so on. Like... If the person don...
by cazura
Wed Jan 15, 2020 2:17 am
Forum: Support and Development
Topic: [IMPORTANT] Problem with the game distribution.
Replies: 13
Views: 10080

Re: [IMPORTANT] Problem with the game distribution.

Yeah usually, but the thing is, there's nothing of value to be found unless you're a beginner. Well, I really am a beginner. I got the demo from Blue Revolver. The structure and code is very well organized, divide in several lua files and stuff. It really puts a perspective against my poor mister &...
by cazura
Wed Jan 15, 2020 12:05 am
Forum: Support and Development
Topic: [IMPORTANT] Problem with the game distribution.
Replies: 13
Views: 10080

Re: [IMPORTANT] Problem with the game distribution.

Wait... So it is possible to extract and have access to the source code of Move or Die, Blue Revolver, etc? Sounds a nice way of learn and see how people do things.
by cazura
Mon Jan 13, 2020 3:44 pm
Forum: Support and Development
Topic: [SOLVED] How to create a simple encryption for a lua table?
Replies: 7
Views: 7887

Re: [SOLVED] How to create a simple encryption for a lua table?

Binser worked! Also, love.data is not supported in love.js (It's version 11). So, I went to find some external libraries. I ended up with binser for serialization, http://lua-users.org/wiki/BaseSixtyFour to encode and https://github.com/SafeteeWoW/LibDeflate for compression/decompression. Again, tha...