Skip to content

Commit

Permalink
add res and src
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniratman committed May 22, 2019
1 parent da0c584 commit 0be2aed
Show file tree
Hide file tree
Showing 68 changed files with 11,898 additions and 0 deletions.
Binary file added res/HelloWorld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/app/MyApp.lua
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
17 changes: 17 additions & 0 deletions src/app/views/MainScene.lua
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
16 changes: 16 additions & 0 deletions src/cocos/3d/3dConstants.lua
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,
}
Loading

0 comments on commit 0be2aed

Please sign in to comment.