$('.total').text(tuna.toString())
}
}
else {
alert('You do not have enough money to restart. You need at least 100,000 tuna to get any Holy Mackerals.')
}
});
tunatimer = setInterval(function() {
tuna = tuna += total_sec;
document.getElementById('psec').innerHTML = total_sec + " tuna per second";
$('.total').text(tuna.toString())
},
1000);
});
function getCookie(name) {
var re = new RegExp(name + "=([^;]+)");
var value = re.exec(document.cookie);
return (value != null) ? unescape(value[1]) : null;
}
function delete_cookie(name) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
$(document).ready(function() {
/* alert('This is my first Cookie update. Only saves tuna, and tuna per second. Please dont submit a bug report for that. This update is glitchy. Very glitchy.') */
$('.total').text(tuna.toString());
$('.main_button').click(function() {
tuna = tuna += 1;
$('.total').text(tuna.toString())
});
Here is the 360ish lines of code for this so called "Not even a game at this point" broken into chunks because it won't fit.
<!DOCTYPE html>
var tuna = 0;
var ready = false;
var ready2 = false;
var total_sec = 0;
var u1cost = 2250;
var i1cost = 25;
var i1psec = 1;
var i2cost = 100;
var i2psec = 10;
var i3cost = 500;
var i3psec = 25;
var i4cost = 1500;
var i4psec = 75;
var i5cost = 5000;
var i5psec = 150;
var i6cost = 15000;
var i6psec = 500;
var i7cost = 20000;
var i7psec = 750;
var hm = 0;
var tunatimer;
Hey, this was made by a twelve year old, programming in javascript, html and CSS. 375 lines of pain staking code to make this. Give me a break. A lot of people have criticized my game. Not every single game is made by a hardcore professional with team members at his disposal. This was made with one 12 year old. I want you guys to try to make something like this. With HTML. The most unfriendly language to make games in.
Look, I'm 12 years old and programming in C#. Give me a break. The button thing is not my fault. It's a bug with Unity. I bet you guys haven't ever even used unity. It's hard. It's a professional game engine, being used by a twelve year old.