You are browsing as a guest. Sign up (or log in) to start making projects!

6h 50m 44s logged

I’ve been working for a while, mostly on backwards-facing stuff about the general project structure:

  • A basic game class is used for the actual game instance, letting me manage variables and such and then pass them around.
  • A scene manager class manages different screens in the game.
    • Abstract methods are used to make sure scenes will always handle events, update, and render by making sure the methods are always implemented.
    • Each scene is a class object with several methods.
  • A config manager takes in a bunch of dataclasses and allows accessing the config like globals.
  • Tests check to make sure that an error is raised if a wrong key is accessed, and other stuff.
  • Player ships all inherit from one overall base ship class, and so do turret from their base turret class.
    • Turrets have an attachment point and player ships have points to attach to.
    • Both sprites are joined at the points so as to create a mounting system in which the same ship can use different turret configurations.

The next thing to work on is to allow the turret to rotate as if it was on top of the ship, and to handle ship movement, having it rotate to face where it is moving.

The following image is actually 2 different sprites: the turret (green) and the ship (below). It draws them by blitting the turret on top of the ship sprite.

I have decided to change the theme of the project. The vast majority of the time in this devlog was the background, and luckily I didn’t have much progress on the actual game part. It will now be a tower defense game.

0
88

Comments 0

No comments yet. Be the first!