{"author_name":"BtheDestroyer","cat":"LD #33","comments":[{"author_name":"BoaHeck_ArtGent","time":"August 22, 2015 3:17 am","epoch":1440231420,"text":"Looks like my enthusiasm for the jam after the theme was announced&#8230;","spam":"N"}],"epoch":1440211500,"likes":2,"metadata":{"p_key":"15607","p_author":"BtheDestroyer","p_authorkey":"46490","p_urlkey":"50886","p_title":"Hurray for maths","p_cat":"LD #33","p_event":"LD33","p_time":"1440211500","p_likes":"2","p_comments":"1","p_status":"UPD5","us_key":"46490","us_name":"BtheDestroyer","us_username":"\/author\/bthedestroyermc\/","event_start":"1440115200","event_key":"29","event_name":"LD33"},"text":"<p>First formula with my game. One of the most complex I&#8217;ve had to make for something so simple, actually: The starting money you get depending on the difficulty.<\/p>\n <p>I should explain, when you start the game, depending on how hard it is, you&#8217;ll be given more or less money so to device how much you get, I wrote this formula.<\/p>\n <p>I started with a simple y=x^2 and noticed the immediate problems of<br \/>\n 1. The player gets LESS money the easier it is.<br \/>\n 2. the growth scale is broken so you get more exponentially (no way, exponents)<\/p>\n <p>Then I changed it to be y=log(x) and it looked a bit better. No more crazy exponential growth. (I knew I took Calculus for something)<\/p>\n <p>Of course, it&#8217;s still getting bigger as the difficulty gets higher, so I made it y=-1*log(x) and get an equation that starts high and ends low with a nice curve.<\/p>\n <p>Next I made it a bit more complicated (squared an X here, did some random division there, multiply by a big number to inflate the result at the end) and get a fairly good graph.<\/p>\n <p><a href=\"https:\/\/www.desmos.com\/calculator\/r6xbkicmpq\">Check out the graph and equation here<\/a><\/p>\n <p>I know it could have been simpler, but I like having crazy long math done for something that seems pretty simple, ya know?<\/p>\n <p><img src=\"https:\/\/s3.amazonaws.com\/grapher\/exports\/r6xbkicmpq.png\" width=\"1244\" height=\"756\" class=\"alignnone\" \/><\/p>","time":"August 21st, 2015 9:45 pm","title":"Hurray for maths"}