Search found 13 matches

by fparedesg
Sat Dec 17, 2011 11:04 am
Forum: Support and Development
Topic: White Screen upon Startup
Replies: 13
Views: 6591

White Screen upon Startup

Hi there! I've been trying out the physics module, just so I can get the hang of it. However, when trying to create a polygon shape, it fails. The löve file simply opens, shows a white screen, and crashes/closes. I've removed all the non-error-causing code, and am left with this: function love.load(...
by fparedesg
Sat Dec 17, 2011 10:54 am
Forum: Support and Development
Topic: Turrets
Replies: 9
Views: 3608

Re: Turrets

The coordinate system in löve inverts y, so that 'down' is positive and 'up' is negative.

Try changing the code to this:

Code: Select all

angle = math.atan2 ( dx, -dy )
by fparedesg
Thu Dec 15, 2011 9:19 am
Forum: Support and Development
Topic: Moving object based on its rotation.
Replies: 4
Views: 5639

Re: Moving object based on its rotation.

The following code creates a white ship in an 800x600 space. The ship is formed out of three triangles (the ship's three spikes). dx: Horizontal position on the map, with 0 being the leftmost side and 800 being the rightmost side. dy: Vertical position on the map, with 0 being the top side and 600 b...