Anything your proud of, show it off. Sites, programs, etc. Keep er safe and such kids
...
I'm particularly proud of an engine I developed (with some help of course) in JavaScript -
It's not plugged into my PHP yet, but it runs well. Working out kinks to develop a RuneScape style Textbased Game
.
This is not a place to advertise, it is a place to show off your work, and comment on the work of others. If someone asks you to explain the code (if you just posted code), please do so! If you are going to post a site, do it ONLY because you want to show it off, not for traffic reasons.
I'm particularly proud of an engine I developed (with some help of course) in JavaScript -
It's not plugged into my PHP yet, but it runs well. Working out kinks to develop a RuneScape style Textbased Game
Code:
<script type="text/javascript">
var d = document;
function set_view(ID, view) {
d.getElementById(ID).style.visibility = view;
}
function test(){
d.getElementById("output").innerHTML = "";
set_view("Start", "hidden");
function output(str) {
var out = d.getElementById("output");
out.appendChild(d.createTextNode(str));
out.appendChild(d.createElement("br"));
}
function genRand(chance) {
var rand = Math.floor( chance >= Math.random() * 100
? Math.random() + 100
: Math.random() * 101
);
var str = "Your number is " + rand + ". You had a " + (100 - chance) + "% chance of losing.";
if(rand >= 100){
output("Success: You successfully retrieve the log!");
set_view("End", "visible");
}
else {
output("Failure: You failed to retrieve the log.");
setTimeout(function() {
genRand(chance + 2);
}, 1);
}
}
genRand(0.1);
}
</script>
<script type="text/javascript">
function startover(){
set_view("End", "hidden");
set_view("Start", "visible");
d.getElementById("output").innerHTML = "The item was added to your inventory!";
manualPB2.setPercentage('-10');
manualPB.setPercentage('+10');
}
</script>
This is not a place to advertise, it is a place to show off your work, and comment on the work of others. If someone asks you to explain the code (if you just posted code), please do so! If you are going to post a site, do it ONLY because you want to show it off, not for traffic reasons.

























