Live data from Hacker News

Show HN: R-cade, a simple arcade game engine for Racket

github.com

11–20 of 25 posts

Re: Show HN: R-cade, a simple arcade game engine for Racket

#11
post #8

Is anyone familiar with the stand-alone executable export[1] for Racket? I did a Ludum Dare and browsed a submission where a child had spent a lot of time and effort making a project in PyGame, but found it hard to distribute because he didn’t have the technical know how of converting it to something like a windows `.exe` file at the time. If this helps youngsters learn and explore programming the way the Commodore 6…

You can create an executable from the menu in DrRacket https://docs.racket-lang.org/drracket/create-exe.html I think that not all the options are available, but it is easier.

Re: Show HN: R-cade, a simple arcade game engine for Racket

#12
post #8

Is anyone familiar with the stand-alone executable export[1] for Racket? I did a Ludum Dare and browsed a submission where a child had spent a lot of time and effort making a project in PyGame, but found it hard to distribute because he didn’t have the technical know how of converting it to something like a windows `.exe` file at the time. If this helps youngsters learn and explore programming the way the Commodore 6…

raco exe will give you an executable that's dynamically linked, so you also need to run raco distribute [0] to get a folder full of the libs you'll need for a "standalone" distribution. (Unless you can depend on Racket being installed).

I've used the two to make Linux and Windows (via Wine) distributions without any issues. It's fairly painless.

[0] https://docs.racket-lang.org/raco/exe-dist.html

Re: Show HN: R-cade, a simple arcade game engine for Racket

#14
I am trying to run this and am running into some issues. I'm a newbie so please help me get going.

First, is this supposed to run from DrRacket? I installed the r-cade succesfully but when I run this, I get error:

ffi-lib: couldn't open "csfml-audio-2.dll" (The specified module could not be found.; errid=126)

Re: Show HN: R-cade, a simple arcade game engine for Racket

#15

I am trying to run this and am running into some issues. I'm a newbie so please help me get going. First, is this supposed to run from DrRacket? I installed the r-cade succesfully but when I run this, I get error: ffi-lib: couldn't open "csfml-audio-2.dll" (The specified module could not be found.; errid=126)

You need to download and install the CSFML libraries yourself. For audio you also need OpenAL and libsndfile. Links to all are in the README.

Re: Show HN: R-cade, a simple arcade game engine for Racket

#16
post #15

I am trying to run this and am running into some issues. I'm a newbie so please help me get going. First, is this supposed to run from DrRacket? I installed the r-cade succesfully but when I run this, I get error: ffi-lib: couldn't open "csfml-audio-2.dll" (The specified module could not be found.; errid=126)

You need to download and install the CSFML libraries yourself. For audio you also need OpenAL and libsndfile. Links to all are in the README.

Thanks. I am currently stuck at this step. I did the raco pkg install csfml and apparently it was installed but i get the same error. Also I tried downloading the csfml bindings but don't know what to do with it as the instructions assume prior knowledge or are too cryptic to me. I'm giving up for now. Maybe I'll try again maybe not.

Re: Show HN: R-cade, a simple arcade game engine for Racket

#17
post #15

Earlier quoted context omitted.

You need to download and install the CSFML libraries yourself. For audio you also need OpenAL and libsndfile. Links to all are in the README.

Thanks. I am currently stuck at this step. I did the raco pkg install csfml and apparently it was installed but i get the same error. Also I tried downloading the csfml bindings but don't know what to do with it as the instructions assume prior knowledge or are too cryptic to me. I'm giving up for now. Maybe I'll try again maybe not.

By the way, this hurdles won't help with kids picking this up. Sadly..

Re: Show HN: R-cade, a simple arcade game engine for Racket

#19

I love racket. Does anyone know of a Racket to Javascript compiler. Would love to be able to create Racket powered web games with this for educational purposes

I haven't used it (yet) but RacketScript is a thing https://github.com/vishesh/racketscript
Post reply on HN