feat(vagrant): sprint (shift+wasd) + backpack interaction
Sprint: holding shift while WASD doubles player_speed (120 → 240) and walk-anim play-speed (0.45 → 0.9). Mid-walk sprint toggle uses puppet v0.4.4 set_play_speed → no cycle restart. Releasing shift or stopping WASD reverts to normal speed in next frame. Interaction: 'interact' bound to E. Proximity trigger registered on the backpack sprite at (350, 400) with range 40px. Pressing E within range fires callback that prints a log message with the actor distance. Uses existing lib-core.interaction (registered at init, polled by interaction.update(player.x, player.y) each frame). New dep: lib-core.interaction ^0.1.0. Module version 0.4.0 → 0.4.4 (syncs with puppet bump).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "vagrant-skeleton",
|
||||
"version": "0.4.0",
|
||||
"version": "0.4.4",
|
||||
"kind": "module",
|
||||
"api": "^0.1",
|
||||
"ci_frames": 60,
|
||||
@@ -15,7 +15,8 @@
|
||||
{"id": "lib-core.camera", "version": "0.3.0"},
|
||||
{"id": "lib-core.render", "version": "0.1.0"},
|
||||
{"id": "lib-core.maps", "version": "0.1.2"},
|
||||
{"id": "lib-core.puppet", "version": "0.4.3"},
|
||||
{"id": "lib-core.puppet", "version": "0.4.4"},
|
||||
{"id": "lib-core.interaction", "version": "0.1.0"},
|
||||
{"id": "lib-asset.prototype-subterrain", "version": "0.1.1"}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user