-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1182 from PeqNP/GameKit
Update iOS Xcode project
- Loading branch information
Showing
69 changed files
with
990 additions
and
274 deletions.
There are no files selected for viewing
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
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,87 @@ | ||
--[[ | ||
@copyright (c) 2017 Upstart Illustration LLC. All rights reserved. | ||
]] | ||
|
||
local priorityOn = false | ||
|
||
MOAISim.openWindow ( "test", 320, 480 ) | ||
|
||
viewport = MOAIViewport.new () | ||
viewport:setSize ( 320, 480 ) | ||
viewport:setScale ( 320, 480 ) | ||
|
||
mainLayer = MOAILayer2D.new () | ||
mainLayer:setViewport ( viewport ) | ||
if priorityOn then | ||
mainLayer:setSortMode(MOAILayer2D.SORT_PRIORITY_ASCENDING) | ||
end | ||
MOAISim.pushRenderPass ( mainLayer ) | ||
|
||
-- Ground | ||
ground = MOAIGrid.new () | ||
ground:setSize(2, 2, 32, 32) | ||
ground:setRow(1, 2, 2) | ||
ground:setRow(2, 2, 2) | ||
ground:setRepeat(false, false) | ||
|
||
bridge = MOAIGrid.new () | ||
bridge:setSize(2, 2, 32, 32) | ||
bridge:setRow(1, 3, 0) | ||
bridge:setRow(2, 0, 0) | ||
bridge:setRepeat(false, false) | ||
|
||
sky = MOAIGrid.new () | ||
sky:setSize(2, 2, 32, 32) | ||
sky:setRow(1, 0, 10) | ||
sky:setRow(2, 0, 0) | ||
sky:setRepeat(false, false) | ||
|
||
deck = MOAITileDeck2D:new () | ||
deck:setTexture("numbers.png") | ||
deck:setSize(8, 8) | ||
deck:setRect(-0.5, -0.5, 0.5, 0.5) | ||
|
||
function addGrid(grid, priority) | ||
local prop = MOAIProp2D.new () | ||
prop:setDeck ( deck ) | ||
prop:setGrid ( grid ) | ||
prop:addLoc ( -32, -32 ) | ||
if priorityOn then | ||
prop:setPriority( priority ) | ||
end | ||
mainLayer:insertProp( prop ) | ||
end | ||
|
||
addGrid(ground, 1) | ||
addGrid(bridge, 3) | ||
|
||
-- Props | ||
layer = MOAILayer2D.new () | ||
layer:setViewport(viewport) | ||
layer:setSortMode(MOAILayer2D.SORT_Y_ASCENDING) | ||
if priorityOn then | ||
layer:setPriority(2) | ||
end | ||
|
||
deck2 = MOAITileDeck2D:new () | ||
deck2:setTexture ( "numbers.png" ) | ||
deck2:setSize ( 8, 8 ) | ||
deck2:setRect ( -16, -16, 16, 16 ) | ||
|
||
function addProp(x, y, index) | ||
local prop = MOAIProp2D.new () | ||
prop:setDeck ( deck2 ) | ||
prop:setIndex(index) | ||
prop:addLoc(x, y) | ||
layer:insertProp ( prop ) | ||
end | ||
|
||
addProp(0, 0, 4) | ||
addProp(0, -10, 5) | ||
addProp(0, -20, 6) | ||
addProp(0, -30, 7) | ||
|
||
addGrid(sky, 4) | ||
mainLayer:insertProp ( layer ) | ||
|
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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,20 @@ | ||
#!/bin/sh | ||
#-------------------------------------------------------------------------------------- | ||
# Copyright (c) 2010-2013 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#-------------------------------------------------------------------------------------- | ||
|
||
cd `dirname $0` | ||
|
||
# Verify paths | ||
if [ ! -f "$MOAI_BIN/moai" ]; then | ||
echo "---------------------------------------------------------------------------" | ||
echo "Error: The MOAI_BIN environment variable doesn't exist or its pointing to an" | ||
echo "invalid path. Please point it at a folder containing moai executable" | ||
echo "---------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Run moai | ||
$MOAI_BIN/moai main.lua |
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
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,10 @@ | ||
#!/bin/sh | ||
if type -p ccache >/dev/null 2>&1; then | ||
export CCACHE_MAXSIZE=10G | ||
export CCACHE_CPP2=true | ||
export CCACHE_HARDLINK=true | ||
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches | ||
exec ccache /usr/bin/clang "$@" | ||
else | ||
exec clang "$@" | ||
fi |
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,10 @@ | ||
#!/bin/sh | ||
if type -p ccache >/dev/null 2>&1; then | ||
export CCACHE_MAXSIZE=10G | ||
export CCACHE_CPP2=true | ||
export CCACHE_HARDLINK=true | ||
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches | ||
exec ccache /usr/bin/clang++ "$@" | ||
else | ||
exec clang++ "$@" | ||
fi |
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 |
---|---|---|
|
@@ -8,17 +8,8 @@ | |
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFiles</key> | ||
<array> | ||
<string>Icon.png</string> | ||
<string>[email protected]</string> | ||
<string>Icon-72.png</string> | ||
<string>Icon-Small-50.png</string> | ||
<string>Icon-Small.png</string> | ||
<string>[email protected]</string> | ||
</array> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.getmoai.samples</string> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
|
@@ -33,9 +24,19 @@ | |
<string>1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIPrerenderedIcon</key> | ||
<true/> | ||
<key>UIRequiresFullScreen</key> | ||
<true/> | ||
<key>UIStatusBarHidden</key> | ||
<true/> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array/> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
</plist> |
Oops, something went wrong.