DEV Community

Ajinkya Borade
Ajinkya Borade

Posted on

8 2

I built a 2D RPG Game in GO [GoLang]

All I did in my last 9 years web development was use JavaScript and javascript only. But I wanted to learn something new.

I was confused between Rust or GO. Rust is definitely faster than GO, Go is easy to learn and easy to write and maintain. (in my personal opinion)

And so I choose GO

I recently started learning Go (GoLang) and I thought why not start learning by making a 2D game.

I'm using PixelGL which is almost identical to Raylib.

so far my game has;

  • State Machine (for changing between different maps, anime state, enemies)
  • Storyboard for creating animations (also included AnimationController, Tween)
  • load sound, play sound on certain actions (above video is not updated)
  • Welcome Title Menu screen
  • Game Over screen
  • In Game Menu
  • Selection Menu, Tooltips
  • Combat Arena
  • Attack Options (Attack, Item, Magic, Flee)
  • Attack randomizer (e.g. Miss, Critical, Dodge)
  • Load Town Map (world map)

Im not saying its a good game or its perfect.
All I'm saying is I'm enjoying learning GO. And somehow developing games is more addicting than playing one.

I just hope more people start using GO for game development its way way Better than Python and 1000x times better than Java

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (2)

Collapse
 
raulismasiukas profile image
Raulis Masiukas •

The you'r in the thumbnail really triggers me. Really cool seeing golang used for game dev

Collapse
 
ajinkyax profile image
Ajinkya Borade •

Hahaha you can always do a PR code is on GitHub 🤪

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up