Skip to main content

Setting up revision control for Fasteroids

One of the hobbies I've taken on later in life is developing video games. This isn't actually all that new - over 30 years ago I developed several small games for the Commodore 64 in assembler and BASIC. Of the games I've developed so far the one I've most actively been working on is Fasteroids. Fasteroids is my re-spin of the classic Atari game Asteroids. Over a year ago I put several months of concentrated effort into developing Fasteroids. I took a long hiatus from development, but I started working on Fasteroids again recently.

One thing I realized looking at Fasteroids a year later is that I was going to make some major changes, but I also wanted to keep a copy of the code as it is now. The best way to do that seemed to be to put the code under revision control. GameMaker Studio 2, the engine I'm using, has some revision control features built-in to the menu that seem to depend on git. But the user interface doesn't appear to be used by the majority of developers who instead seem to prefer the git command-line interface.

Step number one, download git. Step number two, download the vim editor. Step number three, open a bitbucket account (note: 10 minutes later I still don't have a verification email - did their server eat it? I double checked that I typed my email address correctly).

Step number four create a new repository. Step number five set up git bash:

git config --global user.name "chaslinux"
git config --global user.email "chaslinux@gmail.com"

Several other steps were required between the Gamemaker UI and git. With a project opened I needed to run:

git remote add origin <fasteroids git repo location>

I was following a tutorial which suggested:

git push -w origin master

This didn't work because there's no -w switch in git. Trying it without the -w switch resulted in an error, so I looked through the git options and found the -f force switch to force this to be the master. (The error suggested I couldn't push it as origin because files existed on the server already).


Comments

Popular posts from this blog

Our media encoding process

It occurred to me that I started posting to debugfs as if I just left off from my old domain (a story for another time). I had something in the order of 300 articles on the site so naturally posts on this site don't have the context they had on the old site. When I first started debugfs I talked about the Handbrake command-line script I run on our KODI server to shrink the size of Blu-rays (since they can be huge). I didn't really get into the details of the whole process and I've since changed how I rip and encode media. When I buy a DVD/Blu-ray the first step I take is to back-up the media using MakeMKV. MakeMKV is great for dumping both Blu-ray and DVD content to a .mkv file. I prefer .mkv over .mp4 because I love subtitles and the .mp4 container only lets you "burn" one subtitle into the file. Files in an .mkv container can contain as many subtitles as the DVD/Blu-ray has. I normally rip these on my desktop workstation which has a late 2013 AMD A8-5...

CentOS 4.8 in Virtualbox 5.1.x

Years ago I was part of a project that was developed on and ran on CentOS 4.8. The software we developed was only used in-house so we were able to work around any bugs we found. The development cycle was extremely short, 4 months, considering the end result. While we've backed up the source frequently over the years the software really never got a major facelift. I spent a bit of time over the years making some minor changes (I gave the menu a facelift changing it from rotating gifs to CSS, and made some code changes to deal with a tax shift that happened years ago), but what the project really needs is a major overhaul. One of my goals right from the outset was to open source the project, but this didn't happen because I was simply too swamped with other things to completely audit the code. Also I wanted to simplify the project before exposing it to the world. Initially we based the project on an eCommerce suite (OSCommerce). At the time we were using that suite for an...

That itch to upgrade again - Ryzen 5 2600G?

Lately I've been collecting a lot of movies. Each week Maria and I set a small budget for personal "wants," much of mine has gone to DVDs and the occasional Blu-ray disc. I've been lucky to find some really great deals, but it's got to the point where I'm backed up because ripping all the media is taking more time than I have on evenings and weekends. From what I've read ripping Blu-rays (unless you're also re-encoding them) is entirely dependent on the Blu-ray drive - there's little to be gained by upgrading to a new CPU/motherboard. I use a licensed copy of MakeMKV to rip my Blu-rays. Then I transfer the ripped mkv to our KODI machine and using HandbrakeCLI (the command-line version of Handbrake) to compress the large Blu-ray file to a smaller file. I could compress the file on my desktop, but my AMD A8-5600K APU doesn't have the same power as our KODI machine (which has an i7-2600 and is cooled with a Corsair H60 water cooler). The...