cocos2dx button的使用以及cocostudio/ObjectFactory.h: No such file or directory錯誤解決方案

上一篇博客裏面講過menu,在跟玩家交互的過程當中,咱們有些時候也須要使用到一些獨立的button,cocos2dx中也有相應的button的控件能夠使用,下面咱們來看看如何進行使用。html 首選須要包含所須要的頭文件:node #include "ui/CocosGUI.h" 而後爲了使用方便,咱們設置一下命名空間: using namespace ui;接下來咱們來建立一個簡單的button
相關文章
相關標籤/搜索