Latest Posts

Here are the latest posts on Cave of Programming. You can also find a comprehensive list of all articles here. If you're looking for video courses, they're here.

Cave of Programming Latest Site Redesign

As you can see, I've redesigned Cave of Programming again.....

A Collection of Java Exercises

The following exercises are taken from a book I'm working on, on Java 8.....

Game Development with SDL2 Part 4: Animating using Sprite Sheets

In this post, we are going to learn about how to animate using sprite sheets.....

Game Development with SDL2 Part 3: Drawing our first image

In this post, we are going to draw our first image and show it on to the screen!....

What Use Are Java Interfaces?

What are interfaces in Java, and what good are they?....

C++Tutorial for Beginners 72 - What Next?

In this video we'll talk about stuff you might want to do next after learning....

C++Tutorial for Beginners 71 - Languages Overview

In this tutorial we'll have a quick overview of some of the different languages related to C++....

C++Tutorial for Beginners 70 - Realistic Particle Motion

In this tutorial we'll tweak the motion of our particles to make the explosion look....

C++Tutorial for Beginners 69 - Implementing Box Blur

This is a tutorial on implementing box blur in C++....

Game Development with SDL2 Part 2: Event Handling

In this post, we are going to discuss all about event handling in SDL.....

Game Development with SDL2 Part 1: Creating a Window

In this post, we are going to discuss all about game development in C++ along with a very popular multimedia library called Simple DirectMedia Layer....

C++Tutorial for Beginners 68 - Bitwise “(And)”

A tutorial on bitwise 'and', otherwise known as ........

C++Tutorial for Beginners 67 - Ensuring Constant Speed

Somehow we need to make sure that our particles move at a constant speed, rather than just moving as fast as they are able to ....

C++Tutorial for Beginners 66 - Creating an Explosion

Now it's time to make our particles explode!....

C++Tutorial for Beginners 65 - Animating Particles

In this tutorial we'll take a look at how we can make our particles actually move around!....

C++Tutorial for Beginners 64 - Creating Particles (Starfields!)

In this tutorial we'll draw a starfield by creating a bunch of particles with random locations.....

C++Tutorial for Beginners 63 - Animating Colors

Now that we've got some coloured pixels on the screen, we can make the colours change from moment to moment, doing some nifty colour animation.....

C++Tutorial for Beginners 62 - Setting Pixel Colors

In this tutorial we'll look at how we set the colour of individual pixels on the screen.....

C++Tutorial for Beginners 61 - Textures, Renderers and Buffers

A renderer is a piece of software that draws bitmaps or pixels on the screen. A texture is basically a bitmap (a collection of pixels)....

C++Tutorial for Beginners 60 - Creating an SDL Window

Now we can create a window using SDL. When you're writing a game or a simulation or some kind of graphics program, there's nothing quite so exciting as getting that first blank window up and running!....