Skip to content

Commit

Permalink
safety commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Roaming Gamer, LLC committed Feb 24, 2017
1 parent 4d70727 commit 118b925
Show file tree
Hide file tree
Showing 935 changed files with 39,039 additions and 357 deletions.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions releases/ssk2_lite/extras/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# What Is This?
This folder contains extra starter content _ONLY_ available to PRO users.

+ `_blanks/` - These are blank projects I use to make samples and starter games.
+ `factories/` - Common images used in many samples. You need to copy this into samples that don't have an images folder already.
+ `images/` - Common images used in many samples. You need to copy this into samples that don't have an images folder already.
+ `sounds/` - Common sounds used in many samples. You need to copy this into samples that don't have an images folder already.
+ `toys/` - Experiments I made using SSK2.

While this content is highly functional, everything you find here is:

* Only documented internally.
* Experimental or something I made for fun.
* Not guaranteed to be universal solutions.


# How Do I Run It?
Every _project_ has its own readMe.txt file. Follow the directions in that file.

# License
You can use this stuff to make your own games and apps, but you CANNOT distribute and/or sell the code.

# Can I get help changing this?
Maybe. You can contact me for a paid gig and I'll consider it based on what you want to do and my availability.

If you want to HIRE ME to make changes go here: http://roaminggamer.com/hire-me/.


# Warnings
+ All of this content is subject to change in future releases.
+ I will not maintain old versions.
+ I don't guarantee backward compatibility for this content.
+ If you care about it, back it up when you download it.


27 changes: 27 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/build.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2017 (All Rights Reserved)
-- =============================================================
-- Minimalistic 'starter' build.settings
-- =============================================================
-- https://docs.coronalabs.com/daily/guide/distribution/buildSettings/index.html
-- https://docs.coronalabs.com/daily/guide/tvos/index.html
-- https://docs.coronalabs.com/daily/guide/distribution/win32Build/index.html
-- https://docs.coronalabs.com/daily/guide/distribution/osxBuild/index.html
-- =============================================================

local orientation = 'landscapeRight' -- portrait, landscapeRight, ...


settings = {
-------------------------------------------------------------------------------
-- Orientation Settings
-------------------------------------------------------------------------------
orientation = {
default = orientation,
supported = { orientation },
},



}
return settings
67 changes: 67 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/main.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2017 (All Rights Reserved)
-- =============================================================
-- main.lua
-- =============================================================
-- Start (code/comments)
-- =============================================================
io.output():setvbuf("no")
display.setStatusBar(display.HiddenStatusBar)
-- =============================================================
-- LOAD & INITIALIZE - SSK 2
-- =============================================================
require "ssk2.loadSSK"
_G.ssk.init( { launchArgs = ...,
enableAutoListeners = true,
exportCore = true,
exportColors = true,
exportSystem = true,
measure = false,
useExternal = true,
gameFont = native.systemFont,
debugLevel = 0 } )
-- =============================================================
-- Optionally enable meters to check FPS and Memory usage.
-- =============================================================
--ssk.meters.create_fps(true)
--ssk.meters.create_mem(true)
-- =============================================================
local common = require "scripts.common"
local game = require "scripts.game"

--
-- Initialize Sound
--
----[[
local soundMgr = ssk.soundMgr
if( soundMgr ) then
soundMgr.setDebugLevel(1)
soundMgr.enableSFX(true)
soundMgr.enableMusic(false)
soundMgr.setVolume( 0.5, "music" )
soundMgr.addEffect( "coin", "sounds/sfx/coin.wav")
soundMgr.addEffect( "gate", "sounds/sfx/gate.wav")
soundMgr.addEffect( "died", "sounds/sfx/died.wav")
soundMgr.addMusic( "soundTrack", "sounds/music/Kick Shock.mp3")
end
--]]

--
-- Register Factories
--
----[[
local factoryMgr = ssk.factoryMgr
factoryMgr.register( "player", "factories.players.player" )
factoryMgr.register( "coin", "factories.pickups.coin" )
factoryMgr.register( "platform", "factories.world.platform" )
factoryMgr.register( "distanceHUD", "factories.huds.distanceHUD" )
factoryMgr.register( "scoreHUD", "factories.huds.scoreHUD" )
factoryMgr.register( "coinsHUD", "factories.huds.coinsHUD" )--]]

--
-- Initialize Game & Start
--
game.init()
game.start( nil, { debugEn = true } )


5 changes: 5 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/prepj.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mklink /j .\ssk2 X:\Work\00_CurentProjects\Corona\SSK2\ssk2
mklink /j .\images X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\images
mklink /j .\sounds X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\sounds
mklink /j .\factories X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\factories

5 changes: 5 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/preplitej.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mklink /j .\ssk2 X:\Work\00_CurentProjects\Corona\SSK2\ssk2lite
mklink /j .\images X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\images
mklink /j .\sounds X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\sounds
mklink /j .\factories X:\Work\00_CurentProjects\Corona\SSK2\releases\ssk2_pro\extras\factories

17 changes: 17 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/readMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
To use this example:

+ Copy ~/extras/images/ folder here.
+ Copy ~/extras/sounds/ folder here.
+ Copy ~/extras/factories/ folder here.
+ Copy ~/ssk2/ folder here

Run the example in the simulator.




What are these batch files?

ssk2j.bat, factoriesj.bat, ..., are batch files I use to create junctions (symbolic links) to the ssk2/, factories/, etc. folders.

I suggest you ignore these if you are not a Windows scripting expert.
34 changes: 34 additions & 0 deletions releases/ssk2_lite/extras/_blanks/001_basic/scripts/common.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2017 (All Rights Reserved)
-- =============================================================
-- common.lua - Common Settings Module
-- =============================================================
local common = {}

-- Game Logic Settings
common.gameIsRunning = false

-- Various Game Metrics & Settings
common.score = 0
common.coins = 0
common.distance = 0
common.distanceUnits = "some unit"

-- World Settings
common.gravityX = 0
common.gravityY = 0

-- Player Settings
common.playerVelocity = 250
common.playerImpulse = 13

-- Colors (player and gate)
local green = hexcolor("#4bcc5a")
local pink = hexcolor("#d272b4")
local red = hexcolor("#ff452d")
local yellow = hexcolor("##ffcc00")
common.colors = { green, pink, red, yellow }
-- Colors (Level and Interface)
common.backFill1 = hexcolor("#49432b")
common.backFill2 = hexcolor("#171717")
return common
Loading

0 comments on commit 118b925

Please sign in to comment.