Hi,
For a while now I have been looking into Nim to see if I could use it for game development, and it resulted in a little game library I created with Nim using sfml and opengl.
You can find it on github: https://github.com/rnentjes/nim-ludens
Take a look at the Ninvaders example game to see how easy it is to make a simple game with it.
Cheers,
Rien
Hi, I downloaded the zip and then ran imrod c helloworld.nim in example folder. I downloaded opengl and sfml using babel update (also did it with nimble install). The packages were installed and was able to successfully create helloworld.exe.
However when I execute helloworld.exe, it throws following error: could not load: csfml-graphics-(2.|2.1.)dll
I tried following options
Still the error appeared. I am using Windows 7 64 Bit.
Appreciate your help.
It shouldn't be a problem to run a 32 bit program (or dlls) on a 64 bit windows system. I had it running with the dll's in the dlls directory.
I'll see if I can add an example run.bat file.
This was also on Window 7 64 Bit. Let me know if it still doesn't work.
I am wondering why copying the dll's to the system32 dir didn't work, so maybe there is more to it. The remark of Araq makes me wonder if your nimrod compiler makes a 64 bit executable and mine a 32 bit. But I don't remember changing settings to that effect.
I added some compilerun.bat files in the exeample directories.
Running one of these after unzipping should be all that is needed if the nimble dependencies are installed.
Thanks for all the answers. I loaded the latest version and executed compilerun.bat from helloworld folder. The compilation is successful but it still throws the same error. No luck.
I assume it is related to what Araq mentioned about 64 & 32 bit dlls. In that case is there a way where we can provide compile option to nimrod to create exes for only 32 or 64 bit machine?
If that's the case then using the 64 bit dll's should solve your problem. They are available for download here:
http://www.sfml-dev.org/download/csfml/CSFML-2.1-windows-64bits.zip
Finally I was able to run it by uninstalling nimrod and then installing 32bit version of nimrod.
Thanks for the support.