Projects > cpp > Issues > Bug #4587

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Name of template files HelloWorldScene.cpp/.h is confusing and inconsistent

Bug #4587 [Closed]
bunnyhero 2014-03-28 05:20 . Updated about 8 years ago

When I first started using Cocos2d-x, I found it confusing and not helpful that:

  • The files are named HelloWorldScene.cpp/.h.
  • The class is a subclass of Layer, not Scene, despite what the filename implies.
  • The class is actually named HelloWorld!

This is unnecessarily inconsistent. Why not name the files HelloWorld.cpp and HelloWorld.h?

dreifrankensoft 2014-03-28 06:13

Maybe the name of the class 'HelloWorld' should be changed during this issue too?
E.g.: class Template and Template.cpp and Template.h or class RenameMe and RenameMe.cpp and RenameMe.h or class Example and Example.cpp and Example.his better? 2014-10-08 02:52

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2014-03-28
Due date:
% Done:


Target version:-