forked from moai/moai-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
27 lines (22 loc) · 753 Bytes
/
Copy pathmain.lua
File metadata and controls
27 lines (22 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
----------------------------------------------------------------
-- Copyright (c) 2010-2017 Zipline Games, Inc.
-- All Rights Reserved.
-- http://getmoai.com
----------------------------------------------------------------
MOAISim.openWindow ( "test", 320, 480 )
viewport = MOAIViewport.new ()
viewport:setSize ( 320, 480 )
viewport:setScale ( 320, 480 )
layer = MOAIPartitionViewLayer.new ()
layer:setViewport ( viewport )
layer:pushRenderPass ()
prop = MOAIProp.new ()
prop:setDeck ( '../resources/moai.png' )
prop:setPartition ( layer )
prop:moveRot ( 0, 0, 360, 5 )
prop = MOAIProp.new ()
prop:setDeck ( '../resources/test.png' )
prop:setColor ( 1, 1, 1, 0 )
prop:setScl ( 2, 2, 1 )
prop:setPartition ( layer )
prop:moveRot ( 0, 0, -360, 5 )