• Register

Rule your school is a game in which you create and manage a school. Choose the correct decisions at the right time and become the best school in town! You are the headmaster, you decide what happens. Organize proms, hire teachers, force students to work in the gardens or be a generous Headmaster and let them play football. With over 150 objects to choose from the possibilities are endless. Pick the right floor type and a wallpaper. Build classrooms with modern tables, or rather use classic ones. Your choice.

Post news Report RSS Rule Your School - Update!

I started this project when I was around 15 years old and released it about 2 years later. While game updates had to wait because of study, I learned a lot and went through every single phase of game development. Including publishing. If you have motivation, don’t be afraid to start, but don’t forget to finish it!

Posted by on

Hey everyone!

A little post about Rule Your School :)

I started this project when I was around 15 years old and released it about 2 years later. While game updates had to wait because of study, I learned a lot and went through every single phase of game development. Including publishing. If you have motivation, don’t be afraid to start, but don’t forget to finish it!

After a long time, I finally found time to properly look at Rule Your School again. I still love the game (even after playing the tutorial an infinite amount of times), but it also contained quite a few bugs. Most of the code was written about 4/5 years ago, and while it does follow some guidelines, it’s not the best.

Take the building mechanism as an example. I started with two type of objects, a wall object and a table object. You could drag walls around and place tables. It worked great!

Then I added doors. Students and teachers should be able to walk through them. Hmmm.

We could only build chairs and walls!


Then I added windows. While they work similar to doors, AI should not walk through them.

Now we can build windows!


Even more types of objects were added, you can think of wallpapers, floors, objects that hang on the wall (like posters) or flowers that could be ‘painted’ on the grid (instead of manually placing every one of them individually). You can guess already, I didn’t start with a nice abstraction for each object, I started with if-statements… The building script today is a huge file with over 3000 lines of code. Very, very, very bug-prone.

More objects!

I would never write code like this again, but since I wanted to fix the last bugs in building, I had to dive in again.

While I dug up a lot of memories, I also found a lot of ‘interesting’ code. I improved a lot of it and I hope it also improves the experience of everyone who bought the game. It’s awesome to see people playing it or to read about what they think of it!

One of the things that I still really enjoy looking at is the prom, all the different dances and the custom music make me laugh every single time:

Students having a prom!

The latest update contains a lot of bug fixes, and quite a few performance updates. I've also improved both pathfinding accuracy and performance!

Pathfinding!

Want to know more about the game? Go to my website!

Thank you for reading and have a nice day!

Sincerely,

Floris Weers

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: