Search found 51 matches

by Relazy
Sat Feb 28, 2015 10:10 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120185

Re: Löve "Light vs. Shadow" Engine v2

I am having trouble with rotation.. First of all if I have a "rectangle" type shadow, I get an error as "self.unit_data" is nil in body.lua 126. However when I swap the type to Image, the issue I described before shows up again. Heres a screen shot(Note: it's rotated by 180 degr...
by Relazy
Thu Feb 19, 2015 10:03 pm
Forum: Libraries and Tools
Topic: Löve "Light vs. Shadow" Engine v2
Replies: 140
Views: 120185

Re: Löve "Light vs. Shadow" Engine v2

I am having trouble with rotation.. First of all if I have a "rectangle" type shadow, I get an error as "self.unit_data" is nil in body.lua 126. However when I swap the type to Image, the issue I described before shows up again. Heres a screen shot(Note: it's rotated by 180 degre...
by Relazy
Fri Feb 13, 2015 3:06 pm
Forum: Support and Development
Topic: Image editing in love2d
Replies: 4
Views: 3053

Re: Image editing in love2d

I don't really understand what you mean by image objects. Anything from an image to a polygon this includes png images and generated polygons. The problem you describe would appear when you store all your drawn things in a large table, something like this: for I,v in ipairs(brushstrokes) do love.gr...
by Relazy
Fri Feb 13, 2015 2:47 pm
Forum: Support and Development
Topic: [SOLVED]To canvas or not to canvas.
Replies: 5
Views: 3719

Re: To canvas or not to canvas.

Thank you this has solved my misunderstanding.
by Relazy
Thu Feb 12, 2015 9:25 pm
Forum: Support and Development
Topic: Image editing in love2d
Replies: 4
Views: 3053

Image editing in love2d

We can draw rectangles 1x1 therefore we can create images just like an image editor, so.. What if we make a new canvas (our image) then we can simply draw the rectangles on it. But the problem is rather obvious.. Such a method will put a huge strain on love as at least 800x600 image objects will hav...
by Relazy
Thu Feb 12, 2015 9:16 pm
Forum: Support and Development
Topic: [SOLVED]To canvas or not to canvas.
Replies: 5
Views: 3719

Re: To canvas or not to canvas.

For the first question: There is no reason to create imageData from a Canvas. Just draw the canvas directly. If you have parallax background with multiple layers, then you need one canvas for each layer. This can still be beneficial, namely, if you have multiple images in each background layer. The...
by Relazy
Thu Feb 12, 2015 12:56 am
Forum: Support and Development
Topic: Collisions - love.physics or Hardon Collider?
Replies: 8
Views: 6301

Re: Collisions - love.physics or Hardon Collider?

If my project have a tile-based map, which one is the best alternative to deal with it? Did you have a look at STI (the link I posted)? It looks the closest to what you might want although if you dislike it then I'd say go with hardon collider. What method may be more efficient to detect collisions...
by Relazy
Wed Feb 11, 2015 11:01 pm
Forum: Support and Development
Topic: My image is bleeding out hardly. Need an aid.
Replies: 5
Views: 4503

Re: My image is bleeding out hardly. Need an aid.

Have a look at: https://love2d.org/wiki/FilterMode If you are always going to use the same wrap such as in your case as your game looks based on pixel art you may want to do the following in your load function: love.graphics.setDefaultFilter( "nearest", "nearest") Edit: Sorry I m...
by Relazy
Wed Feb 11, 2015 10:54 pm
Forum: Support and Development
Topic: Collisions - love.physics or Hardon Collider?
Replies: 8
Views: 6301

Re: Collisions - love.physics or Hardon Collider?

You may want to look at: https://love2d.org/forums/viewtopic.php?f=5&t=76983 It depends on how much physics you want to implement into your game. Hardon collider implements minimal physics and therefore may not be optimal if you are trying to implement complex physics. In your example from the c...
by Relazy
Wed Feb 11, 2015 10:33 pm
Forum: Support and Development
Topic: [SOLVED]To canvas or not to canvas.
Replies: 5
Views: 3719

[SOLVED]To canvas or not to canvas.

I wonder.. to canvas or not to canvas. :monocle: The question is rather simple. When should I use a canvas? From what I can understand, canvases are mostly used for static items such as a background item such as a tree or equivalent to minimize the effort required for love to draw the image every f...