ChrisNeedham24 / microcosm

A little 4X game written using Pyxel.
GNU General Public License v3.0
11 stars 8 forks source link

Use game icon for the in-game Pyxel icon too #127

Closed ChrisNeedham24 closed 10 months ago

ChrisNeedham24 commented 1 year ago

In #125, I attempted to also use the created icon for the in-game pyxel icon, but I was unsuccessful. The provided 'advanced API' Pyxel method pyxel.icon() seems to take a hexstring for an image and a scale, but my attempts using binascii.hexlify() on the read bytes did not seem to work. The icon seemed to just be colours, not entirely random though, so I suspect the expected format is slightly different to what I supplied.

The issue is that there's no documentation on the Pyxel side for this method, so a bit of trial and error will be required.

As an additional part of this ticket, the icon can be added back to the Windows build, assuming it doesn't trigger the virus scanners.

ChrisNeedham24 commented 1 year ago

(You can also improve the icon in this issue if you want)