Thursday, May 6, 2010

2 Scrolling BG's

if (playerPos.X > 400)
{
bgPos.X-=bgspeed;
bg2Pos.X-=bgspeed;
}

if (bgPos.X == -800)
{
bg2Pos.X = 800;
}
if (bg2Pos.X == -800)
{
bgPos.X = 800;
}

SSL-VPN

Log into Windows
  • https://remote.cantonlocal.org/
  • Accept all SSL exceptions
  • Choose either Java or ActiveX; install all controls needed

Wednesday, May 5, 2010

Path Follow

Vector2 location = new Vector2(400, 300);

int pathIndex = 1;


...


if (pathIndex == 1 && location.Y >= 100)
{
location.Y--;

if (location.Y == 100)
pathIndex = 2;
}

if (pathIndex == 2 && location.X <= 700)
{
location.X++;

if (location.X == 700)
pathIndex = 3;
}

Monday, May 3, 2010

2D Side-Scroller Tutorial


Our assignment today is to read, follow, and reproduce THIS TUTORIAL

Aim for a level of mastery such that you can reapply the methods used in your own game.


.