home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 827 b | 26 lines |
- '==============
- 'Example22.Amos
- '==============
-
-
- Rem A pretty amazing starfield running under interupts using the SHIFT command
- '
- Rem The project was to make the joystick control the starfields left and right
- Rem movement. As you can see it's pretty simple. I have added two features:
- Rem The starfield starts off stationary, this is because no SHIFT command
- Rem has been called until a joystick movement is detected. I have also
- Rem added the ability to stop the starfield by pressing fire.
- Rem Click the mouse to exit the program.
- Rem See chapter 22 for more in-depth info.
- '------------------------------------------------------------------------------
- Hide On
- Unpack 10 To 3
-
- Repeat
- If Jleft(1) Then Shift Up 1,1,31,1
- If Jright(1) Then Shift Down 1,1,31,1
- If Fire(1) Then Shift Off
- Until Mouse Key
-
- Default
- Edit