dougmencken / HeadOverHeels

The free and open source remake of the game “Head over Heels”
GNU General Public License v3.0
32 stars 10 forks source link

Port to Allegro 5 #32

Closed dougmencken closed 7 months ago

dougmencken commented 6 years ago

Allegro 5 is complete rewrite with a new API and hardware accelerated graphics

dougmencken commented 6 years ago

the first animation of Head over Heels drawn via Allegro 5

headoverheels-allegro5-first

dougmencken commented 6 years ago

cap png head png

folder with images

bars-ew 0th frame gamedata/gfx/item.png/bars-ns.png

bars-ns 0th frame gamedata/gfx/item.png/bars-ns.png

riderx bars

bars-ew.pcx.png bars-ew.pcx.png.png bars-ew.pcx.png & bars-ew.pcx.png.png

-DWANT_NATIVE_IMAGE_LOADER:BOOL=OFF -DALLEGRO_CFG_WANT_NATIVE_IMAGE_LOADER=0 \

anyway, I'd say the .png loading issues in this case are a known issue (native loaders suck, use libpng...) and you can move to the next one! :) elias @ #allegro @ irc.freenode.net

dougmencken commented 8 months ago

so then maybe test it with the current allegro5 and close ?🤔😉

dougmencken commented 7 months ago

on my side, allegro 5.2.9.1 asked for opengl and xcursor

sudo apt install libgl1-mesa-dev libxcursor-dev
dougmencken commented 7 months ago

well, the game works with allegro5

Screenshot from 2024-03-19 10-13-39

but here are the font letters

Screenshot from 2024-03-19 10-14-02

dougmencken commented 7 months ago

aha, it was me who reduced transparency (zero alpha) to the single color

https://github.com/dougmencken/HeadOverHeels/blob/ee5ee656aa09a282a1797670a861dc1011facb8f/source/WrappersAllegro.cpp#L158

dougmencken commented 7 months ago

done

Screenshot from 2024-03-19 19-39-39

I’m closing this issue

any other gotchas like “transitions between screens are very slow with allegro5,” “it shows the crocodile icon,” et cetera go to new issues