ITR

LD 39

Lazy solution to an annoying problem

Ran into some limitations of unity, mainly that the .net version of the build I was using didn't support DriveInfo.GetDrives(). Since I had already written most of the game in c#, I didn't feel like starting over in a different language or engine, so I decided to go with a lazy solution.

I took the code I had written, made a new non-unity project, and created an executable that would calculate the current size of the drive, then just use System.Diagnostics.Process to run the application and read from its Standard Output. Though this made me make the game Windows only, as I didn't feel like figuring out cross-compilation. GetEXE.png

Since I already had decided to make it windows, it meant that later I could call Process.Start("explorer.exe", "/select,\"" + _path+"\"") to open the file explorer with focus on a specific item, without having to figure out the equivalent for other operating systems (not to mention testing), so I guess it worked out.

Though in all honesty, the code I've written the previous two days has been pretty bad, and I never want to look at it again. I probably could have written it a bit more modular easily, not to mention there's code that would be pretty wasteful hadn't the project been this small. WhatEvenIsThis.png

Anyways, I'd love it if you would play my game, just don't look at my source: https://ldjam.com/events/ludum-dare/39/feed-me-your-files

Small and easy improvements I should have made

For starters, I should have fixed the UI. Currently the ui-elements are always the same size, in the middle of the window, when it would have been better to have it scale evenly with the screen (always covering the same percentage of it) I was trying to do this, but gave up on figuring it out because I had more important stuff to finish in-game, then just never bothered to look more into it. Seems like I even forgot to enable resizing the window, wops.

Another quick thing would be adding some actual gameplay, as it currently stands, you just wait for energy to run out, or for more files to get deleted, which is kinda dull. A far more interesting concept would have been to have to use the energy to fight of something, making deleting files of your computer actually mean something for you.

Alternatively make it even more like an idle game and add upgrades and such, then have losing energy not be a loss-state, but rather just not being able to operate energy-driven machinery, making more of an experiment to see how much you are willing to delete to gain points, rather than to not lose the game.

I had enough time to do this, but I turned out to be too lazy, so all shame on me, lol. Here's the game if you want to try it out: https://ldjam.com/events/ludum-dare/39/feed-me-your-files