1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-10-04 03:59:49 +00:00

Rogue intro/ending updates. New map.

This commit is contained in:
David Schmenk 2014-12-28 17:50:39 -08:00
parent bccbb24601
commit bfa25bf2b6
5 changed files with 22 additions and 71 deletions

View File

@ -1,62 +0,0 @@
##...$&$&.###......#######[-]####............................T
#.....#######. .&##..*...*..#.##########......*...*.......
.....###..... .###.........#.#.......###...##.....##....#
#........ .####.........#...#####.##&...##.T...##....#
##. ..###.........#.#.#.....####....*...*.......
#### ....######+#####.#.#.##########.........<<<<<
######### ..........#.#&#.#.#.#..........#####....>>>>>>
##########......T.........#.#..#..#.#.########....##...<<<<<<<
.......##############*....#.#####.#.#.#...#.&####..:...>>>>>>>
........############.....T#.......#.#...#T...#.##*.:....<<<<<<
.........................##########.##########.##..#...>>>>>>$
........................##.....................##..#..<<<<<<..
.........................#+#########.########.###*.#.>>>>>....
...........................#..................##...#.<<<<....#
........................####.###################*..#.>>>>...##
...................................................#.<<<....##
...................................................#.>>>...O.#
...................................................#........&#
...........................................................###
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..*...*.......................................................
..#[=]#.......................................................

View File

@ -0,0 +1 @@
##....&$&#####.......##..#[-]#..#...........................T. #.....#######. .&##..*...*..#.##########......*...*......& .....###..... .###.........#.#.......###...##.....##....# #........ .####.........#...#####.##&...##.T...##....# ##. ..###.........#.#.#.....####....*...*......& #### ....######+#####.#.#.##########.........<<<<< ######### ........###.#&#.#.#.#..........#####....>>>>>> ###....&##......T........##.#..#..#.#.########....##...<<<<<<< &#.## ##############*....#.#####.#.#.#...#.&####..:...>>>>>>> ...... ############.....T#.......#.#...#T...#.##*.:....<<<<<< ###.........#####........##########.########:#.##..#...>>>>>>$ ##.....................*##.....................##..#..<<<<<<.. ..&###*..##..............#+##################.###*.#.>>>>>.... ..#####..##......#&........#..................##...#.<<<<....# ..&##O...#.....####....*####.###################*..#.>>>>...## ...............T##*....##.....................#....#.<<<....## #...........&..........#########.*.*.########.#O...#.>>>...O.# ####..................##.........#.#.....###..#.##.#........&# ..$.########........###..#########.####+####.##.##.#.......### #####......##########.&.##....O$&#.#..&.##*..#.....##....##... ......*###............###..#######.#.T..##..##.....##########+ .####....##############...*#...&O#.#...*&#O.#...##.....O##&... .&..####.....................#####.#..T..##.#...##............ ###T#&.#######################.....##.....#.#...*...##....*##. ..####.........................###..##....#.#.......##*....##. &....###########+###############.....###.&#.#..&##......##.... .#.O.#...#...&.......#&###.......###...##.#.#.T....*##....*... ...#...#...#...#...#.....####.####Z###..#.#.#.......##........ .#...#.&O#.*.#...#...#*.#Z#.#+#.......*.#.#.#&.........T....&. ..,#...#...#...#...#......#.............#O#+####...&......#### .#.&.#...#...#...#....&..##...#.........#+#.########.....####& ...#..Z#...#&..#..*...####.O..:.&.......#.:.#......O.......... .#...#...#...#.......##..#....:.........*.:.*Z................ &.......*.......######...##&..#::::::#....:.................## ####........#####.........###.............:.&.#::::::::::::::# ...##########...............#......O......:............&...... ............................#.............#......Z............ ............................##.............................##. .............................########%######################## ...open space............###########..:....................... ........................##............:..Z.................... ....fill it in!!.......##..############....................... .......................#..##.................................. ......................##...:.................................. ......................#....:........open space................ ......................#.####.................................. ......................#.#............fill it in!.............. ......................#.#..................................... #######################+#..................................... ###...&##...#...###.#...##.................................... &#.Z....#....Z...#.......#.................................... ........*........*.......#.................................... ......................*###.................................... . ...............#.................................... . ............#.................................... ......... ...........##.................................... .......... .......Z..&#.................................... .R.......... ..&.......#.................................... ........R.... ........*##.................................... ..*...*.....<<<<........##.................................... .&#[=]#&....$>>>>.......&#....................................

View File

@ -299,11 +299,11 @@ export def drawmap(xorg, yorg, viewfield, viewdir, lightdist, viewdist)
// //
xmap = xorg - xcentr xmap = xorg - xcentr
if xmap < 0 if xmap < 0
l = mapcols - 1 l = mapcols
xscr = -xmap xscr = -xmap
xmap = 0 xmap = 0
else else
l = mapcols - xmap - 1 l = mapcols - xmap
xscr = 0 xscr = 0
fin fin
if xscr + l > scrnwidth if xscr + l > scrnwidth

View File

@ -1,5 +1,5 @@
import STDLIB import STDLIB
predef syscall, call, memset, getc, putc, puts, putln predef syscall, call, memset, getc, gets, putc, puts, putln
predef memset, memcpy predef memset, memcpy
predef heapmark, heapallocalign, heapalloc, heaprelease, heapavail predef heapmark, heapallocalign, heapalloc, heaprelease, heapavail
byte MACHID byte MACHID
@ -84,7 +84,7 @@ struc t_player
word oil word oil
byte gold byte gold
byte key byte key
byte[32] name[32] byte[16] name
end end
byte player = 0 // xpos byte player = 0 // xpos
@ -98,7 +98,7 @@ byte = 100 // energy
word = 500 // oil word = 500 // oil
byte = 0 // gold byte = 0 // gold
byte = 0 // key byte = 0 // key
byte[32] = "Player" byte[16] = "Player"
predef moveplayer predef moveplayer
@ -132,10 +132,13 @@ byte keystr = "Key"
// Messages // Messages
// //
word instr
byte namestr = "\nGreetings Warrior,\n what is your name"
byte prepstr = "\nPrepare"
byte quitstr = "Are you sure you want to quit?" byte quitstr = "Are you sure you want to quit?"
byte youmadeitstr = "You made it out alive with $" byte youmadeitstr = "You made it out alive with $"
byte youdiedstr = "You perished inside the catacombs :-(" byte youdiedstr = "You perished inside the catacombs :-("
byte againstr = "\n\nPlay again by typing: +rogue\n"
// //
// Utility functions // Utility functions
// //
@ -284,6 +287,9 @@ def findentities
setmaptile(xmap, ymap, FLOOR_TILE) setmaptile(xmap, ymap, FLOOR_TILE)
wend wend
next next
if not (ymap & 7)
putc('.')
fin
next next
end end
@ -575,6 +581,13 @@ end
// //
loadmap loadmap
puts(@namestr)
instr = gets($BA)
if ^instr > 15
^instr = 15
fin
memcpy(@player.name, instr, ^instr + 1)
puts(@prepstr)
findentities findentities
lighttorches lighttorches
repeat repeat
@ -595,6 +608,6 @@ if player.health > 0
else else
puts(@youdiedstr) puts(@youdiedstr)
fin fin
putc($0D) puts(@againstr)
done done

View File

@ -236,8 +236,7 @@ t_token scan(void)
for (scanshift = scanpos + 1; *scanshift; scanshift++) for (scanshift = scanpos + 1; *scanshift; scanshift++)
scanshift[0] = scanshift[1]; scanshift[0] = scanshift[1];
} }
// else scanpos++;
scanpos++;
} }
if (!*scanpos++) if (!*scanpos++)
{ {