QBasic Tutorial 33 - Moving an Object With the Keyboard - QB64


This tutorial will show how to move an object (drawn circle) around the screen using keyboard keys. When the user presses “A”, the circle will move up. When the user presses “Z”, the circle will move down. When the the user presses “S”, the circle will move to the left. When the user presses “D”, the circle will move to the right.

Code Download
QBT33_1.BAS
QBT33_2.BAS
QBT33_3.BAS
QBT33_4.BAS



QBasic / QB64 Links

QB64 is a free download at www.qb64.com

QB64 Wiki & Manual is found at qb64.com/wiki.html

QBasic 1.1 comes with OldDOS. A zip file of OldDOS can be found at www.pcxt-micro.com/download.html

QBasic 1.1 needs DOSBox to run on Windows Vista and greater, Mac, and Linux.
DosBox is a free download at www.dosbox.com

Free QB64/QBasic Code

QBasic.Net - www.qbasic.net

Pete's QBasic Site - www.petesqbsite.com/index.php

QB45 - qb45.org

Phatcode - games.phatcode.net