Computer Game Production (software works on Win or Mac)

Lessons are also posted at YouTube.com
Search for bobcgausa
How to Program Test
Lesson #1

(click to listen)

Download M.zip  Software 

 

Exercises

Introduction test
Language

Program #1

 

test
   
   
Lesson #2

Cartesian coordinates Change draw.txt to experiment with different command options. Colors  

Study Fonts

Lesson #3 FIRST, download a new version of M.zip, which has a few bug fixes and a number of new commands.
ver Oct. 1 '07
Cartesian coordinates
 Graphical perspective
Color Psychology
OpenGL RGB Color System
Color name and RGB chart
Lighting a scene
Surface light and materials
  1. Modify perspective.txt to see the perspective vanishing point for yourself.
  2. Change snowman.txt to create different looking snowpersons.
  3. Change demo.txt to experiment with different command options.
   
Lesson #4 FIRST, download a new version of M4.zip, which has several new demos and commands. Great movie titles
 History of film
 Movie frame rate
  1. Type commands with -z option into foo.txt.  Execute with command .art foo
    Experiment with different x y z values and rotation angles.
  2. Do the same thing for different solid shapes.
  3. Try .play pdemo
  4. Modify pdemo.txt to try different figures and calculations.
  5. Try .play -
  6. Program a copy of a movie title sequence. Mail program to bobcook47@hotmail.com with a credit line.
   
Lesson #5 Download curve.txt to the M directory.  
  1. Try .art curve
  2. Try .play curve
  3. Use the print statement on the command line to try M language features.
  4. Type M statements into a file.txt to create a new dot command.
  5. Modify the curve.txt file to try different calculations.  Try functions from the math library.
   
Lesson #6 FIRST, download a new version of M6.zip, which has several new demos and commands. Drawing faces 1. Save your old programs and download new software.
2. Try .art face or .play face
3. Try modifying face.txt or creating your own face command.
4. Try .art demotex or .play demotex
5. Try creating your own text effects.
6. Try .art demotexgradient
7. Create foo.txt with .clear ... and if (a.length==6) {print(a);}
    Now command .play -m foo
    Click in window.  Examine output.
8. Try the game .play -m game1
9. Modify the game or create new ones.
10. Yes there are more lessons to come. Game #1 is the first of many.
   
Lesson #7 FIRST, download a new version of M7.zip, which has several new demos and commands. OpenGL Rendering Pipeline

Transformations

1. Save your old programs and download new software.
2. Try .art spiral
3. Modify spiral.txt to use GL_LINES or GL_TRIANGLES, try .rect
4. Play Game #2
    .play -k game2
    Use the arrow keys to move the melter over snowpeople.
5. Study the use of the game state data in game2.txt.  Speed the game by decreasing value to usleep.
6. Try .ogl/ripple.
1. Write your own small program that uses an if statement. Use print() to display the result.
1. Write your own small program that uses a for statement.
 
Lesson #8 FIRST, download a new version of M8.zip, which has several new demos and commands. Callbacks 1. Execute one M method from the math, m, colors, posix interfaces by typing on the command line i.e. print(math::sqrt(43));  Documentation on any method can be found by googling its name.
2. Execute
glut::glutPlaySound("fun/explode.wav", oglcons::GLUT_SND_ASYNC);
3. Use the Internet to identify the differences between .wav file and a .mp3 file.
4. Execute .events -
5. Study events.txt
1. Modify ogl/drotate3d.txt to change the rotation angles based on key/mouse events  
Lesson #9 Data Structures   1. Download examples.txt
2. Copy lines into M and execute as you follow lesson
3. Download rays.txt into ogl directory
1. Modify ogl/rays.txt as suggested in the Lesson
2. Try different figures other than fans
 
Lesson #10 Subroutines & Functions   1. Download acolor.txt into the ogl directory
2. Create a subroutine and call it
3. Modify acolor.txt to use a color parameter for the lines
4. Type the example into sum.txt then try out the command.
   
Lesson #11 Classes & Objects   1. Download new software with runtime error messages.
2. Run & study ogl/fire1 and ogl/fire
3. Run & study .play demofire
4. Extend the fire.txt command with more options e.g. -z
   
Lesson #12 Animated Character Horse gaits 1. Download new software with runtime error messages.
2. Run & study ogl/pony and ogl/pony2
3. Modify pony2.txt to encapsulate all state variables
4. Add a method to pony2.txt to update the state
1. Implement a pony command by modifying pony.txt
2. Update game2 to melt snowpeople with a pony.
 
Lesson #13 Particle Systems Particle Systems 1. Download new software with runtime error messages.
2. Run & study ogl/xpart and ogl/x1part and ogl/x2part
1. Implement your own variations.  
Lesson #14 3D Models 3D Modeling

free models

more free models

AutoDesk 3D Studio

1. Download new software with 3ds interface.
2. Run & study .amodel fun/chair.3ds
1. Modify game2 to use models.  
Lesson #15 Video Textures and TrueType Fonts NOTE: THE EXAMPLES ONLY RUN IN WINDOWS. 1. Download new software

2. Run & study zovideo.txt and zfont.txt