ending screen!

This commit is contained in:
Jeremy Penner 2020-04-10 19:16:52 -04:00
parent a66acdb7ea
commit 41bfd439db
32 changed files with 34 additions and 14 deletions

BIN
boot.jim

Binary file not shown.

BIN
debug.jim

Binary file not shown.

BIN
defs.jim

Binary file not shown.

BIN
end.jim Executable file

Binary file not shown.

27
end.jor
View file

@ -1,9 +1,26 @@
( E N D ) ( E N D )
:noname : line" [ ' s" , ] :| 20 center 10 texty +! |; , ; immediate
s" end.map" load-map : end-tick
7 11 tile>world Jaye entity.pos! fuck s" endep1" loadscr
6 12 tile>world Neut entity.pos! ^ENTER wait-key
with-gord WHITE text-color !
35 15 2 10 box
20 texty ! 4 textleft !
line" Jaye and Gord have found their"
line" way to the elevator!"
line" But have they found their way"
line" to freedom?"
line" Are there others in the building"
line" in need of help?"
line" And what fates awaits Neut and"
line" their shifty new friend Libb?"
10 texty +!
line" Register today to find out!!"
^ENTER wait-key
quit ;
:noname
' noop ' draw redefine
' end-tick ' tick redefine
; ' onload redefine ; ' onload redefine

BIN
endep1.gfx Executable file

Binary file not shown.

BIN
endep1.tif Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
game.jim

Binary file not shown.

View file

@ -27,8 +27,6 @@ var player.prevdir
32 const GORDSIT userword 32 const GORDSIT userword
64 const HASLIBB userword 64 const HASLIBB userword
1 player.state HASNEUT f!
: noclip player.state NOCLIP fnot! ; userword : noclip player.state NOCLIP fnot! ; userword
var posessed-rexx var posessed-rexx
@ -483,6 +481,8 @@ Gord @ const gord-listener
: chain-gord-listener gord-listener execute ; : chain-gord-listener gord-listener execute ;
:noname :noname
HASNEUT player.state !
human-view
0 objects ! 0 ticking-objects ! 0 visible-objects ! 0 objects ! 0 ticking-objects ! 0 visible-objects !
Gord gord-listener listener! Gord gord-listener listener!
' noop ' on-gord-sit redefine ' noop ' on-gord-sit redefine

BIN
help.gfx Executable file

Binary file not shown.

BIN
help.tif Executable file

Binary file not shown.

BIN
input.jim

Binary file not shown.

BIN
jiles.jim

Binary file not shown.

BIN
job.jim

Binary file not shown.

View file

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#define MEM_SIZE 32768 #define MEM_SIZE 33792
#define STACK_SIZE 64 #define STACK_SIZE 64
#define RSTACK_SIZE 64 #define RSTACK_SIZE 64

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
level.jim

Binary file not shown.

BIN
map.jim

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
save.sav Executable file

Binary file not shown.

BIN
state.jim

Binary file not shown.

BIN
timer.jim

Binary file not shown.

BIN
title.jim

Binary file not shown.

View file

@ -17,18 +17,21 @@
: strlen ( s -- n ) 0 swap begin dup b@ while 1 + swap 1 + swap repeat drop ; : strlen ( s -- n ) 0 swap begin dup b@ while 1 + swap 1 + swap repeat drop ;
: titles ( s -- ) begin dup b@ dup while titlec 1 + repeat drop drop ; : titles ( s -- ) begin dup b@ dup while titlec 1 + repeat drop drop ;
: optionbg ( c -- ) dup 10 textx ! titlec 27 textx ! titlec ; : optionbg ( c -- ) dup 10 textx ! titlec 27 textx ! titlec ;
: option ( s -- ) dup strlen 1 >> 19 swap - textx ! titles ; : center ( s dx ) over strlen 1 >> - textx ! titles ;
: option ( s -- ) 19 center ;
intern save.sav intern save.sav
var savedlevel var savedlevel
defer redraw-menu
: show-title-bg s" title" loadscr ;
: startgame ( n -- ) show-title-bg s" start.jor" loadjor ;
: help s" help" loadscr ^ENTER wait-key show-title-bg redraw-menu ;
: startgame ( n -- ) s" title" loadscr s" start.jor" loadjor ;
: menu-opts : menu-opts
s" New Game" :| 1 startgame |; yield s" New Game" :| 1 startgame |; yield
s" Continue" savedlevel @ if :| savedlevel @ startgame |; else 0 then yield s" Continue" savedlevel @ if :| savedlevel @ startgame |; else 0 then yield
s" Help" 0 yield s" Help" ' help yield
s" Register" 0 yield
s" Quit" ' quit yield s" Quit" ' quit yield
done ; done ;
var menu-selected var menu-selected
@ -42,7 +45,7 @@ var menu-selected
dup menu-selected @ = if 15 else sp then optionbg dup menu-selected @ = if 15 else sp then optionbg
1 + 1 +
more drop ; more drop ;
: redraw-menu WHITE text-color ! 21 11 8 72 box draw-menu ; :noname WHITE text-color ! 21 9 8 72 box draw-menu ; ' redraw-menu redefine
: exec-selected 0 menu-opts each swap drop : exec-selected 0 menu-opts each swap drop
over menu-selected @ = if over menu-selected @ = if
@ -55,7 +58,7 @@ var menu-selected
:noname :noname
save.sav open fget close savedlevel ! save.sav open fget close savedlevel !
fuck 0 split-screen s" title" loadscr redraw-menu fuck 0 split-screen show-title-bg redraw-menu
:| ^ENTER key-pressed if exec-selected then :| ^ENTER key-pressed if exec-selected then
^UP key-pressed if -1 menu-select then ^UP key-pressed if -1 menu-select then
^DOWN key-pressed if 1 menu-select then ^DOWN key-pressed if 1 menu-select then