beefytech / Beef

Beef Programming Language
http://www.beeflang.org
Other
2.52k stars 130 forks source link

Restarting the game by importing the library does not work #1787

Closed fredOnGitHub closed 1 year ago

fredOnGitHub commented 1 year ago

Hello,

I tried to redo the game by importing the library but without success.

I was able to import SDL2 "Add from Installed" but it is not recognized.

Thank you for your help.

c

disarray2077 commented 1 year ago

After the "Add from Installed", you must also add the project as a dependency. Right-click the "SpaceGame" project, go to "Properties...", click "Dependencies", and check the checkbox for "SDL2".

fredOnGitHub commented 1 year ago

Thanks a lot. I modified Target directory = $(WorkspaceDir)/dist Target name = $(ProjectName)_d like the original and created a "dist" dir and copy images and sound dir into dist and that's OK.

Where can I find these key words WorkspaceDir and ProjectName ? I found only this. And If I work with Mac or Linux (so without the IDE), what are the command line to do Target directory = $(WorkspaceDir)/dist Target name = $(ProjectName)_d ?

bfiete commented 1 year ago

https://www.beeflang.org/docs/projects/

You need to modify the project files, there's no command-line arguments for those. The project file format is not currently documented but you can pretty easily get the gist by just viewing other project files included in the GitHub repository.

fredOnGitHub commented 1 year ago

Thanks for your answer.

I watched BeefProj.toml and I saw.

I do all things (debug, genrerate BeefProj.toml, test...) with Windows IDE and just export the project in Linux or Mac and I make BeefBuild -run or BeefBuild -clean to get an automatic 64 bits program ?