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 over 10 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?

walzer@cocos2d-x.org 2014-10-08 02:52

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

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8386

Atom PDF

Status:Closed
Start date:2014-03-28
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-