Compare commits
4 Commits
a113b88b1a
...
fb98a82d6b
Author | SHA1 | Date |
---|---|---|
lee2sman | fb98a82d6b | |
lee2sman | f49d77381b | |
lee2sman | 653d9b2a95 | |
lee2sman | 4afc7ece8b |
|
@ -1811,3 +1811,13 @@ undefined
|
|||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
undefined
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"position":{"x":4,"y":5},"avatar":"@","movedToday":false,"life":null}
|
||||
{"position":{"x":17,"y":5},"avatar":"@","movedToday":false,"life":null}
|
|
@ -1 +1 @@
|
|||
[{"name":"A tale of Orange Sort","symbol":"⎅","description":"Mainly dealing with Orange Sort. This is a well-loved volume.\n By Dominic Glover.","position":{"x":3,"y":6}}]
|
||||
[{"name":"","symbol":"R","description":"A tiny velvet pouch","position":{"x":25,"y":2}},{"name":"Simply Mirthful Base: Wide Walk","symbol":"⏍","description":"A plain volume on Mirthful Base. The book has hand-written notes throughout.\n By Ona Streich.","position":{"x":20,"y":3}}]
|
File diff suppressed because one or more lines are too long
10
TODO.md
10
TODO.md
|
@ -4,20 +4,21 @@
|
|||
- [ ] render text descriptions at bottom
|
||||
|
||||
## Roadmap
|
||||
- [X] curses-like screendraw system
|
||||
- [ ] ability to pray / sing / meditate / wonder / think / dance?
|
||||
- [ ] when else does it create new level? after date/time passes? when you walk off map?
|
||||
- [o]
|
||||
- [X] fixed number of moves limit before you *fall asleep*
|
||||
- [ ] background of tiles becomes gray (twilight), then black (nightfall) before you fall asleep?
|
||||
- [ ] ability to pray / sing / meditate / wonder / think / dance? / eat
|
||||
- [ ] ability to drop items
|
||||
- [ ] programmable robot pet? - (you feed it logo commands to retrieve things?)
|
||||
- [o] check collision with item, read out message
|
||||
- [X] check collision with item, read out its name
|
||||
- [ ] add parse (--view?) to look at/read items in inventory (can't be used? just read/looked at?)
|
||||
- [ ] help system
|
||||
|
||||
## Completed
|
||||
|
||||
- [X] curses-like screendraw system
|
||||
- [X] check collision with item, read out message
|
||||
- [X] check collision with item, read out its name
|
||||
- [X] generate descriptions for items that i'm happy with
|
||||
- [X] inventory file to save inventory
|
||||
- [X] save date and check for today's date (if so, you cannot move, but can you do something else?)
|
||||
|
@ -33,3 +34,4 @@
|
|||
## CLOSED Issues
|
||||
- [X] i'm creating terrain but it's being overwritten (?) by old terrain file. fix.
|
||||
- [X] not all emoji are same width so different size players cause map row to get off of lined up grid
|
||||
- [X] breaks when you go above or below screen. (so prevent that).
|
||||
|
|
1
dotd.js
1
dotd.js
|
@ -208,7 +208,6 @@ let grab = () => {
|
|||
//---------------CREATE DUNGEON -----------------------------------
|
||||
let createDungeon = () => {
|
||||
dungeon = Array.from(Array(height), () => new Array(width))
|
||||
|
||||
}
|
||||
|
||||
//---------------CREATE PLAYER ----------------------------------
|
||||
|
|
16
village.js
16
village.js
|
@ -97,22 +97,30 @@ function checkKeys(key){
|
|||
case 'right': //vim key 'l' or right-arrow
|
||||
case 'l':
|
||||
//program.write('moved right');
|
||||
player.position.x++;
|
||||
if (player.position.x<width-1){
|
||||
player.position.x++;
|
||||
}
|
||||
break;
|
||||
case 'left': //vim key 'h' OR left-arrow
|
||||
case 'h':
|
||||
//program.write('moved left');
|
||||
player.position.x--;
|
||||
if (player.position.x>0){
|
||||
player.position.x--;
|
||||
}
|
||||
break;
|
||||
case 'up': //vim key 'k' or up-arrow
|
||||
case 'k':
|
||||
//program.write('moved up');
|
||||
player.position.y--;
|
||||
if (player.position.y>0){
|
||||
player.position.y--;
|
||||
}
|
||||
break;
|
||||
case 'down': //vim key 'j' or down-arrow
|
||||
case 'j':
|
||||
//program.write('moved down');
|
||||
player.position.y++;
|
||||
if (player.position.y<height-1){
|
||||
player.position.y++;
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
program.write('picked up something');
|
||||
|
|
Loading…
Reference in New Issue