rguilmain / tacktx

A hex-based tactics game
MIT License
0 stars 0 forks source link

Determine architecture #10

Closed rguilmain closed 9 years ago

rguilmain commented 9 years ago

@tderensis @timothy-a-bertram Plenty of changes to come! My current thought is that anything our source code will need to import should live somewhere under src. Because our assets will be imported by our source code, I'm putting them in src/assets. Similarly, I'm planning on dividing our current collection of third party tools into src/third_party for importable modules (i.e. middleclass and any other lua libraries we'll want to use), and a top-level third_party outside of src for utilities we need for the build process, etc. (i.e. love and 7zip). Let me know if you have any questions or comments.

rguilmain commented 9 years ago

@tderensis @timothy-a-bertram We now have a build directory! This lives in the root, and has our two build scripts (and the third party tools they use) in it. When you run either script, they will create a build/dist directory with the distributable Tacktx.exe and the .dlls it needs to run.

rguilmain commented 9 years ago

@tderensis Ideally, I'd like to be able to import middleclass as 'require "third_party.middleclass"'. Currently you have to 'require "third_party.middleclass.middleclass"'. Not sure if you know how to do that; my Googling skills failed me here.

tderensis commented 9 years ago

I don't think there is a way to do that, but I made it so you can do: require 'middleclass'

rguilmain commented 9 years ago

Okay; I see what you're doing there. Looks better than what I had it set up to do, at least. Closing this card.

rguilmain commented 9 years ago

@tderensis Wait, are you sure that works? I'm getting middleclass import issues when I try to run master.

tderensis commented 9 years ago

How do you run on windows? What is the exact command? You have to run from inside the dist directory: cd dist love Tacktx.love

On Mon, Feb 9, 2015 at 11:08 PM, Rich Guilmain notifications@github.com wrote:

@tderensis https://github.com/tderensis Wait, are you sure that works? I'm getting middleclass import issues when I try to run master.

— Reply to this email directly or view it on GitHub https://github.com/rguilmain/Tacktx/issues/10#issuecomment-73641310.

rguilmain commented 9 years ago

Nah, man. I run it from the dist directory, but I don't even have love installed on my computer. build_windows.bat packages it up into an .exe.

tderensis commented 9 years ago

OK, then revert that commit and deal with the slightly ugly require statements for now.

On Mon, Feb 9, 2015 at 11:23 PM, Rich Guilmain notifications@github.com wrote:

Nah, man. I run it from the dist directory, but I don't even have love installed on my computer. build_windows.bat packages it up into an .exe.

— Reply to this email directly or view it on GitHub https://github.com/rguilmain/Tacktx/issues/10#issuecomment-73642310.

rguilmain commented 9 years ago

Done.