Hello there !

I want to code a little incremental game just for me and some friends, and i started prototyping this in Go (because i know how to use it) but i was thinking that maybe run it in a browser and then use typescript would be better

I have no experience in making games and in javascript, i mostly code for backend and math stuff (my favorite gui is a terminal), and when i need a real gui i use pure html page edited by backend

So i was wondering what would be easier between learning making game in Go, or learning JS/TS for an incremental game (pictures and numbers and text, maybe little animations), and if javascript is still relevant to learn

Thanks !

(Also im a student, so my knowledge of the professional dev world is quite limited, forgive my approximative wording :b)

  • Fargeol@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    2 days ago

    (Developer here) HTML, CSS and JS are always good to know anyway. For a video game, it depends if you want something really “video-game like” (in which case I advise to use a game engine the can be run in a browser, like Godot) or just an interactive interface with buttons, images and text.
    For the latter, I would advise to use one the numerous JS frameworks (Solid, Svelte, Vue or whatever) but if you don’t know JS at all, learning it from scratch could be good. Plus, you can make really pretty animations with CSS!
    I know Go is a possibility for browsers, but I’m pretty sure it’s not the best to make a game.

    TLDR;

    • You want a real video-game --> Godot
    • You want a web interface --> SolidJS/Svelte (Both are good and easy to learn so the choice is yours) + CSS for animations
    • roux2scour@jlai.luOP
      link
      fedilink
      arrow-up
      1
      ·
      16 hours ago

      Thanks ! I tried Godot once but the ui didn’t click with me, idk, i think i prefer when everything is a line of code, but maybe i was not in the right mood at that time, i should maybe give it anither chance someday