7
\$\begingroup\$

I merged my game.love file and the love.exe with the command copy /b love.exe+app.love game.exe. But the resulting executable has the default LÖVE2D icon.

Is there a way to change that icon to another one?

\$\endgroup\$
0

2 Answers 2

3
\$\begingroup\$

I don't know much about Love so I don't know if there is a built-in way, but you can change the icon of an executable file using a variety of icon editing software. Last time I did this in days of yore my weapon of choice was IconForge but I'm sure there are other tools available now (like these).

\$\endgroup\$
2
  • \$\begingroup\$ Glad to help, but give it a little time before accepting an answer in case someone else comes along with a better approach. I don't use Love myself. \$\endgroup\$
    – jhocking
    Commented Apr 13, 2012 at 18:18
  • 3
    \$\begingroup\$ It looks like that's the way it's done. \$\endgroup\$ Commented Apr 13, 2012 at 22:13
2
\$\begingroup\$

The steps below are also covered in a video tutorial (icon topic starts at 2:22).

  1. Create an .ico file using GIMP, you can use the game.ico or love.ico included in the 32bit redistributable of LÖVE as a template.
  2. Rename your .exe file to nonsense.exe (explanation below).
  3. Drag the .exe file into Resource Hacker, unfold Icon Group and right-click the only item in it. Select "Replace icon ..." and select the .ico file you created.

    resource hacker screenshot

  4. Press Save (floppy disk icon).

  5. You might not see the change yet. Rename nonsense.exe to yourgamename.exe and it should become visible.
\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .