Exemplo n.º 1
0
if (parseid=="" or parseck=="") and batch=="":
    print("Please enter one of Parse or Batch IDs.")
    sys.exit()

configFile = trgDir + "/SimpleSlots/configure.h"
serverFile = trgDir + "/SimpleSlots/ServerManager.m"
appdelegateFile = trgDir + "/SimpleSlots/AppDelegate.m"
infoPlistFile = trgDir + "/SimpleSlots/PartySlots-Info.plist"

# FILES REPLACEMENT
# -----------------
# replace all icons in main dir
print("Replacing icons on main dir...")

reskinutils.copyFilesByGlob(srcDir + "/AppIcon*.png", trgDir)
reskinutils.copyFilesByGlob(srcDir + "/iTunesArtwork*.png", trgDir)
reskinutils.copyFilesByName(srcDir + "/icon-ipad.png", trgDir)
reskinutils.copyFilesByName(trgDir + "/[email protected]", trgDir + "/icon1024.png")
reskinutils.checkCopy(18)
print("Done.")

# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/PartySlots/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(srcDir + "/AppIcon*.png", trgDir + dirToCopy)
reskinutils.copyFilesByGlob(srcDir + "/iTunesArtwork*.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(srcDir + "/icon-ipad.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + dirToCopy + "/AppIcon29x29.png", trgDir + dirToCopy + "/AppIcon29x29-1.png")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]", trgDir + dirToCopy + "/[email protected]")
Exemplo n.º 2
0
if (parseid == "" or parseck == "") and batch == "":
    print("Please enter one of Parse or Batch IDs.")
    sys.exit()

configFile = trgDir + "/SimpleSlots/configure.h"
serverFile = trgDir + "/SimpleSlots/ServerManager.m"
appdelegateFile = trgDir + "/SimpleSlots/AppDelegate.m"
infoPlistFile = trgDir + "/SimpleSlots/PartySlots-Info.plist"

# FILES REPLACEMENT
# -----------------
# replace all icons in main dir
print("Replacing icons on main dir...")

reskinutils.copyFilesByGlob(srcDir + "/AppIcon*.png", trgDir)
reskinutils.copyFilesByGlob(srcDir + "/iTunesArtwork*.png", trgDir)
reskinutils.copyFilesByName(srcDir + "/icon-ipad.png", trgDir)
reskinutils.copyFilesByName(trgDir + "/[email protected]",
                            trgDir + "/icon1024.png")
reskinutils.checkCopy(18)
print("Done.")

# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/PartySlots/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(srcDir + "/AppIcon*.png", trgDir + dirToCopy)
reskinutils.copyFilesByGlob(srcDir + "/iTunesArtwork*.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(srcDir + "/icon-ipad.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + dirToCopy + "/AppIcon29x29.png",
Exemplo n.º 3
0
iap = args.iap
ver = args.ver
serverID = args.id
flurry = args.flurry
reskinutils.run = args.run

configFile = trgDir + "/MrDentist/Classes/Constants.h"
infoPlistFile = trgDir + "/MrDentist/Resources/Info.plist"

# FILES REPLACEMENT
# -----------------
# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/MrDentist/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(srcDir + dirToCopy + "/*.png", trgDir + dirToCopy)
reskinutils.checkCopy(8)
print("Done.")

# replace simpleslots/artwork/reskin
print("Replacing game assets...")

dirToCopy = "/MrDentist/Resources/Image/"
filesToCopy = ["gamescene/gameback1.png", "gamescene/gameback2.png", "gamescene/people1.png", "gamescene/people2.png", "gamescene/people3.png", "gamescene/people4.png",
"mainscene/btn_p1_u.png", "mainscene/btn_p2_u.png", "mainscene/btn_p3_u.png", "mainscene/btn_p4_u.png", "mainscene/btn_p1_d.png", "mainscene/btn_p2_d.png",
"mainscene/btn_p3_d.png", "mainscene/btn_p4_d.png", "mainscene/mainback.png", "mainscene/menuback.png"]
# gamescene: gameback1.png, gameback2.png, people1-4.png
# mainscene: btn_p1-4_d,u.png, mainback.png, menuback.png
for i in range(0, len(filesToCopy)):
	reskinutils.copyFilesByName(srcDir + dirToCopy + filesToCopy[i], trgDir + dirToCopy + filesToCopy[i])
reskinutils.checkCopy(len(filesToCopy))
Exemplo n.º 4
0
ver = args.ver
reskinutils.run = args.run

if (parseid=="" or parseck=="") and batch=="":
    print("Please enter one of Parse or Batch IDs.")
    sys.exit()

configFile = trgDir + "/SimpleSlots/configure.h"
infoPlistFile = trgDir + "/SimpleSlots/PartySlots-Info.plist"

# FILES REPLACEMENT
# -----------------
# replace all icons in main dir
print("Replacing icons on main dir...")

reskinutils.copyFilesByGlob(icons + "/AppIcon*.png", trgDir)
reskinutils.copyFilesByGlob(icons + "/iTunesArtwork*.png", trgDir)
reskinutils.copyFilesByName(icons + "/AppIcon72x72.png", trgDir + "/icon-ipad.png")
reskinutils.copyFilesByName(trgDir + "/[email protected]", trgDir + "/icon1024.png")
reskinutils.checkCopy(18)
print("Done.")

# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/PartySlots/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(icons + "/AppIcon*.png", trgDir + dirToCopy)
reskinutils.copyFilesByGlob(icons + "/iTunesArtwork*.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + "/icon-ipad.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + dirToCopy + "/AppIcon29x29.png", trgDir + dirToCopy + "/AppIcon29x29-1.png")
reskinutils.copyFilesByName(trgDir + dirToCopy + "/[email protected]", trgDir + dirToCopy + "/[email protected]")
Exemplo n.º 5
0
ver = args.ver
reskinutils.run = args.run

if (parseid == "" or parseck == "") and batch == "":
    print("Please enter one of Parse or Batch IDs.")
    sys.exit()

configFile = trgDir + "/SimpleSlots/configure.h"
infoPlistFile = trgDir + "/SimpleSlots/PartySlots-Info.plist"

# FILES REPLACEMENT
# -----------------
# replace all icons in main dir
print("Replacing icons on main dir...")

reskinutils.copyFilesByGlob(icons + "/AppIcon*.png", trgDir)
reskinutils.copyFilesByGlob(icons + "/iTunesArtwork*.png", trgDir)
reskinutils.copyFilesByName(icons + "/AppIcon72x72.png",
                            trgDir + "/icon-ipad.png")
reskinutils.copyFilesByName(trgDir + "/[email protected]",
                            trgDir + "/icon1024.png")
reskinutils.checkCopy(18)
print("Done.")

# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/PartySlots/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(icons + "/AppIcon*.png", trgDir + dirToCopy)
reskinutils.copyFilesByGlob(icons + "/iTunesArtwork*.png", trgDir + dirToCopy)
reskinutils.copyFilesByName(trgDir + "/icon-ipad.png", trgDir + dirToCopy)
Exemplo n.º 6
0
iap = args.iap
ver = args.ver
serverID = args.id
flurry = args.flurry
reskinutils.run = args.run

configFile = trgDir + "/MrDentist/Classes/Constants.h"
infoPlistFile = trgDir + "/MrDentist/Resources/Info.plist"

# FILES REPLACEMENT
# -----------------
# replace partyslots/images.xcasset/appicons
print("Replacing icons in Images.xcassets...")

dirToCopy = "/MrDentist/Images.xcassets/AppIcon.appiconset"
reskinutils.copyFilesByGlob(srcDir + dirToCopy + "/*.png", trgDir + dirToCopy)
reskinutils.checkCopy(8)
print("Done.")

# replace simpleslots/artwork/reskin
print("Replacing game assets...")

dirToCopy = "/MrDentist/Resources/Image/"
filesToCopy = [
    "gamescene/gameback1.png", "gamescene/gameback2.png",
    "gamescene/people1.png", "gamescene/people2.png", "gamescene/people3.png",
    "gamescene/people4.png", "mainscene/btn_p1_u.png",
    "mainscene/btn_p2_u.png", "mainscene/btn_p3_u.png",
    "mainscene/btn_p4_u.png", "mainscene/btn_p1_d.png",
    "mainscene/btn_p2_d.png", "mainscene/btn_p3_d.png",
    "mainscene/btn_p4_d.png", "mainscene/mainback.png",
Exemplo n.º 7
0
receiverFile = trgDir + "/src/com/appninja/slots/Receiver.java"
mainMenuLayerFile = trgDir + "/src/com/awesomegames/bigcasinoslots/Layers/MainMenuLayer.java"
javaFiles = trgDir + "/src/com/*/*/*.java"
javaFiles2 = trgDir + "/src/com/*/*/*/*.java"

if __name__ == '__main__':
    # FILES REPLACEMENT
    # -----------------

    trgAssets = trgDir + "/assets"
    trgRes = trgDir + "/res"
    srcReskin = srcDir + "/SimpleSlots/artwork/reskin"

    # replace worlds
    print("Replacing worlds assets...")
    reskinutils.copyFilesByGlob(srcReskin + "/LevelSelect/game*@2x.*",
                                trgAssets)
    reskinutils.checkCopy(2 * 4 + 2)
    print("Done.")

    # replace reels
    print("Replacing reels assets...")
    reelsDict = ["gems", "horse", "mega", "slot"]
    assetsDict = [
        "7", "A", "bonus", "diamond", "J", "K", "lemon", "Q", "star", "wild"
    ]
    # copy lvl[i]/lvl[i]item_<asset_name>@2x.png to <reels_name>item_<asset_name_title>@2x.png & <reels_name>/<asset_name_title>_<reels_name>.png
    for i in range(0, len(reelsDict)):
        for j in range(0, len(assetsDict)):
            fileToCopy = srcReskin + "/lvl" + str(i + 1) + "/lvl" + str(
                i + 1) + "item_" + assetsDict[j] + "@2x.png"
            if not (os.path.isfile(fileToCopy)):
Exemplo n.º 8
0
javaFiles = trgDir + "/src/com/*/*/*.java"
javaFiles2 = trgDir + "/src/com/*/*/*/*.java"

if __name__ == '__main__':
    # FILES REPLACEMENT
    # -----------------

    srcAssets = srcDir + "/assets"
    trgAssets = trgDir + "/assets"
    srcRes = srcDir + "/res"
    trgRes = trgDir + "/res"

    # replace worlds
    print("Replacing worlds assets...")
    for i in range(1, 5):
        reskinutils.copyFilesByGlob(srcAssets + "/game" + str(i) + "*.png",
                                    trgAssets)
    reskinutils.checkCopy(2 * (4 + 3))
    print("Done.")

    # replace reels
    print("Replacing reels assets...")
    reelsDict = ["gems", "horse", "mega", "slot"]
    for i in range(0, len(reelsDict)):
        reskinutils.copyFilesByGlob(srcAssets + "/" + reelsDict[i] + "*.png",
                                    trgAssets)
    reskinutils.checkCopy(len(reelsDict) * 10)
    for i in range(0, len(reelsDict)):
        reskinutils.copyTree(srcAssets + "/" + reelsDict[i],
                             trgAssets + "/" + reelsDict[i])
    reskinutils.checkCopy(len(reelsDict))
    print("Done.")
Exemplo n.º 9
0
javaFiles = trgDir + "/src/com/*/*/*.java"
javaFiles2 = trgDir + "/src/com/*/*/*/*.java"

if __name__ == "__main__":
    # FILES REPLACEMENT
    # -----------------

    srcAssets = srcDir + "/assets"
    trgAssets = trgDir + "/assets"
    srcRes = srcDir + "/res"
    trgRes = trgDir + "/res"

    # replace worlds
    print("Replacing worlds assets...")
    for i in range(1, 5):
        reskinutils.copyFilesByGlob(srcAssets + "/game" + str(i) + "*.png", trgAssets)
    reskinutils.checkCopy(2 * (4 + 3))
    print("Done.")

    # replace reels
    print("Replacing reels assets...")
    reelsDict = ["gems", "horse", "mega", "slot"]
    for i in range(0, len(reelsDict)):
        reskinutils.copyFilesByGlob(srcAssets + "/" + reelsDict[i] + "*.png", trgAssets)
    reskinutils.checkCopy(len(reelsDict) * 10)
    for i in range(0, len(reelsDict)):
        reskinutils.copyTree(srcAssets + "/" + reelsDict[i], trgAssets + "/" + reelsDict[i])
    reskinutils.checkCopy(len(reelsDict))
    print("Done.")

    # replace icons
Exemplo n.º 10
0
bigCasinoSlotsActivityFile = trgDir + "/src/com/appninja/slots/BigCasinoSlotsActivity.java"
receiverFile = trgDir + "/src/com/appninja/slots/Receiver.java"
mainMenuLayerFile = trgDir + "/src/com/awesomegames/bigcasinoslots/Layers/MainMenuLayer.java"
javaFiles = trgDir + "/src/com/*/*/*.java"
javaFiles2 = trgDir + "/src/com/*/*/*/*.java"

if __name__ == '__main__':
	# FILES REPLACEMENT
	# -----------------

	trgAssets = trgDir + "/assets"
	trgRes = trgDir + "/res"

	# replace worlds
	print("Replacing worlds assets...")
	reskinutils.copyFilesByGlob(assets + "/LevelSelect/game*@2x.*", trgAssets)
	reskinutils.checkCopy(2*4 + 2)
	print("Done.")

	# replace reels
	print("Replacing reels assets...")
	reelsDict = ["gems", "horse", "mega", "slot"]
	assetsDict = ["7", "A", "bonus", "diamond", "J", "K", "lemon", "Q", "star", "wild"]
	# copy lvl[i]/lvl[i]item_<asset_name>@2x.png to <reels_name>item_<asset_name_title>@2x.png & <reels_name>/<asset_name_title>_<reels_name>.png
	for i in range(0, len(reelsDict)):
		for j in range(0, len(assetsDict)):
			fileToCopy = assets + "/lvl" + str(i+1) + "/lvl" + str(i+1) + "item_" + assetsDict[j] + "@2x.png"
			if not (os.path.isfile(fileToCopy)):
				print("Cannot find " + fileToCopy + ", trying to capitalizing asset name...")
				fileToCopy = assets + "/lvl" + str(i+1) + "/lvl" + str(i+1) + "item_" + assetsDict[j].title() + "@2x.png"
				if not (os.path.isfile(fileToCopy)):