I’m currently working on a project (working title: TurretDefence) in which the player must protect a lone turret from being destroyed, and defeat all the incoming enemies. The tricky part is, however, there are no in-game controls. The player must edit the AI of the turret, using a script file that the game loads at …
Tag Archive: C++
Mar 08
Pointing at Things That do Stuff!
… that is, pointing at functions. Introduction Pointers in C++ are probably one of the most powerful aspects of programming using the language. They can allow you to easily pass data around with using additional memory and provide a very efficient way to access variables from elsewhere in the program. But, that’s not all they …
Feb 07
Classy Programming
A step-by-step introduction to classes in C++. Introduction Classes are a very useful feature in programming. They allow for an easy and efficient method to use an object-oriented approach to programming, and also help to create more structures and organised code. Not only that, they save a lot of effort by removing the need to …
May 18
Practical Use for Pretty Things
Exams are coming up, and so with Maths I have a tonne of equations to remember. Thinking about ways to remember them, I remembered that I could write my own scripts for Conky, which I’d recently been playing around with. So, what’s Conky? Well from their website Conky is a free, light-weight system monitor for …
Jan 18
Remember?
Yet again I’ve started working on a little game project. This time it’s memory game, where you have to match the correct cards (I can’t seem to think of the name for this for some reason ) So far I’ve written the basic IO, getting mouse position and highlighting a tile, getting click coordinates and …
Jan 09
Operator Ad-Hoc Polymorphism
… More commonly known as Operator Overloading. a specific case of polymorphism in which some or all of operators like +, =, or == have different implementations depending on the types of their arguments. Sometimes the overloadings are defined by the language; sometimes the programmer can implement support for new types. (from Wikipedia) I’ve been …
