Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for tyler.dahle

package hw3.categories; import java.util.ArrayList; import hw3.DiceGroup; import hw3.api.IScoreCategory; /** * Scoring category for a yahtzee. A DiceGroup * with N dice satisfies this category only if all N * values are the same. For a dice group that satisfies * this category, the score is a fixed value specified in …

Member Avatar for JamesCherrill
0
224
Member Avatar for tyler.dahle

void boss_animation() { for (int i = 0; i < 4; i++){ if( ! boss[i].drawable) continue; //Puts image of character on screen based on inputs from struct readimagefile(boss[i].frames[boss[i].currentFrame], boss[i].xCoord, boss[i].yCoord, boss[i].xCoord + boss[i].charWidth, boss[i].yCoord + boss[i].charHeight ); boss[i].currentFrame++; //increments the "frame" by one, thus only animating one image at a …

0
123
Member Avatar for tyler.dahle

Hello, in my game I am wanting to move my character and shoot a projectile simultaneously, but I need the projectile to emit from the character. Thus I am using the same variable for starting positions of character and projectile. When I shoot projectile, it goes from player to wall, …

Member Avatar for tyler.dahle
0
162
Member Avatar for tyler.dahle

Ok, so I attempted using a struct to animate my character, since my original hard coding produced poor performance. Here is my code: //struct template for animating character movement struct animate { int draws; int animationFrames; char *frames[TOTAL_FRAMES]; int charWidth; int charHeight; int xCoord; int yCoord; int xMove; int yMove; …

Member Avatar for tyler.dahle
0
1K
Member Avatar for tyler.dahle

if(kbhit()){ getch(); if(getch() == ' '){ while(y9 < 770){ readimagefile("PIX\\thunderball\\thunderball.gif", x9+10, y9+40, x9+40, y9+70);Sleep(80); putimage(0, 0, background, COPY_PUT); readimagefile("PIX\\thunderball\\thunderball2.gif", x9+10, y9+40, x9+40, y9+70);Sleep(80); putimage(0, 0, background, COPY_PUT); readimagefile("PIX\\thunderball\\thunderball3.gif", x9+10, y9+40, x9+40, y9+70);Sleep(80); putimage(0, 0, background, COPY_PUT); y9++;}} if(y9 == 730){ readimagefile("PIX\\thunderball\\thunderball_contact.gif", x9, y9, x9+30, y9+30);Sleep(80); putimage(0, 0, background, COPY_PUT); readimagefile("PIX\\thunderball\\thunderball_contact2.gif", …

Member Avatar for tyler.dahle
0
195
Member Avatar for tyler.dahle

void runGame(){ readimagefile("PIX\\Landscape.jpg", 0, 0, 800, 800); while(1 == 1){ moveCharacter(); //moveMonster(); } } void moveCharacter(){ int move = 0; int size = imagesize(0, 0, 800, 800); void *background = malloc(size); getimage(0, 0, 800, 800, background); readimagefile("PIX\\Character\\down_still.gif",x9,y9,x9+50,y9+50); thunderClaw(); //specialAttack(); //thunderball(); if(kbhit()){ if(getch()== 'd'){ move = 1; } if(getch()== 'a'){ move …

Member Avatar for tyler.dahle
0
197