Introduction to Video Game Programming (VGP) Mr. Shultz.

27
Introduction to Video Game Programming (VGP) Mr. Shultz

Transcript of Introduction to Video Game Programming (VGP) Mr. Shultz.

Page 1: Introduction to Video Game Programming (VGP) Mr. Shultz.

Introduction to Video Game Programming (VGP)

Mr. Shultz

Page 2: Introduction to Video Game Programming (VGP) Mr. Shultz.

Today’s Bell-Ringer and ObjectivesBell-Ringer1. What is your HCS computer login username?2. How many bytes are there in a Gigabyte?3. How many Gigabytes are there in a Terabyte? Objectives• Given the FBLA web site, TSW correctly identify

the purposes and goals of the student organization with no errors. (BUS6640.030)

Page 3: Introduction to Video Game Programming (VGP) Mr. Shultz.

Bell-Ringer

1. What is your HCS computer login username?

first letter of first name last name three numbers (usually 001) Example: sshultz001

Page 4: Introduction to Video Game Programming (VGP) Mr. Shultz.

Bell-Ringer

2. How many bytes are there in a Gigabyte?

1,000,000,000One Billion

Page 5: Introduction to Video Game Programming (VGP) Mr. Shultz.

Bell-Ringer

3. How many Gigabytes are there in a Terabyte?

1,000 Gigabyte = One Billion Terabyte = One Trillion

Page 6: Introduction to Video Game Programming (VGP) Mr. Shultz.

Today

Take VGP Pre-Test Part 2 5 minute limit

Computer Math Worksheet Complete Algorithm Lesson Complete “About FBLA”

worksheet

Page 7: Introduction to Video Game Programming (VGP) Mr. Shultz.

VGP Pre-Test Part 2

Alternate sitting at tables and computers

Do NOT write on instruction sheet Use provided notebook paper 5 minute limit NO TALKING

Page 8: Introduction to Video Game Programming (VGP) Mr. Shultz.

VGP Pre-Test Part 2

People sitting at computers move back to tables

Everyone hold up your paper Who got it right? Why did some get it wrong?

Page 9: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

Prefixes:K = kilo = 1,000 (thousand)M = mega = 1,000,000 (million)G = giga = 1,000,000,000 (billion)T = tera = 1,000,000,000,000

(trillion)

Page 10: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

CPU SpeedsMeasured in Hz (hertz)

Means cycles per second

The more cycles it can process, the faster it can run

Page 11: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

1a. If a CPU is rated at 500 MHz, how many cycles can it process in a second?

500 times M (1,000,000) =

500,000,000 (500 million)

Page 12: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

1b. If a CPU is rated at 1 GHz, how many cycles can it process in a second?

1 times G (1,000,000,000) =

1,000,000,000 (1 billion)

Page 13: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

1c. If a CPU is rated at 950 MHz, how many cycles can it process in a second?

950 times M (1,000,000) =

950,000,000 (950 million)

Page 14: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

1d. If a CPU is rated at 1.1 GHz, how many cycles can it process in a second?

1.1 times G (1,000,000,000) =

1,100,000,000 (1.1 billion)

Page 15: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

1e. Which CPU is faster, one rated at 1.1 GHz, or one rated at 950 MHz?

1.1 GHz = 1,100,000,000950 MHz = 950,000,000

Page 16: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

Hard Drive CapacityMeasured in B (bytes)

Means pieces of dataMore bytes on the hard

drive = more data you can store

Page 17: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

2a. If a hard drive holds 200 GB, how many pieces of data can it store?

200 times G (1,000,000,000) =

200,000,000,000 (200 billion)

Page 18: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

2b. If a hard drive holds 1TB, how many pieces of data can it store?

1 times T (1,000,000,000,000) =

1,000,000,000,000 (1 trillion)

Page 19: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

2c. If a hard drive holds 750 GB, how many pieces of data can it store?

750 times G (1,000,000,000) =

750,000,000,000 (750 billion)

Page 20: Introduction to Video Game Programming (VGP) Mr. Shultz.

Computer Math

2d. You need to have a total of 1TB of storage, and you already have a hard drive that holds 750GB. What is the smallest hard drive you can add and have 1TB of storage?

1TB (1,000,000,000,000) minus750GB (750,000,000,000) =250GB (250,000,000,000)

Page 21: Introduction to Video Game Programming (VGP) Mr. Shultz.

Algorithm Lesson

What is an Algorithm?An ordered sequenceUnambiguous and well-

defined instructionsPerforms some taskHalts in finite time

Page 22: Introduction to Video Game Programming (VGP) Mr. Shultz.

Algorithm Lesson

Go to mrshultz.com Click on Algorithm Lesson link Complete the Algorithm

worksheet

Page 23: Introduction to Video Game Programming (VGP) Mr. Shultz.

FBLA Go to mrshultz.com Click on VGP Click on the FBLA national web

site link Complete “About FBLA”

Worksheet

Page 24: Introduction to Video Game Programming (VGP) Mr. Shultz.

Click on “About FBLA-PBL”.

Page 25: Introduction to Video Game Programming (VGP) Mr. Shultz.
Page 26: Introduction to Video Game Programming (VGP) Mr. Shultz.

Today

Complete Algorithm Lesson Complete “About FBLA”

worksheet

Page 27: Introduction to Video Game Programming (VGP) Mr. Shultz.

Introduction to Video Game Programming (VGP)

Mr. Shultz