-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
11,898 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
local MyApp = class("MyApp", cc.load("mvc").AppBase) | ||
|
||
function MyApp:onCreate() | ||
math.randomseed(os.time()) | ||
end | ||
|
||
return MyApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
local MainScene = class("MainScene", cc.load("mvc").ViewBase) | ||
|
||
function MainScene:onCreate() | ||
-- add background image | ||
display.newSprite("HelloWorld.png") | ||
:move(display.center) | ||
:addTo(self) | ||
|
||
-- add HelloWorld label | ||
cc.Label:createWithSystemFont("Hello World", "Arial", 40) | ||
:move(display.cx, display.cy + 200) | ||
:addTo(self) | ||
|
||
end | ||
|
||
return MainScene |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if nil == cc.Terrain then | ||
return | ||
end | ||
|
||
cc.Terrain.CrackFixedType = | ||
{ | ||
SKIRT = 0, | ||
INCREASE_LOWER = 1, | ||
} | ||
|
||
cc.Animate3DQuality = | ||
{ | ||
QUALITY_NONE = 0, | ||
QUALITY_LOW = 1, | ||
QUALITY_HIGH = 2, | ||
} |
Oops, something went wrong.