April 19, 2011

Baby's First RPG

I use the term RPG INCREDIBLY loosely. I've been messing around with various conditional statements.

This is coded in C. I put the program here on Codepad.org, but the site doesn't seem to be working at the moment...


int main (void)

int life = 5;

while (life > 0)

printf("\nOrk Deals 1 Damage!");
life = life - 1;

printf("\nYou are dead!");

return 0;


No comments: