Codementor Events

Game Development in GoLang

Published Apr 29, 2020
Game Development in GoLang

This was just my fun project, not a professional game.

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

golang game

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

Discover and read more posts from Ajinkyax
get started
post commentsBe the first to share your opinion
madhuri salunke
14 days ago

Expressability is a fundamental aspect of human communication and creativity, enabling us to convey thoughts, emotions, and ideas effectively across various mediums. By understanding its significance and embracing its power, we can enrich our interactions, foster creativity, and deepen our connections with others. Get excited about the possibility of inspiring every player with what you say. It’s almost like having a God like quality by being capable to communicate in a way that uplifts and motivates other players. Yours sincerely, game creator Marc Ferguson https://marcferguson.com/

Hello Hello
16 days ago

Submitting your website to these free https://seolinkbuilding.pro/top-free-directory-submission-sites-in-india/ sites in India can help boost your online presence, attract more traffic, and improve your search engine rankings. However, it’s essential to ensure that you provide accurate and up-to-date information while adhering to the guidelines of each directory.

dennisto12
16 days ago

A new trend has emerged in the gaming industry - the widespread use of night vision devices, as discussed in the article https://www.agmglobalvision.com/night-vision-in-video-games-and-movies-part-2. As I immerse myself in virtual worlds, I have noticed that these devices are increasingly being used to navigate dark and dangerous environments. From stealth infiltrations to intense firefights, characters equipped with night vision goggles gained a tactical advantage, forcing players to adapt their strategies accordingly.

Show more replies