Search Result

Collapse
2 results in 0.0039 seconds.
Keywords
Members
Tags
repeat
  •  

  • blawson2441
    started a topic Handling damage in a game
    in C

    Handling damage in a game

    I have to make a game, where damage is inflicted and subtracted from health after every turn. there is you and the cpu. choices 1 and 2 have limited uses. I cannot figure out how to get the damage to store through out the entire program. here is what i have:

    Code:
    #include <iostream>
    #include <cstdlib>
    using namespace std;
    
    int main()
    {
    	int damage = rand();
    	int health = 100;
    ...
    See more | Go to post
    Last edited by Banfa; Feb 14 '12, 09:57 AM. Reason: Added [code]...[/code] tags round the code, please use them in future

  • mrjoz
    started a topic background repeat for two images on header area

    background repeat for two images on header area

    I wanted a liquid layout heading for my webpage. as its a unique image i took a slice from the left edge and added it to a div. then placed the main heading image in another div and floated it to the right. my logic is that it can resize and fill the growing/shrinking white-spaces with the contents of the left div.

    hi, iam at www.lovebirdweddings.co.uk

    as you can see (if you run the problem) i haven't quite got it right....
    See more | Go to post
Working...