Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #3042
| Newsgroups | comp.sys.apple2.programmer |
|---|---|
| Date | 2016-09-05 21:10 -0700 |
| References | <91b93535-5977-4360-b810-8453b327b900@googlegroups.com> <18163da9-f028-4402-83e6-7ef95c5c216f@googlegroups.com> |
| Message-ID | <1e5c3ba0-e3b7-4c75-89fb-1501ddeece8a@googlegroups.com> (permalink) |
| Subject | Re: String Input integrated with animation routine |
| From | Mark Lemmert <mark.lemmert@gmail.com> |
On Monday, September 5, 2016 at 10:04:25 PM UTC-5, gid...@sasktel.net wrote: > So in conclusion, you really only need one keypress check, which comes after the end of each animated draw cycle. If $C000 goes negative, then handle the keypress, otherwise continue with animation routine. > 2 screen bytes by 16 lines isn't very much and should easily handle an input character without a significant > delay before the next animation. There is a lot of code that determines whether each tile should have animation drawn for it, which has grown bulky due to a lot of corner cases, and is probably due for some reorganization. Regardless, it turns out you were spot on in your assessment. As mentioned in my reply to Michael, it turns placing a keypress check in my delay loop is enough, which only runs after the main animation loop. I added one more at the start of each iteration of the main animation loop just be extra sure. > And you have that backwards. A check for keypress should result in a BMI to pass control over to the >string input routine, which should only handle one character input at a time, then return to the animation >sequence. Ah, right :-) I had BPL stuck in my head; I'm actually doing LDA $C000, then BPL to skip ahead if no keypress detected, then if BPL isn't true call the input routine
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
String Input integrated with animation routine Mark Lemmert <mark.lemmert@gmail.com> - 2016-09-05 11:47 -0700
Re: String Input integrated with animation routine Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-09-05 14:30 -0700
Re: String Input integrated with animation routine Michael J. Mahon <mjmahon@aol.com> - 2016-09-05 22:40 -0500
Re: String Input integrated with animation routine Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-09-06 13:02 -0700
Re: String Input integrated with animation routine Mark Lemmert <mark.lemmert@gmail.com> - 2016-09-05 20:55 -0700
Re: String Input integrated with animation routine mmphosis <mmphosis@macgui.com> - 2016-09-05 23:27 +0000
Re: String Input integrated with animation routine gids.rs@sasktel.net - 2016-09-05 20:04 -0700
Re: String Input integrated with animation routine Mark Lemmert <mark.lemmert@gmail.com> - 2016-09-05 21:10 -0700
csiph-web