Skeletons of a game, DirectDraw, Part 12

If you are following this blog then you probably know that I have been itching to do some sort of a simple game. In this post I will explain the bare bones of simple game which I call "Crash Marbles".

The objectives of the game are simple,

  1. Avoid contact with the evil marbles (Currently, the color of both the evil marbles and the protagonist marble is the same, I will change that soon)

  2. Collect the Blue sapphire which appears randomly on the screen to score points

  3. Every time you collect the blue sapphire you gain 10 points

  4. And every time the evil marbles touch you, you lose 10 percent of your points. I initially coded for making you lose 20% of the points but I figured that the penalty is a bit too much and my score never went beyond 150. So I changed it to 10% (:

I am not going to explain the code here because there is hardly any new changes/logic in the code. The code is more or less the same as this post. You may also look here. What I am going to show you is, you guessed it, the video. So here comes:

The first video does not have audio, the background noise was too much so I mute the video.

This article is part of the GWB Archives. Original Author: TechTwaddle

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.