| 267 | } |
| 268 | |
| 269 | GameObject* GameObject::create(std::string_view frame, std::string_view glowFrame) |
| 270 | { |
| 271 | auto pRet = new (std::nothrow) GameObject(); |
| 272 | |
| 273 | if (pRet && pRet->init(frame, glowFrame)) |
| 274 | { |
| 275 | pRet->autorelease(); |
| 276 | return pRet; |
| 277 | } |
| 278 | AX_SAFE_DELETE(pRet); |
| 279 | return nullptr; |
| 280 | } |
| 281 | |
| 282 | void GameObject::setPosition(const ax::Vec2& pos) |
| 283 | { |