Wednesday, June 2, 2010

Summer Break

Thanks for the awesome year guys!

Enjoy your summer!


.

Tuesday, May 11, 2010

Jump Code

// Up top

bool jump = false;
bool falling = false;
bool ready = true;

// In Update

if (keystate.IsKeyDown(Keys.Space) && oldKeyState.IsKeyUp(Keys.Space) && !jump && ready)
{
jump = true;
ready = false;
velocity = new Vector2(0f, -5f);
playerPos.Y--;
}

if (jump)
{
playerPos += velocity;
if (playerPos.Y <= 440)
falling = true;
}

if (playerPos.Y <>
{
jump = false;
velocity += new Vector2(0f, (float)(13.8 * gameTime.ElapsedGameTime.TotalSeconds));
playerPos += velocity;
if (playerPos.Y > 450)
{
jump = false;
falling = false;
ready = true;
playerPos.Y = 450;
}
}

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.


.

Friday, April 30, 2010

Sprite Sheet Adaptations

After the review session, we're going to implement the code from yesterday:
  • This is where I borrowed the project
  • Add the animation effect to either Pong or Raining Triangles of Death.
  • The addition should make sense and add effect to your game.
  • You have the entire class to make your additions.
  • You are working by yourself.
  • You can do this.
  • I will not be looking at your code whilst answering your questions.

.

Tuesday, April 20, 2010

Retest

Your retest is the following:
  • Make the screen Yellow.
  • Draw a (200px by 200px) graphic in the exact center of the screen.
  • Make the graphic move up if the "W" key is pressed, move right if the "D" key is pressed, move down if the "S" key is pressed, and move left if the "A" key is pressed.
  • If the sprite touches a wall, play a wav file.

When you're done, zip and email me your project folder to howardm@cantonlocal.org


.

Monday, April 19, 2010

XNA Tutorials

Lets take a step back... I figured we'd need this after Friday's test...

We're gonna use the tutorials from this site to help us out: XNADEVELOPMENT.COM


.

Friday, April 16, 2010

XNA Test

Your first XNA test is a practical. You must complete the following:
  • The window background should be black
  • Draw the following 2 sprites side-by-side on the screen: SPRITE1 & SPRITE2
  • Move SPRITE1 either up, down, left or right with the arrow keys. Move SPRITE2 either up, down, left, or right with the SPACE BAR and the arrow keys pressed.
  • Play the any WAV file when the "W" key is pressed.

.

Wednesday, April 14, 2010

Pong-a-thon

Let me see the Poooo-ooo-ooong. Let me see that ponnnngy pong pong pong pong.


In a comment to this post, describe what additions/ edits you'll be making to your pong game. The additions should be attainable by midway through class Friday.


.

Thursday, April 8, 2010

XNA Intro Quiz

A few questions:
  • What is the programming language used by XNA?
  • What is the name of the file where the XNA main logic loop resides?
  • In which method/ function is media content loaded?
  • On an image, where is point (0, 0) ?

.

Tuesday, April 6, 2010

Mum, Dad, I Want to be a Game Designer

Today, we're watching a presentation from this cheeky fellow from EA Games.

Click here for the YouTube link

As a response to the video, answer the following:
  1. What company does the speaker represent?
  2. What is the most important quality of a game design?
  3. Describe some of the qualities associated with a game's hero.
  4. How would you characterize the trends in video games during the past 10 years.
  5. List 6 game console units.
  6. What's your favorite game? Why?
  7. What's your least favorite game? Why?

Monday, April 5, 2010

Module 5 - "Fun"ctions

1) What are the main differences between local and global variables?
2) Can a local variable be declared anywhere within a block?
3) Does a local variable hold its value between calls to the function in which it is declared?

Create a function called hypot( ) that computes the length of the hypotenuse of a right triangle given the lengths of the two opposing sides. Demonstrate its use in a program. For this problem, you will need to use the sqrt( ) standard library function, which returns the square root of its argument.

It has this prototype:
double sqrt(double val);
It uses the header cmath

Thursday, March 25, 2010

Module 5 - "Fun"ctions

Read Module 5!

Answer the following 2 Critical Checks:

1. When a function is called, what happens to program execution?
2. What is the difference between an argument and a parameter?
3. If a function requires a parameter, where is it declared?

1. Show the two forms of the return statement.
2. Can a void function return a value?
3. Can a function call be part of an expression?


.

Tuesday, March 23, 2010

Temperature Unit Conversions

Lookie Here

Write a c++ program which converts:
  • Fahrenheit to Celsius
  • Celsius to Fahrenheit
  • Fahrenheit to Kelvin
  • Kelvin to Fahrenheit
  • Kelvin to Celsius
  • Celsius to Kelvin

.

Monday, March 22, 2010

HW

Module 4 Mastery Check
1. Show how to declare a short int array called hightemps that is 31 elements long.

2. In C++, all arrays begin indexing at ________.

3. Write a program that searches an array of ten integers for duplicate values. Have the program display each duplicate found.

4. What is a null-terminated string?

6. When using strcat( ), how large must the recipient array be?

7. In a multidimensional array, how is each index specified?

8. Show how to initialize an int array called nums with the values 5, 66, and 88.

9. What is the principal advantage of an unsized array declaration?

10. What is a pointer? What are the two pointer operators?

11. Can a pointer be indexed like an array? Can an array be accessed through a pointer?

13. What is it called when one pointer points to another pointer?

14. Of what significance is a null pointer in C++?

Friday, March 5, 2010

Group Work

Please write me 2 paragraphs concerning the group work:
  1. Describe your contributions to the group work we've been doing during this past work. Do not tell me what the other group members did, tell me what you did.
  2. Tell me what you plan on doing if I give you 3 more class periods to finish up the group work. Project "oversight" is not acceptable. Nobody should be "helping" a group member do something, we should all have our own roles and duties. If you need direction, ask a group member, or ask me.

.

Friday, February 26, 2010

Trophey

cout <<"\t `:++ooossssoo++:` \n" <<"\t-::::++++++ooo+++//+:-:::\t\n" <<"\t.+/``.++++++++/:::/-``/+.\t\n" <<"\t .+: /+++++++/:://` :+. \t\n" <<"\t .+:`.+++++++/::/: :+. \t\n" <<"\t .+:.+++++++/::+.:+. \t\n" <<"\t `-:+++++++/:/+:-` \t\n" <<"\t `/+++++///` \t\n" <<"\t `.-:o/-.` \t\n" <<"\t -o/` \t\n" <<"\t /++. \t\n" <<"\t `-//++o+/os+. \t\n" <<"\t -syyyyyyyyhhyyo` \t\n" <<"\t `ymhooooooooosdm+ \t\n" <<"\t /mmh++++++++++dmd. \t\n" <<"\t `hmmhoooooooooodmmo \t\n" <<"\t +mmmddddddddddddmdd. \t\n";

Wednesday, February 24, 2010

C++ Module 4

Using The Module 4 PDF
  • Read sections 4.1 - 4.7
  • Answer all progress checks in a comment to this blog
  • Do Project 4-1

.

Friday, February 19, 2010

Tuesday, February 16, 2010

BPA Awards Ceremony

The BPA Awards Ceremony for tomorrow (2.17.10) has been canceled. See you tomorrow.


.

Thursday, February 11, 2010

Google Broadband

Read one of the following articles are write a one paragraph response in a comment to this post:

Answer the question: Is this good for the average American?
.

Monday, February 8, 2010

Fibonacci Numbers

Your homework for tonight is to write a loop that outputs the first 100 entries of the fibbonacci sequence.


.

Wednesday, February 3, 2010

quarta-feira = Wednesday in Portuuguese

If you liked yesterday, you'll love today. Same deal as yesterday, except half as hard and double the volume.

Again, answer the questions in a word doc and upload to Swain.

Chapter One:



Chapter Two:


.

Monday, February 1, 2010

Tuesday - Still no Howard

Boomshakkalakka...

Today's assignment again covers Chapter 3.

Answer the following questions in a word document and upload to SWAIN TODAY.

When you're done, make sure that everything from the past few days is done to the best of your ability.



.

Sunday, January 31, 2010

Monday

Hello future programmers. Sadly, I'm out for a few days. Check with this page daily for the goods.

For Today:
  • Re-Read Chapter 3, (if needed)
  • Do Project 3-1
  • Save your cpp file as help_3.1.cpp
  • Do Project 3-2
  • Save your cpp file as help_3.2.cpp
  • Do Project 3-3
  • Save your cpp file as help_3.3.cpp
  • Rewrite the following program using an if-else ladder, name your cpp file, if-else.cpp:
  • When you've finished writing all code pieces, zip them all up and submit via SWAIN.

If you get done with today's assignment, make sure that the number generator from last week is working... NO GAMES UNTIL IT WORKS!!!

.

Wednesday, January 27, 2010

Wednesday - C++ Loops

Please READ THIS ENTIRE CHAPTER and complete the Progress Checkpoints as we did for the previous 2 chapters from this text.

If you get done with the entire chapter before the end of class, please upload your work to SWAIN as we did before.


.

Tuesday, January 26, 2010

Thursday, January 14, 2010

Wednesday

Your assignment today:
  • For each group me complete a hand-written minute-by-minute timeline of your presentation.
  • To get maximum credit for your group, the timeline must address every point in the scoring rubric. Check 2010WSAP.pdf in //shared/bpa.
  • DUE AT THE END OF CLASS!!!!
  • Once your timeline is done, work on your site.
  • NO YOUTUBE, NO SURFING, NO GAMES, NO EXCEPTIONS!!!!!

.

Wednesday, January 6, 2010