Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: nacltoons/src/FrontEnd.h

Issue 12226130: [nacltoons] Add initial frontend and physics game scenes. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nacltoons/src/FrontEnd.h
diff --git a/nacltoons/src/FrontEnd.h b/nacltoons/src/FrontEnd.h
new file mode 100644
index 0000000000000000000000000000000000000000..028db493d4b7f0d2cd86d671dad168fbe0dff732
--- /dev/null
+++ b/nacltoons/src/FrontEnd.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 The Native Client Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef FRONTEND_H
+#define FRONTEND_H
+
+#include "cocos2d.h"
+
+USING_NS_CC;
+
+/**
+ * Front end scene and layer.
+ */
+class FrontEnd : public CCLayerColor
+{
binji 2013/02/12 22:51:53 nit: { on previous line
Sam Clegg 2013/02/12 23:07:38 Done.
+ public:
+ FrontEnd() {}
+ ~FrontEnd() {}
+ CREATE_FUNC(FrontEnd);
+ virtual bool init();
+ static CCScene* scene();
+
+ private:
+ // menu callbacks
+ virtual void startGame(CCObject* sender);
+};
+
+#endif // !FRONTEND_H

Powered by Google App Engine
This is Rietveld 408576698