Skip to content

Commit

Permalink
IS IT OK?
Browse files Browse the repository at this point in the history
  • Loading branch information
tjw123hh committed Aug 21, 2021
0 parents commit 218d883
Show file tree
Hide file tree
Showing 76 changed files with 11,782 additions and 0 deletions.
Binary file added res/blocks/dirt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/blocks/grass_dirt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/entities/player.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/gui/select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/icons/HelloWorld.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/weather/sun.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 218d883

Please sign in to comment.