mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
Map init position, pwd display, instruct speed
This commit is contained in:
1 parent
b41e67ee0b
commit
849e669147
3 files changed
+4
-4
No files matched your search
@@ -74,7 +74,7 @@ const genOption = (nodes, edges) => ({
|
|||||||
symbolSize: [fullwidth / 13, fullwidth / 30],
|
symbolSize: [fullwidth / 13, fullwidth / 30],
|
||||||
roam: 'move',
|
roam: 'move',
|
||||||
zoom: 1.5,
|
zoom: 1.5,
|
||||||
center: ['150%', '50%'],
|
center: ['120%', '30%'],
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
fontSize: fullwidth / 90,
|
fontSize: fullwidth / 90,
|
||||||
|
|||||||
@@ -121,6 +121,6 @@ li.discovered {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a.pwd {
|
a.pwd {
|
||||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
|
box-shadow: 0 0 40px rgba(255, 255, 0, 20);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -48,10 +48,10 @@ async function handleCommand(command) {
|
|||||||
|
|
||||||
async function handleResponse({ responses, hints, end }) {
|
async function handleResponse({ responses, hints, end }) {
|
||||||
if (responses) {
|
if (responses) {
|
||||||
await printResponses(responses, 60)
|
await printResponses(responses, 120)
|
||||||
}
|
}
|
||||||
if (hints) {
|
if (hints) {
|
||||||
await printHints(hints, 60)
|
await printHints(hints, 120)
|
||||||
}
|
}
|
||||||
if (end) {
|
if (end) {
|
||||||
console.log(colorize('Quest completed!', 'blue'))
|
console.log(colorize('Quest completed!', 'blue'))
|
||||||
|
|||||||
Reference in new issue
Block a user