However, those else-if statements were replaced with switch statements several years ago: However, people used third-party tools to crack open the game, looked at the earliest code, shared screenshots of it, and accused me of being a bad programmer.įor example, this image depicts an inefficient use of else-if statements in Yandere Sim's code: With this in mind, I began to write cleaner code, and also optimized a lot of the least-efficient code that had been written in the game's earliest stages. Instead of following the original plan, I decided to use the proof-of-concept as the base for the actual game.
However, as I added more and more features to the proof-of-concept, it gradually became apparent that I was basically creating a feature-complete slice of the complete game. That code was only written so I could showcase gameplay in YouTube videos and the Kickstarter pitch. During that period of time, I was not concerned with writing efficient or optimized code, because I was not planning for any of that code to be in the final version of the game. I only wanted to create a simple prototype that would allow me to demonstrate the planned features and mechanics that the final game was meant to have. At the beginning of Yandere Simulator's development, my goal was to quickly create a rough proof-of-concept that could be used for pitching the game on Kickstarter.