我試圖用javafx創建一個簡單的RPG遊戲。到目前爲止,我已經讓我的角色出現在屏幕上,四處走動,而不是遇到障礙。我已經通過使用板類,它作爲一個網格的做到了這一點: public class TestBoard extends Pane{
public static final int TILE_SIZE = 40;
public static final int X_DIM
我有一個名爲profile的命名路線,我希望能夠以json的身份訪問它。但是當我查看我的耙路線輸出時,我發現(。:格式)丟失。我如何將它添加到命名路線? user GET /users/:id(.:format) {:action=>"show", :controller=>"users"}
profile /:username {:action=>"show", :controller