mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
- Created a new JSON scenario file for testing NPC sprite functionality. - Implemented a simple HTTP server with caching headers for development purposes. - Added an HTML page for testing NPC interactions, including system checks and game controls. - Introduced a separate HTML page for testing item delivery through person chat interactions.
68 lines
1.3 KiB
CSS
68 lines
1.3 KiB
CSS
/**
|
|
* NPC Interaction Prompts
|
|
*
|
|
* Shows "Press E to talk to [Name]" when near an NPC
|
|
*/
|
|
|
|
.npc-interaction-prompt {
|
|
position: fixed;
|
|
bottom: 40px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
|
|
background-color: #1a1a1a;
|
|
border: 2px solid #4a9eff;
|
|
border-radius: 4px;
|
|
padding: 12px 20px;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
|
|
font-family: 'Arial', sans-serif;
|
|
font-size: 13px;
|
|
color: #fff;
|
|
|
|
z-index: 1000;
|
|
animation: slideUp 0.3s ease-out;
|
|
box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
|
|
}
|
|
|
|
.npc-interaction-prompt .prompt-text {
|
|
color: #4a9eff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.npc-interaction-prompt .prompt-key {
|
|
background-color: #2a2a2a;
|
|
border: 2px solid #4a9eff;
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
|
|
font-weight: bold;
|
|
color: #4a9eff;
|
|
font-size: 12px;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
/* On mobile, adjust positioning */
|
|
@media (max-width: 768px) {
|
|
.npc-interaction-prompt {
|
|
bottom: 20px;
|
|
padding: 10px 15px;
|
|
font-size: 12px;
|
|
}
|
|
}
|