Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let's design a fucking game together

Name: Anonymous 2018-05-07 14:56

Hi nerds. I want to design a website with a small card game (like Yugi oh or Magic or that kind of shit) but the thing is has to:
* Have a fixed set of cards (that is no custom cards)
* Games should end in a range of 10 - 20 turns mostly.
Since you are nerds and expert on this kind of shit and enjoy the autism of designing things, i wonder if you could kindly help me.

UwU

Name: Anonymous 2018-05-10 2:48

<script>
var cardat = [20, 25, 30, 45, 60];
var carddf = [15, 10, 5, 25, 10];
var cardht = [40, 50, 60, 70, 80];

function card_obj(id, a, d, h, t, w){
this.id = id;
this.atk = a;
this.dfn = d;
this.hlt = h;
this.type = t;
this.weak = w;
}

function getcard(id){
var x = new card_obj(id, cardat[id], carddf[id], cardht[id], 0,0);
return(x);
}

function battlecards(carda, cardb){
var avb = Math.max(carda.atk - cardb.dfn, 0);
var bva = Math.max(cardb.atk - carda.dfn, 0);
return([avb, bva]);
}
</script>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List