Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #3216
| From | vince@pianoman.cluster.toy |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Portal in Applesoft |
| Date | 2017-01-13 02:14 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrno7ge3e.fbd.vince@pianoman.cluster.toy> (permalink) |
| References | <slrno7aufh.1ef.vince@pianoman.cluster.toy> <bad25311-b4f2-4185-b345-3ba12469bae0@googlegroups.com> <slrno7ct9e.nvr.vince@pianoman.cluster.toy> <eba767ac-2b39-4183-b465-fb230fd450c9@googlegroups.com> |
On 2017-01-12, inexorabletash@gmail.com <inexorabletash@gmail.com> wrote: > On Wednesday, January 11, 2017 at 10:10:36 AM UTC-8, vi...@pianoman.cluster.toy wrote: >> Is it possible to use the mouse from Applesoft? I was actually thinking >> of maybe using the joystick interface. > > As I just relearned: > > 5 S = 4 : REM Slot - should scan for it > 10 PRINT CHR$(4)"PR#"S : PRINT CHR$(1) : PRINT CHR$(4)"PR#0" : REM Initialize mouse > 20 PRINT CHR$(4)"IN#"S : INPUT "";X,Y,B : PRINT CHR$(4)"IN#0" : REM Read mouse > 30 PRINT X,Y,B : REM x,y coords, button state (4=up, 2=pressed, 1=down, 3=released) > 40 GOTO 20 > This INPUT ends up being non-blocking so you could use it in a loop. Thanks, that works under Linapple so I can actually test it (I don't own any mouse hardware). Though I need to figure out how to trigger control-reset under Linapple (challenege, I am running Linux on a Macbook-Air, so no "break" button) as when the mouse code goes wrong Control-C doesn't work. For now I've instead uploaded a new version of the game where you can aim using the joystick. This hurts the framerate though, especially on Level 19. (Press '1' to enable joystick mode). I really should optimize the BASIC code better. Vince
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Portal in Applesoft vince@pianoman.cluster.toy - 2017-01-11 00:17 +0000
Re: Portal in Applesoft David Schmidt <schmidtd@my-deja.com> - 2017-01-10 22:39 -0500
Re: Portal in Applesoft inexorabletash@gmail.com - 2017-01-10 20:54 -0800
Re: Portal in Applesoft vince@pianoman.cluster.toy - 2017-01-11 18:09 +0000
Re: Portal in Applesoft Michael J. Mahon <mjmahon@aol.com> - 2017-01-11 15:02 -0600
Re: Portal in Applesoft Steve Nickolas <usotsuki@buric.co> - 2017-01-11 23:38 -0500
Re: Portal in Applesoft inexorabletash@gmail.com - 2017-01-11 21:27 -0800
Re: Portal in Applesoft inexorabletash@gmail.com - 2017-01-11 21:35 -0800
Re: Portal in Applesoft D Finnigan <dog_cow@macgui.com> - 2017-01-12 18:44 +0000
Re: Portal in Applesoft inexorabletash@gmail.com - 2017-01-12 19:00 -0800
Re: Portal in Applesoft inexorabletash@gmail.com - 2017-01-12 19:07 -0800
Re: Portal in Applesoft vince@pianoman.cluster.toy - 2017-01-13 02:14 +0000
Re: Portal in Applesoft ultramagnus_tcv <mikew@thecomputervalet.com> - 2017-01-12 11:30 -0600
Re: Portal in Applesoft Michael Lutynski <michael.lutynski@gmail.com> - 2017-01-13 23:19 -0800
Re: Portal in Applesoft Oliver Schmidt <ol.sc@web.de> - 2017-01-17 10:06 +0000
Re: Portal in Applesoft vince@pianoman.cluster.toy - 2017-01-17 15:21 +0000
Portal in Applesoft cybernesto <cybernesto@gmail.com> - 2017-01-17 03:46 -0800
Re: Portal in Applesoft vince@pianoman.cluster.toy - 2017-01-17 15:48 +0000
Re: Portal in Applesoft laseractiveguy@gmail.com - 2017-01-17 05:37 -0800
Re: Portal in Applesoft Michael J. Mahon <mjmahon@aol.com> - 2017-01-17 12:10 -0600
Re: Portal in Applesoft Oliver Schmidt <ol.sc@web.de> - 2017-01-19 10:42 +0000
Re: Portal in Applesoft Oliver Schmidt <ol.sc@web.de> - 2017-01-19 10:45 +0000
Re: Portal in Applesoft gids.rs@sasktel.net - 2017-01-19 09:47 -0800
Re: Portal in Applesoft Zellyn <zellyn@gmail.com> - 2017-01-19 10:12 -0800
Re: Portal in Applesoft laseractiveguy@gmail.com - 2017-01-20 17:44 -0800
csiph-web