Questions about making .exe files and layering shapes

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
User avatar
EndlessNecro
Prole
Posts: 1
Joined: Thu Feb 28, 2013 2:41 pm

Questions about making .exe files and layering shapes

Post by EndlessNecro »

So, two questions, quite new, so may sound stupid, but honestly have no clue how to do the following
1) Turning .love files into .exe files
2) Attempting to layer shapes
So, starting with 1, I looked at the wiki, and managed to make a .love file, now I'm trying to make it a .exe file, I've seen this
copy /b love.exe+game.love game.exe
Thing on the wiki, but when I run it, it says "the system cannot find the file specified", not quite sure what to do.
Now, to 2, In my little game, I'm using all shapes drawn by love2d, however, my issue comes in when I try and draw a basic "upgrade" menu over the screen, and some shapes bleed through over top of it, obscuring the menu. Any information on how to properly layer shapes is good.
Anyway, thanks for any help.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Questions about making .exe files and layering shapes

Post by Boolsheet »

You have to substitute love.exe with the path to your love executable. If you used the default path of the installer, check "C:\Program Files\LOVE" or "C:\Program Files (x86)\LOVE". Same with game.love. Substitute it with the path to your game file.

Code: Select all

copy /b "C:\Program Files (x86)\LOVE\love.exe" + "C:\path\to\mygame.love" game.exe
As for the other issue, think of it as a canvas that you always draw on top. That means that the first thing you draw will be behind everything and the last thing will be on top. Try to draw the menu last.

What actually goes on inside the hardware is a bit more complicated. By default, it is just one buffer and every rasterized shape and image gets blended with it according to the blend mode.
Shallow indentations.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 7 guests