What these games don’t have, as far as I can tell, is any moving or animated objects. You can check out this multiplayer chess game or dominoes game, both written with tview. I wanted to be able to access and update the exact x and y coordinates of elements in the terminal, and as far as I could tell, that wasn’t easily possible in tview.ĭepending on what kind of game you want to make, Tview could still be a great choice. It has a grid system that I figured I could take advantage of to act as my game world, but that didn’t turn out to be the case. Originally I thought I would be able to use the tview package I’d used for my last terminal project. Create a ball that “bounces” when it reaches the edge of the screen.In this first article we will learn how to: I built this to learn! If you want a project to learn more about concurrency in Golang, building terminal UIs, or stumble through the very basics of creating a game, then you are in the right place! Over the next few articles, we’ll build a version of Pong that we can play in our terminal. I barely know Golang and I don’t know anything about game development or design. This also seemed like a great project to help me start to wrap my head around Go routines and Channels, concepts that were completely new to me coming from Ruby and Python. There are only three sprites on screen, the level is always the same, and the game logic is pretty easy to code. I’m no game designer, so I decided to try to rebuild something that would be relatively simple to figure out and reproduce, but still give me a chance to deepen my Golang knowledge. After I was done, a colleague sent me a link to a list of terminal games, which got me interested in trying to build one myself. This was a great first project to get me used to working with Go. Previously, I wrote an article where I built an app for storing contacts that ran in the terminal using the tview package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |