Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #2678
| Newsgroups | comp.sys.apple2.programmer |
|---|---|
| Date | 2016-04-07 11:24 -0700 |
| References | (1 earlier) <820f54b3-5b18-4d78-8333-4831858df58b@googlegroups.com> <210eba75-677e-497b-939f-ee61f773b114@googlegroups.com> <62b03bbd-19ab-4169-a25f-87d72cf175dc@googlegroups.com> <cee53883-46cf-4bf3-a031-222360f2e8cf@googlegroups.com> <1cf59cc0-858f-4bd7-8c7e-5eb2e5f0909e@googlegroups.com> |
| Message-ID | <b53b54ef-d551-4248-a761-e1f682c8e24d@googlegroups.com> (permalink) |
| Subject | Re: My current project - a new Apple II RPG |
| From | Mark Lemmert <mark.lemmert@gmail.com> |
On Wednesday, April 6, 2016 at 4:19:27 PM UTC-5, qkumba wrote:
> I'm fine with players can't traverse across rivers except via horse, and I
> like limited swimming in deep water. I think that they are good ideas.
Thanks for the feedback, I really appreciate it!
>> What I'm trying to do is find a way for both the swimming feature and the
>> ability for horses to jump rivers (currently done via (J)ump plus arrow
>> keyfor direction) which makes sense.
> That will lead to an interesting situation - if the player requests the
> horse to jump a river, which apparently requires two independent moves of
> the player sprite to complete, it is possible for a monster to move into
> the final square first, causing the horse to land in the river, and
> possibly unable to move further unless a free square exists in another
> direction. If the player takes damage from simply being in the water for
> too long (because of the resulting combat, for example), then the player
> might die simply from bad luck. That should be a shame, but maybe that's
> just how it must be. A similar issue exists in some other games, so it has
> precedent.
Great observations, on screen it totally does look like two independent moves by the horse to execute the jump. I wondering if it might actually look a little better as one move that traverses two tiles, but it wouldn't be easy to change because (J)ump piggybacks on other code, which also turns out to help it avoid collisions with mobs.
Within the game engine, here is how the moves for the player & mob sprites are processed:
1) Player's moves
2) Mob's position is adjusted relative to the player
3) Mob moves or passes, depending on the circumstances
Step 1 is executed one or more times depending on the value of PLAYER.TRANSPORT.SPEED, which is $01 when the player is walking.
When the player executes a (Y)ell command while on a horse, this increases the transport speed to $02 ("fast horse"), resulting in the horse mounted player moving 2:1 versus the mobs, because step 1 and 2 are executed twice before step 3 is executed.
The above movement architecture was implemented before the (J)ump command for horses was contemplated, so (J)ump is shoe horned in, but it seems to work out well as far I as I've seen so far.
When the (J)ump command is executed, PLAYER.TRANSPORT.SPEED is temporarily increased to $02 which tricks the movement routine into thinking the player has "fast horse" enabled, whether it actually is enabled or not. The collision controls detect the (J)ump command and override the normal restriction on rivers.
Since the (J)ump command piggybacks on the "fast horse" code, the mob never has the opportunity to move before the horse jump is completed. I wish I could say it was planned that way, but I got lucky that the initial movement implementation made this the natural result of adding (J)ump.
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-26 19:38 -0700
Re: My current project - a new Apple II RPG Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-03-27 08:21 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-27 14:31 -0700
Re: My current project - a new Apple II RPG Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-03-27 18:20 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-29 12:04 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-30 19:07 -0700
Re: My current project - a new Apple II RPG wssimms@gmail.com - 2016-03-30 19:35 -0700
Re: My current project - a new Apple II RPG Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-03-31 08:40 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-03-31 09:06 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-03-31 09:37 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-03-31 11:11 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-31 14:15 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-31 13:37 -0700
Re: My current project - a new Apple II RPG wssimms@gmail.com - 2016-03-31 21:33 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-04-01 08:52 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-04-01 13:45 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-04-01 13:42 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-03-31 12:14 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-04-01 19:54 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-04-02 12:52 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-04-06 11:16 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-04-06 11:19 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-04-06 13:55 -0700
Re: My current project - a new Apple II RPG qkumba <peter.ferrie@gmail.com> - 2016-04-06 14:19 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-04-07 11:24 -0700
Re: My current project - a new Apple II RPG BLuRry <brendan.robert@gmail.com> - 2016-05-18 08:11 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-06-10 12:30 -0700
Re: My current project - a new Apple II RPG BLuRry <brendan.robert@gmail.com> - 2016-05-18 08:20 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-06-10 12:22 -0700
Re: My current project - a new Apple II RPG Mark Lemmert <mark.lemmert@gmail.com> - 2016-09-11 10:06 -0700
csiph-web