rak0njac / IcyTowerClone

This is a clone of the popular PC video game Icy Tower written in C++ using SFML.
The Unlicense
12 stars 5 forks source link

build instructions #1

Open trickpattyFH20 opened 3 years ago

trickpattyFH20 commented 3 years ago

@rak0njac can you provide an updated readme with instructions on how to build this, and on where to get the assets?

Arkanosis commented 3 years ago

Hello @trickpattyFH20, @LeftyyGD,

Maybe I can help with the build instructions. Here's what I've done on Arch Linux:

sudo pacman -S sfml
git clone git@github.com:rak0njac/IcyTowerClone.git
cd IcyTowerClone
sed -i 's@include <SFML\\@include <SFML/@' *.h
sed -i 's@static enum@enum@' *.h
g++ -std=c++11 -I. -I/usr/include *.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -o icytower

Starting the game then is as simple as:

./icytower

You'd still have to figure out where to get and put the assets, but the game is actually kind of playable without the assets; it's just all white rectangles on a black background. I have to say I'm impressed by the result: it really feels like the original game, even without the sounds and the pretty graphics. Kudos @rak0njac !

Also, if I may ask for something I think is even more important than build instructions (because we can figure out that part, ultimately): a LICENSE would allow us to know what as an author you allow us to do with your work. A free software license would be awesome! Thanks!

rak0njac commented 3 years ago

All code is public domain, do what you like with it! I struggle with time to even announce that, let alone provide build instructions! Great job!

недеља, 26. септембар 2021., Jérémie Roquet @.***> је написао/ла:

Hello @trickpattyFH20 https://github.com/trickpattyFH20, @LeftyyGD https://github.com/LeftyyGD,

Maybe I can help with the build instructions. Here's what I've done on Arch Linux:

sudo pacman -S sfml git clone @.:rak0njac/IcyTowerClone.gitcd IcyTowerClone sed -i @. @. <SFML/@' .h sed -i **@. @.@' .h g++ -std=c++11 -I. -I/usr/include .cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -o icytower

Starting the game then is as simple as:

./icytower

You'd still have to figure out where to get and put the assets, but the game is actually kind of playable without the assets; it's just all white rectangles on a black background. I have to say I'm impressed by the result: it really feels like the original game, even without the sounds and the pretty graphics. Kudos @rak0njac https://github.com/rak0njac !

Also, if I may ask for something I think is even more important than build instructions (because we can figure out that part, ultimately): a LICENSE would allow us to know what as an author you allow us to do with your work. A free software license would be awesome! Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rak0njac/IcyTowerClone/issues/1#issuecomment-927300436, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALM5D4R5VGJSXYRWGJCYEQLUD4IT5ANCNFSM5AZLCMOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Arkanosis commented 3 years ago

All code is public domain, do what you like with it!

That's an awesome gift to both the free software community and the Icy Tower community! Thank you so much @rak0njac!

I struggle with time to even announce that, let alone provide build instructions!

I know what you mean… I hope you're doing good!

qoheniac commented 11 months ago

You'd still have to figure out where to get and put the assets, but the game is actually kind of playable without the assets; it's just all white rectangles on a black background.

If you are on Linux you will probably want to replace the backslashes in the paths like this

sed -i 's/\\\\/\//g' ICYTOWERCL/*

The assets path is then ../Assets if you want to change it to /your/path/here you could run

sed -i 's/\.\.\/Assets/\/your\/path\/here/g' ICYTOWERCL/*

Don't forget to rebuild the binary by running make again after the changes.