Posts

Showing posts from November, 2018

A nice looking, but barebones idle game in Unity

Image
It has been a busy week. Unfortunately, that may remain the same for the rest of November due to courses finishing up. At least I was able to get this post up within a two week period since the last post. It's a simple idle game based off what I made around a year ago . Unlike the previous game however, this is made in Unity instead of HTML and JavaScript. The game starts with a menu and then the user hits play. When the game screen appears, you can then click the button (coincidentally with the image of the flag of Bhutan) to increment. Generators can be purchased, but their cost will increase with every purchase. If you head back to the main menu, you can return to play or quit, and with either action your stats will be saved (though the generators will not run when the game scene isn't shown). This version I tried to do two things: being able to save and load data from a file (I haven't done file handling with C#) and setting up a menu. At least the minimal of th

An algorithm to set text in files to arrays

Image
This post took a little too long to get out. It has been a busy week. Every class I had required me to either write an essay or take a test. I have also started to do some multiplayer HOI4 games with friends.Thus I did not have time to write up this post. At least it is still less than two weeks since the last post. Regardless, here is something I have made that was not a computer science project. With my work in the prior post about prime factorization, I used some of Python's functions to get a list of prime numbers from a text file. This led me to try some things further with the reading/writing functions. This is a simple function that takes lines from a text file and puts them into lists. You can find it here on Github . The following is the basic steps: Check to see what tag is the current line. The line with a tag is indicated by it starting with a hashtag Add all lines to the list related to that tag until the current line is a tag  Check to see what tag is the