How do I make a shape? Help please.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Ziggy2764
Prole
Posts: 6
Joined: Sat Aug 25, 2012 3:45 pm

How do I make a shape? Help please.

Post by Ziggy2764 »

I need to make a shape for a game I'm making, but I don't know how. All I want to do is make a simple rectangle/square. Is that possible to do (without making an image and inserting the image)? If so, can someone please tell me how? I searched everywhere, but I couldnt find how.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: How do I make a shape? Help please.

Post by bartbes »

Did you even make an effort?

(In case you didn't figure it out, every single word in that is a link to a different function for primitive drawing.)
Wojak
Party member
Posts: 134
Joined: Tue Jan 24, 2012 7:15 pm

Re: How do I make a shape? Help please.

Post by Wojak »

Ziggy2764
Prole
Posts: 6
Joined: Sat Aug 25, 2012 3:45 pm

Re: How do I make a shape? Help please.

Post by Ziggy2764 »

Thanks guys, I got it now! :D

@bart Yes I did make an effort. I used love.graphics.rectangle(mode, x, y, width, height), but I forgot to add width and height. Fail. I just started learning Love2D yesterday, I dont know everything yet, but I did pick up on it very fast, because I know many other programming languages, including Lua. :P
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 10 guests