2019-03-09 23:49:45 +00:00
|
|
|
( P E T E )
|
|
|
|
|
2019-03-10 00:59:52 +00:00
|
|
|
13 8 N ' {car} defentity car
|
2019-03-09 23:49:45 +00:00
|
|
|
|
2019-03-10 00:59:52 +00:00
|
|
|
car :touch
|
|
|
|
1 player.state DRIVING f!
|
|
|
|
car entity>pos player entity.pos!
|
2019-03-09 23:49:45 +00:00
|
|
|
;entity
|
|
|
|
|
|
|
|
:noname
|
2019-03-10 23:51:24 +00:00
|
|
|
:| player yield
|
2019-03-10 00:59:52 +00:00
|
|
|
player.driving? not if car yield then
|
|
|
|
0 |; ' entities redefine
|
2019-03-09 23:49:45 +00:00
|
|
|
|
2019-03-14 00:43:38 +00:00
|
|
|
:| touch-begin S leaving? dup
|
|
|
|
if player.driving? not
|
|
|
|
if pete say" It's too far to walk to town."
|
|
|
|
else 5 10 road.jor queue-level
|
|
|
|
then
|
|
|
|
then
|
|
|
|
touch-next 13 8 2= player.driving? and dup
|
|
|
|
if 0 player.state DRIVING f!
|
|
|
|
12 8 tile>world player entity.pos!
|
|
|
|
then
|
|
|
|
touch-next 12 7 2= player.driving? not and dup
|
|
|
|
if 16 9 petehous.jor queue-level then
|
2019-03-12 01:57:22 +00:00
|
|
|
touch-last |; ' player-touch redefine
|
2019-03-09 23:49:45 +00:00
|
|
|
s" pete.map" load-map
|
|
|
|
; ' onload redefine
|