跳到正文
itch.io Devlogs·· 3 小时前AI 评分16

《Sharpest Spear》开发日志 #5:更多控制器支持!

Sharpest Spear Devlog #5: More controller support!

AI 导读

Sharpest Spear 开发日志 #5 实现了玩家状态界面控制器支持,连接控制器时可按住 [A] 使用物品、Dpad 访问其他物品。下一步将加入可自定义控制与暂停/设置菜单。

正文

USING ITEMS WITH A CONTROLLER

Nothing very exciting for this devlog but I've been making steady progress on properly implementing controller support for the player status screen.  

When using keyboard and mouse the player will drag inventory items over to the player icon to heal, apply flint etc. using the mouse, and they can still move around using WASD:

( KEYBOARD + MOUSE: click and drag items to heal )

This now works if a controller is connected by holding down the [A] button to use an item: 


( CONTROLLER: hold down [A] to heal )

Dragging and dropping didn't feel right with a controller, especially as I want the player to be able to move around with the left stick while accessing the status screen, so trying to drag items around at the same time felt a bit clunky.  Having to hold the button down means it still takes a bit of time to heal (not just a single button press), so the player will still have to avoid combat for long enough to heal, plus it shouldn't inadvertently give controller players a particular advantage over keyboard and mouse players. 

This took longer than I expected to implement, but it feels pretty good during gameplay.  The player can also access other items using the Dpad. 


WHAT'S NEXT?

Controller support is almost there now, but I still want to add customiseable controls and a proper pause/settings menu.  

I've been doing a lot of fiddly things, bug fixes and tweaks as I go, but am looking forward to getting back to the combat mechanics, animations, overall balancing and adding more to the world and the arena.  

来源:itch.io Devlogs · npjarcade.itch.io