Search found 1078 matches

by micha
Sat Nov 03, 2012 4:37 pm
Forum: Support and Development
Topic: Check if point is inside a rotated rectangle
Replies: 6
Views: 11055

Re: Check if point is inside a rotated rectangle

I have no finished code for your problem, but I hope the following can help. If you want to calculate positions from a given angle you always need sine and cosine (math.sin(x) and math.cos(x)) Look at the vector (1,0) that is the vector pointing to the right, with length 1. If you want to rotate it ...
by micha
Tue Oct 23, 2012 8:50 pm
Forum: General
Topic: How to make Platforms in games
Replies: 3
Views: 1908

Re: How to make Platforms in games

by micha
Sat Oct 13, 2012 12:50 pm
Forum: Games and Creations
Topic: Sub's Two Player Racing Demos [UNDER CONSTRUCTION]
Replies: 4
Views: 2022

Re: Sub's Two Player Racing Demos [UNDER CONSTRUCTION]

Hi, very nice. I like it. Especially that you already included a menu. One advice for the driving physics: At the moment the cars are turning with a constant speed when I press left or right. This is good, because it means, if I go fast, the car drives in a large bend, while the bend is smaller, if ...
by micha
Fri Oct 12, 2012 8:58 pm
Forum: Games and Creations
Topic: Isometric 2,5D game
Replies: 29
Views: 21141

Re: Isometric 2,5D game

Thanks frpnit for experimenting. I substituted the image for a smaller one.

Nsmurf, please try the new version I uploaded in the original post. The problem is hopefully fixed now.
by micha
Fri Oct 12, 2012 7:27 am
Forum: Support and Development
Topic: Repeating an image?
Replies: 8
Views: 5100

Re: Repeating an image?

Use image:setWrap('repeat','repeat') See here: https://love2d.org/wiki/%28Image%29:setWrap And then draw the image with a quad, that is larger than the image. quad = love.graphics.newQuad( 0, 0, largeWidth, largeHeight, imageWidth, imageHeight ) love.graphics.drawq( image, quad, x, y, ...) This, how...
by micha
Fri Oct 12, 2012 6:56 am
Forum: Games and Creations
Topic: Isometric 2,5D game
Replies: 29
Views: 21141

Re: Isometric 2,5D game

I am going to try that. The tilesheet is indeed wider than 1024 pixels. Thanks
by micha
Fri Oct 12, 2012 6:07 am
Forum: Games and Creations
Topic: Isometric 2,5D game
Replies: 29
Views: 21141

Re: Isometric 2,5D game

I am trying to find out, why Nsmurf in the above post gets these artifacts. It looks like instead of drawing the content of the image, LÖVE draws white rectangles in the size of the corresponding quads.
by micha
Fri Oct 12, 2012 5:42 am
Forum: Games and Creations
Topic: Isometric 2,5D game
Replies: 29
Views: 21141

Re: Isometric 2,5D game

I am not using a sprite batch, but quads and drawq to draw them. Question to the löve-technology-experts: Is that also causing trouble on some graphics cards?
by micha
Thu Oct 11, 2012 6:35 pm
Forum: Games and Creations
Topic: Isometric 2,5D game
Replies: 29
Views: 21141

Re: Isometric 2,5D game

Dear Community,

I am proud to announce *tatatata* the canvas free version of my code. The updated file is attached in the original post.
by micha
Tue Oct 09, 2012 4:33 pm
Forum: Games and Creations
Topic: Fake-3D tank game (early days)
Replies: 5
Views: 3453

Re: Fake-3D tank game (early days)

I am impressed. Very nice. Keep up good work.