Live data from Hacker News

Convert SimCity 2000 cities into Minecraft worlds

github.com

61–70 of 154 posts

Re: Convert SimCity 2000 cities into Minecraft worlds

#61
post #21

Earlier quoted context omitted.

Don't get me wrong, it's not "bad" code (from a brief glance) but it's just clearly written as if it was Java code, and probably not in a usual IDE like Visual Studio, Rider or VSCode /w C# plugin (as that would typically scaffold a more C#-esque style). Here's what I've noticed so far: - Uses camelCase instead of PascalCase - Uses setter and getter methods instead of C# properties. - Uses reverse DNS namespace com.m…

Excessive use of arrays can be a sign of many things, but not of being a java developer. Perhaps a sign of having been a java developer at some point in time before 2004 but not having touched the language ever since.

An array can be much more performant than a list in many circumstances, but I agree it's a little strange to completely avoid lists.

Re: Convert SimCity 2000 cities into Minecraft worlds

#62
post #25

Earlier quoted context omitted.

SimCopter wasn't the only game that allowed you to import from SC2k -- the city import is the only notable feature of the otherwise-unremarkable Streets of SimCity[0]. [0] https://en.wikipedia.org/wiki/Streets_of_SimCity

The music, the music was the other remarkable feature of streets of sim city.

"I'm just a splatter, splatter, splatter on the windshield of life."

https://youtu.be/uqnU8wAyHdQ?t=3999

Re: Convert SimCity 2000 cities into Minecraft worlds

#63
I thought it was interesting that not only does this guy choose C# over Java but he chooses to write getter methods instead of properties

https://github.com/jgosar/mine-city-2000/blob/master/SimCity...

Completely trivial, but as a long time C# developer, this was a big pet peeve.

For City name just do

public string CityName{ get; private set; }

Based on the fact that I see capital letters in String etc, this is either old code or this guy dove head first from Java.

Re: Convert SimCity 2000 cities into Minecraft worlds

#65
That looks great!

It's C# though, so I have no idea how to build this under Linux. I also wish there was a Minetest backend.

Similar: OSM to Minecraft[0][1] (there should be another code drop soon-ish, I heard [2] they plan to move the dev effort to GitHub by the end of the year).

[0]: https://minecraft.ign.fr/

[1]: https://github.com/ignfab-minalac/minalac

[2]: video, in French: https://peertube.openstreetmap.fr/w/cLpfr5jWd9SipjJTDKDPmj?s...

Re: Convert SimCity 2000 cities into Minecraft worlds

#66

Earlier quoted context omitted.

Clint Basinger's Lazy Game Reviews always has excellent reviews of Maxis games. LGR - SimCopter - PC Game Review https://www.youtube.com/watch?v=x4mh7Pc5MSI LGR - Streets of SimCity - PC Game Review https://www.youtube.com/watch?v=zi60A2-PcpM The SimCity 2000 Retail Demo Disk for DOS https://www.youtube.com/watch?v=G2b5HRRTH70 LGR - SimCity 2000 Network Edition - PC Game Review https://www.youtube.com/watch?v=W9e3WlJ…

Clint is great!

I can't help but think your username was inspired by LGR. Put another coin in the 'HN usernames are on topic' jar.

Re: Convert SimCity 2000 cities into Minecraft worlds

#67
post #65

That looks great! It's C# though, so I have no idea how to build this under Linux. I also wish there was a Minetest backend. Similar: OSM to Minecraft[0][1] (there should be another code drop soon-ish, I heard [2] they plan to move the dev effort to GitHub by the end of the year). [0]: https://minecraft.ign.fr/ [1]: https://github.com/ignfab-minalac/minalac [2]: video, in French: https://peertube.openstreetmap.fr/w/c…

Looks like the GUI uses WinForms, which means you won't be able to build it on linux, I would wager. You may, however, be able to run an already built version of it through Wine.

Re: Convert SimCity 2000 cities into Minecraft worlds

#68
post #10

Earlier quoted context omitted.

Could you give examples of what you mean? I've had a look through and there are certainly stylistic things I'd do differently, such as using "var" and LINQ more, and capitalising method names. But it's easy enough to understand despite that.

Don't get me wrong, it's not "bad" code (from a brief glance) but it's just clearly written as if it was Java code, and probably not in a usual IDE like Visual Studio, Rider or VSCode /w C# plugin (as that would typically scaffold a more C#-esque style). Here's what I've noticed so far: - Uses camelCase instead of PascalCase - Uses setter and getter methods instead of C# properties. - Uses reverse DNS namespace com.m…

I'm saving this as it's an excellent guide for taking my dated pre-LINQ C# skills and polishing them up as need be

Re: Convert SimCity 2000 cities into Minecraft worlds

#69

I thought it was interesting that not only does this guy choose C# over Java but he chooses to write getter methods instead of properties https://github.com/jgosar/mine-city-2000/blob/master/SimCity... Completely trivial, but as a long time C# developer, this was a big pet peeve. For City name just do public string CityName{ get; private set; } Based on the fact that I see capital letters in String etc, this is eithe…

Or Unity, their flavor of C# discouraged properties for a long time, it does support them now, though.

Re: Convert SimCity 2000 cities into Minecraft worlds

#70
post #65

That looks great! It's C# though, so I have no idea how to build this under Linux. I also wish there was a Minetest backend. Similar: OSM to Minecraft[0][1] (there should be another code drop soon-ish, I heard [2] they plan to move the dev effort to GitHub by the end of the year). [0]: https://minecraft.ign.fr/ [1]: https://github.com/ignfab-minalac/minalac [2]: video, in French: https://peertube.openstreetmap.fr/w/c…

Looks like the GUI uses WinForms, which means you won't be able to build it on linux, I would wager. You may, however, be able to run an already built version of it through Wine.

Well, I wasn't too interested in the GUI anyway :)
Post reply on HN