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

Converting an 82 year old to Xubuntu GNU/Linux

A few weeks ago Irvin (not his real name) came into our computer recycling project. Irvin is 82 years old. He walks with a walker and somehow managed to lug a fairly big desktop Lenovo Thinkcentre down to our recycling project. Irvin had been to several computer stores over the past few months trying to get help with his computer. Unfortunately it seems that he wasn't able to get the help he needed despite paying repeatedly for help. Irvin doesn't speak and didn't appear to understand much English, his native language is Russian. Initially one of our volunteers spent a couple of hours over two weeks trying to help Irvin with different issues he was running into. Irvin's computer was old, even by our refurbishing standards - it was running the Lenovo version of Windows XP. Many of the issues Irvin was running into were due to the fact that he was still running Windows XP. Communication was our first issue, but Google Translate seemed to work well enough that we we...

I might be upgrading sooner than expected

It looks like I might be upgrading my home desktop workstation sooner than I wanted to. That system was put together December of 2014 and has: AMD A8-5600K APU Gigabyte  F2A85XM-D3H 16GB GSkill DDR3 1866MHz RAM 2GB NVidia GeForce GTX 650 TI Boost video card (currently a 1GB Radeon HD 6670 for testing) 500GB Samsung 860 SSD (Xubuntu Linux) 1TB WD Blue Drive (Windows 10) Corsair 430 Watt PSU The system has been relatively stable over the years but has recently started to develop a few issues: When recording audio in Xubuntu the audio is stuttering. This may be due to a Pulseaudio update since I don't have the issue in Windows 10 (and I do have the issue with multiple audio sources - web cam, microphone, and in several recording programs: audacity, obs studio). More concerning the system suddenly reboots in the middle of playing Diablo III. I suspect the power supply might be to fault, but if it's not this might mean more expensive purchases. I wanted to hold off to...

If you haven't bought an SSD you really should

I just finished upgrading my home workstation from Xubuntu 18.10 to 19.04 and the upgrade not only went smoothly but finished in less than 30 minutes. This might seem like a long time, fresh installs can literally be minutes when using a flash drive to install to an SSD, but upgrades usually take a long time. Lately when someone asks what they can do to speed up their computer I almost universally recommend they upgrade to an SSD over upgrading RAM/CPU/etc. One of our local computer shops has been carrying a 120GB SSD for $26.99. I bought one of these SSDs about 2 years ago for $69.99 and at the time felt it was a pretty good deal. Although the write speed on this particular SSD is only 350Mb/s it's still much better than the speed of a 'spinning rust' hard drive. During a distribution update more than a thousand files get updated and often more than 2,000 files are downloaded. The process also involves deleting some packages, and unpacking a number of programs befor...