Learn to Make an Alien Farm Game With C++ SDL2 From Scratch

- 44%

0
Last updated on April 26, 2025 7:11 am
Add your review

What you’ll learn

  • Create a farm game with an alien theme
  • A tiling system that allows you to place dirt, water which makes surrounding dirt wet, and different colored “grass”
  • Plants of different types and sizes that have shadows, move up and down, start small and grow, and can only exist on the correct types of tiles
  • Animals of different types and sizes that have shadows, start small and grow, move around without overlapping plants, other animals, the wrong types of tiles
  • Improve your C++ game development skills

Overview

You’ll be able to place dirt, water which makes surrounding dirt wet, and different colored grass. Add and remove plants of different types and sizes that have shadows, move up and down, start small and grow, and can only exist on the correct types of tiles. Add and remove animals of different types and sizes that have shadows, start small and grow, move around, and avoid overlapping plants, other animals, and certain tiles like water.

Tiling System

  • Start by adding a simple purple checkered grid to get the basics setup.

  • Then it will be improved by adding a tiling system that allows placement of different colored tiles.

  • Next an algorithm that automatically generates shadows, to give a sense of depth, will be added to the game.

  • Finally when water tiles are added or removed, the surrounding dirt tiles become wet or dry depending on how far away they are from water.

Plants

  • Start by setting up simple plants that can be added and removed with the mouse and keyboard.

  • Then they will be improved so that they look like they’re moving up and down, and start small then grow to their full size.

  • Next more plants/trees of different sizes will get added to the game, and their shadows improved to be lighter and remove overlap with other images.

  • Finally an algorithm will be added that checks tile types underneath them. That way they can only get placed on the correct ones, and if tiles are changed to types that they shouldn’t exist on, they get removed.

Animals

  • Start by setting up simple animals that can be added with the mouse and keyboard, that start small then grow to their full size.

  • Then they will be improved so that sometimes they either pick random points to move to, or random angles to rotate to.

  • Next their movement will be improved further so that they avoid overlapping other animals, plants, and tile types that they shouldn’t exist on, for example water.

  • Finally more overlap checks will be added so that animals can no longer be placed on plants, other animals, or the wrong types of tiles. Also an overlap check so that plants can’t be placed on animals. In addition code will be added so that animals can be remove with the mouse, or if the tiles under them are changed to types they shouldn’t exist on.

Who this course is for:

  • Anyone who wants to learn how to create a farm game with an alien theme
  • Anyone who wants to improve their C++ game development skills

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Learn to Make an Alien Farm Game With C++ SDL2 From Scratch”

×

    Your Email (required)

    Report this page
    Learn to Make an Alien Farm Game With C++ SDL2 From Scratch
    Learn to Make an Alien Farm Game With C++ SDL2 From Scratch
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.