Re: Ported a Python game to Nim

2020-01-17 Thread dom96
> I don't think it makes sense for a game to be in someone's ~/.nimble/bin (or > equivalent), and I don't expect anyone to use this project as a library. Why not? If someone wants to play your game they may want to install it into their PATH :) > Can the user provide the name of a text file

Re: Ported a Python game to Nim

2020-01-17 Thread shashlick
Nimble is not just a package manager, it is also a build tool so if you want something like requirements.txt, Nimble is the way. Many binaries are distributed with Nimble since you can describe the dependencies with specific versions or ranges. It does not have to be installed into

Re: Ported a Python game to Nim

2020-01-17 Thread Jjp137
Aren't Nimble packages supposed to be libraries and other tools, such as nimterop's toast binary, that help people create code? I don't think it makes sense for a game to be in someone's ~/.nimble/bin (or equivalent), and I don't expect anyone to use this project as a library. Installing a game

Re: Ported a Python game to Nim

2020-01-17 Thread SolitudeSF
thats why you should make it a proper nimble package.

Re: Ported a Python game to Nim

2020-01-16 Thread Jjp137
Ah, right. The version of nimgame2 you currently have is either not from the devel branch, or it was from the devel branch but is now too old. Just run `nimble install nimgame2@#devel` to fix that. You'll also need to update sdl2_nim or else you'll run into [this

Re: Ported a Python game to Nim

2020-01-16 Thread SolitudeSF
last-gardener/src/pattern.nim(73, 16) Error: type mismatch: got this one can be fixed by importing random, but then this error pops up. last-gardener/src/scenes.nim(104, 9) Error: attempting to call undeclared routine: 'initScene'

Re: Ported a Python game to Nim

2020-01-16 Thread Jjp137
That's odd. Can you revert any changes you made and show me the compiler errors? Also, what version of the Nim compiler are you using? I tried compiling it in a Linux VM that initially didn't have Nim 1.0.4 in it and it was successful, so the error message will be very helpful in figuring out

Re: Ported a Python game to Nim

2020-01-16 Thread SolitudeSF
doesn't compile. i tried fixing the errors, but each time a new pops up. you probably pushed old version or missed some file.

Re: Ported a Python game to Nim

2020-01-15 Thread treeform
Wow that looks really good!

Ported a Python game to Nim

2020-01-14 Thread Jjp137
I recently finished porting a game that a friend and I wrote together a few years ago from Python to Nim, and I released the initial version (0.1.0) of this port. The game, which is titled The Last Gardener, was originally created for PyWeek 21, a week-long challenge in which submitted games