(Note: feel free to use the peertube instance, that would be cool 🥺)

I made a Map game in Java. There is no gameplay though so you just kinda look at it go.

Each pixel is a province on zoom level 1, and its color depends on the map mode and if it is in bounds (inside the actual map and not above or below).

The map is randomly generated, and each province has its own height, temperature and moisture value. The color of the province is calculated using these values.

Also, the map loops horizontally seamlessly since the height, temperature and moisture values are taken from the surface of a cylinder (without the top and bottom surfaces) instead of just a rectangle.

On map generation states (I call them that instead of countries to future-proof for civil wars, since for example Taiwan is not its own country but a participant in the civil war of a country) are created one per land province, and they attempt to expand their borders by taking bordering land from one of their neighbours every fixed frame (they don’t all do it every fixed frame, only a bunch that are randomly selected).

Mapmode 2 is the borders mapmode, provinces are colored using their state’s color if they border a state that is not their holder.

Mapmode 3 just colors every land province to its holder’s color.

I hope you find it interesting, it is really fun to make this kind of stuff! 😊

  • Al-AndalusianOPM
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I tried several programming languages, and I felt very comfortable with Java.

    I don’t really have a long term plan tbh, I’m kinda doing whatever feels good, though I have the vague target of making it into a grand strategy game.

    I thought about making a gsg because I feel paradox’s games are a bit too “arcadey” for my taste. I would like for this project to become a realistic (so to speak) geopolitical game.

    How deep the economy, military and politics of the game is still to be seen, but I think I will focus more on politics and military, while making a somewhat acceptable economy.

    We’ll see.

    • nephs
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      If you like Java, I’d suggest playing with Kotlin, which has interop with Java but a more modern and concise approach.

      Another interesting approach is C#, which is very similar in terms of syntax, but with the dotnet framework to transition for multiple platforms and few extra bits of functionality.

      I’m a js/ts web person, with some love to spare for rust and flutter/dart.


      Recent paradox games are definitely arcadey. But have you played vic2? I didn’t play vic3 still, but vic2 is a beautiful world economy politics military simulator.