Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast....

30
Game Programming

Transcript of Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast....

Page 1: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Game Programming

Page 2: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Game Structure

Input

Update

Draw

dt

Page 3: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Drawing (Rendering)

Hardware Acceleration. Mainly for 3D. Lots of cores. Same Program.

Page 4: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

CPU

GPU

Page 5: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Programming

Pick a strong language.● Games need to fast.

● Lots of objects.

● Lots of files.

● Meaning Lots of organization.

Page 6: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Libraries

C# - XNA / SlimDX / OpenTKC++ - SDL, SFMLPython - PyGameJava - LWJGL

Page 7: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Free Art Tools

2D● Gimp● Paint.NET3D● BlenderSound● Audacity● BXFR

Page 8: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Example: Snake

Page 9: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Core Objects

Snake● Collection of Segments● Movement SnakeSegment● Drawing Food● Moves randomly.

Page 10: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Food

Draw

Randomize

Page 11: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeSegmentMembers

Page 12: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake MovementSnake segments update from back to front.

Page 13: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake MovementSnake segments update from back to front.

Page 14: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake MovementSnake segments update from back to front.

Page 15: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake MovementSnake segments update from back to front.

Page 16: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Direction

RightUp

Page 17: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeSegment

GrabPosition

Page 18: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeSegment

Page 19: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SpriteSheet

0 1 2 3 4 5 67 8 9 10 11 1213

Page 20: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Members

Page 21: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Page 22: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Page 23: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Page 24: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Page 25: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

Snake

Page 26: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeGame

Page 27: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeGame

Page 28: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeGame

Page 29: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeGame

Page 30: Game Programming - University of CincinnatiProgramming Pick a strong language. Games need to fast. Lots of objects. Lots of files. Meaning Lots of organization. Libraries C# - XNA

SnakeGame