itch.io is community of indie game creators and players

Devlogs

Object-Oriented Programming👍

GDV1 Project 1
A browser game made in HTML5

I forgot to do write earlier about my process for this project because I have been focused on doing the writing for my process for a different one. Better late than never!

I realized today that my animations for my coins and my obstacles looked more or less the same. This means that I can then abstract my classes. I made the class an abstract class and then overrode the methods that I needed to be overwritten in later classes. Some of the methods are useful in all cases, but when they were not, I overwrote the method to be functionally empty. This way I don't have duplicate code across multiple classes.

Leave a comment