myGameIS.pde

20170425_123743 (1)-/0/This Program was created by Ismael

int base=5;
int x,y,gameScore=0;
int changeX=-10;
int changeY=-10;
int gameOver=0;
void setup()
{
size(450, 550);
x=(int)random(width);
y=height-base;
}
void draw()
{
if(gameOver==0)
{
background(0);
text(“SCORE:”+gameScore+”00”,width/2,height/2);
rect(mouseX,height-base,200,base);
ellipse(x,y,10,10);
x=x+changeX;
y=y+changeY;
if(x<0 | x>width)
{
changeX=-changeX;
}
if(y<0)
{
changeY=-changeY;
}
if(y>height-base)
{
//check whether it is falling inside the rectangle or not
if(x>mouseX && x<mouseX+200)
{
changeY=-changeY; //bounce back
gameScore++;
}
else
{
gameOverSplash();
}
}
}
else
{
background(255,0,0);
text(“Game Over!”,width/2,height/2);
text(“CLICK TO RESTART”,width/2,height/2+20);
}
}
void gameOverSplash()
{
gameOver=1;
}
void mouseClicked()
{
changeY=-changeY;
gameScore=0;
gameOver=0;
}

Conditionals and Converses

If your on the wrestling team you play a sport. Conditional.

If you play a sport, your on the wrestling team. Converse.

Converse is false because there are way more sports than just wrestling.

 

 

 

 

If you slap a child, they will feel pain. Conditional

If a child is in pain, it was slapped. Converse.

Converse is falls because getting slapped isn’t the only source/ reason for pain.

 

 

 

 

If your phone is on the battery is depleting.Conditional

If your phone battery is depleting, your phone is on. Converse

In this case, both makes sense. Since your using your phone and the phones power source is the battery, you are draining said phone of power.

05-09 Blog – DEVELOP

Test the solution

The first test with my car was successful. The egg didn’t crack in anyway. My car met almost all the constraints of the project, the only problem was the fact that the cars length was 1.5cm over the designated length.

Synthesize and analyze feedback

My partner told me to balance the car out because it tends to tilt when rolling down. Also he told me to use less tape, because it makes the car unappealing.

Revise the solution

Due to my egg not cracking during the egg car race, next time i’d take into consideration how the car looks. Because of all the tape the car was unappealing. Also i would fix the fact that the wheels were tilted. Because of the wheels changed the direction in which the car was going.

colorPg.html

Whats good, im Ismael

Hi, im Ismael


Cheese is good

Cheese is great

Cheese is amazing

Do you hear the people sing?

No I don’t. I’m too busy eating chesee.


What i like

I like cheese and biscuits what about you 😀 hehe you better like them, espicially chedar biscuits.

And anime you should like anime as well

firstPg.html

 

Whats good, im Ismael

 

 

Hi, im Ismael

Cheese is good

Cheese is great

Cheese is amazing

Do you hear the people sing?

No I don’t. I’m too busy eating chesee.

What i like

I like cheese and biscuits what about you 😀 hehe you better like them, espicially chedar biscuits.

And anime you should like anime as well

Define: scroller.sb2

1)The type of animation that would work best, would be bdsprites.

2) First i would get a background of a city and make it a sprite, and change the perspective for left and right.

3) The parts that would be the most difficult would be making a different set of scratch codes for each perspective, left or right.

4)I would need help making the code for each perspective/direction.