Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Mr. Roboto

Sign in to follow this  


I spent this morning doing the robot scrapyard level, and the ship invasion level. At one point in the game, your ship is invaded by robots. Since they are robots, they keep the atmosphere at vacuum level, killing you when you return to your ship.

You then are cloned as a robot, and must either stay in disguise or fight your way through the scrapyard level in order to find the parts to repair your ship & leave.

It was a bit complicated to get all the spawning / saving / restarting / cloning stuff working in a special way for these two levels, since normally you go back to the ship after each level. In this case, I made a special 'invaded ship' level with robots on there, and missing equipment.

I revisited the accuracy code today, and improved that quite a bit. There are two steps to the accuracy - the first is your gun's aim getting displaced by a random vector each game tick - this increases with your velocity and your gun's default accuracy, along with any switching weapon penalty, and the per-shot penalty.

Next is your character's ability to restore the accuracy error. Each tick, he figures out what the restoring vector is needed to fix the aim, and your current accuracy percentage is used to scale this vector, so 100% accuracy will fix the aim perfectly.

The old system was similar, but had characteristics such that your aim tended to wander off to the side for a while during low accuracy situations. The new code doesn't have that issue, and is more robust to varying frame rates.

This also helped out the AI, which was having trouble aiming while moving. Now I can probably skip putting in code for the AI to hold fire when accuracy gets too low.

I also made a few more gui tweaks, like making the unused inventory slots less noticable, and adding a background for the health / shield indicators.

Sign in to follow this  

1 Comment

Recommended Comments

This campaign thing sounds pretty cool! It's too bad my computer could never run the beta :)

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!