Search found 28 matches
- Thu Aug 29, 2013 9:29 am
- Forum: Support and Development
- Topic: Using Shape:computeAABB to get bounding box
- Replies: 3
- Views: 3873
Re: Using Shape:computeAABB to get bounding box
Okay then i misunderstood the function a bit, even tho it will work just fine. What i was really trying to do was finding the four corners coordinates from a rounded rectangle. I have never used AABB, before and im sorry i did not know it was common knowledge. (wiki: axis-aligned bounding box (AABB)...
- Thu Aug 29, 2013 8:59 am
- Forum: Support and Development
- Topic: Using Shape:computeAABB to get bounding box
- Replies: 3
- Views: 3873
Using Shape:computeAABB to get bounding box
Hello good sirs and madams! Im trying to figure out if a rotated box is fully inside another box using the Shape:computeAABB function to get the bounding box coordinates. My problem is, what are the translated X and translated Y values? Can someone supply a small snippet please? I couldnot find any ...
- Wed Aug 28, 2013 7:12 am
- Forum: Games and Creations
- Topic: Your Ludum Dare 27 Entries
- Replies: 72
- Views: 37181
Re: Your Ludum Dare 27 Entries
We made a parking game, spendt way too much time on the physics part of the car, but at least the code is available next time :) Top down game with physics was awkward at first because its made for side scrollers i guess. http://www.ludumdare.com/compo/ludum-dare-27/?action=preview&uid=7009 http...
- Thu Aug 22, 2013 7:02 am
- Forum: General
- Topic: Overllaping matrices
- Replies: 13
- Views: 8358
Re: Overllaping matrices
You can maybe write a small function similar to this (i dont know of an existing command to do it automatically)
pseudo function isIntersection(x,y) begin
var totalconnections = 0
if exists(x+1,y) then totalconnections = totalconnections+1)
next plx
end
pseudo function isIntersection(x,y) begin
var totalconnections = 0
if exists(x+1,y) then totalconnections = totalconnections+1)
next plx
end
- Thu Aug 22, 2013 6:58 am
- Forum: Games and Creations
- Topic: Your Ludum Dare 27 Entries
- Replies: 72
- Views: 37181
Re: Your Ludum Dare 27 Entries
Me and another colleague from work are planning on making an entry, probably with Love2d.
We are stationed on the west coast of Norway and there is gonna be beer (in case you are close by).
We are stationed on the west coast of Norway and there is gonna be beer (in case you are close by).
- Fri Feb 08, 2013 12:06 pm
- Forum: Support and Development
- Topic: trying to make a click and drag curling rock demo
- Replies: 31
- Views: 23192
Re: trying to make a click and drag curling rock demo
i think that getLinearVelocity supplies two values, the velocity change for the X axis and the velocity change for the Y axis. if love.mousereleased() == true then x,y = objects.rrock.body:getLinearVelocity() -- define the velocity change for the x and y axis. if x>1 then objects.rrock = shot elseif...
- Wed Feb 06, 2013 9:14 am
- Forum: Support and Development
- Topic: trying to make a click and drag curling rock demo
- Replies: 31
- Views: 23192
Re: trying to make a click and drag curling rock demo
If you only want the latest rock (or a rock in a sequence from 1 to 16) to be moved you could apply some kind of logic to this, like after a rock has been thrown it is locked for mouse dragging ?
- Tue Feb 05, 2013 2:24 pm
- Forum: Support and Development
- Topic: trying to make a click and drag curling rock demo
- Replies: 31
- Views: 23192
Re: trying to make a click and drag curling rock demo
Ill try to hook you up with a way to create more rocks in a simpler way, im at work right now so it will have to wait a bit. I have some code here tho that might help a bit, basically replace missiles with curlingrocks, and missile (singular) with rock or any other identifier -- this function adds a...
- Tue Jan 22, 2013 1:59 pm
- Forum: Support and Development
- Topic: trying to make a click and drag curling rock demo
- Replies: 31
- Views: 23192
Re: trying to make a click and drag curling rock demo
I can not download files from non https adresses mkaaay And no, I dont trust Google.
- Mon Jan 21, 2013 10:59 am
- Forum: Support and Development
- Topic: trying to make a click and drag curling rock demo
- Replies: 31
- Views: 23192
Re: trying to make a click and drag curling rock demo
It is possible (and preffered) if you upload the .love to the forum directly as i dont trust sources off domain