Presentation is loading. Please wait.

Presentation is loading. Please wait.

Game Programming Step-03 How to control the keyboard in Game.

Similar presentations


Presentation on theme: "Game Programming Step-03 How to control the keyboard in Game."— Presentation transcript:

1 Game Programming Step-03 How to control the keyboard in Game. http://www.prasansoft.com

2 Purpose Step 03 Learn How to control reduce speed the keyboard in game. Learn to customize parameter in game command http://www.prasansoft.com

3 Write Command Step-03 SET CAMERA RANGE 0,0.2,10000 MAKE MATRIX 1,5000,5000,20,20 SET MATRIX HEIGHT 1,0,0,100 UPDATE MATRIX 1 DO SET TEXT FONT "COURIER NEW" SET TEXT SIZE 16 SET TEXT TO BOLD SET CURSOR 20,50 PRINT "STEP-001 set up camera prasansoft.com" SET CURSOR 20,70 PRINT " YOU CAN SEE SCREEN IN 3DGAME RENDER BY CAMERA “ rem CONTROL CAMERA USING ARROWKEYS 0,10,1 CONTROL CAMERA USING ARROWKEYS 0,2,1 Reduce Speed LOOP http://www.prasansoft.com

4 CONTROL CAMERA USING ARROWKEYS This command will monitor the arrow keys and move the camera based on their activity. The up and down arrow keys move the camera forward and backward. The left and right arrow keys turn the camera left and right respectively Syntax CONTROL CAMERA USING ARROWKEYS Camera Number, MoveSpeed, TurnSpeed Example CONTROL CAMERA USING ARROWKEYS 0,2,1 http://www.prasansoft.com

5 REM This command allows you to document your program. The REM command indicates the start of a 'remark' in your program Syntax Rem Example rem CONTROL CAMERA USING ARROWKEYS 0,2,1 http://www.prasansoft.com

6 Result Step-03


Download ppt "Game Programming Step-03 How to control the keyboard in Game."

Similar presentations


Ads by Google