Permalink
Browse files

Moved assets to subdirectories, to follow the conventions described in

http://www.coronalabs.com/blog/2012/07/10/best-practices-for-organizing-projects/

radlib lua files have been moved to scripts/lib

All other .lua template files remained in the root directory though
  • Loading branch information...
1 parent cea9e1c commit c440ce907295d7cbf8f7a0a1529e485b1e94150c @radamanthus committed Jul 22, 2012
View
@@ -1,8 +1,8 @@
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-local ui = require "ui"
-local radlib = require "radlib"
+local ui = require "scripts.lib.ui"
+local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
View
@@ -1,8 +1,8 @@
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-local ui = require "ui"
-local radlib = require "radlib"
+local ui = require "scripts.lib.ui"
+local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
View
@@ -1,50 +1,50 @@
_G.buttons = {
about = {
- defaultSrc = "btn_about.png",
+ defaultSrc = "images/btn_about.png",
defaultX = 160,
- defaultY = 32,
- overSrc = "btn_about_over.png",
+ defaultY = 32,
+ overSrc = "images/btn_about_over.png",
overX = 160,
- overY = 32,
+ overY = 32,
id = "btnAbout",
text = "",
font = "Helvetica",
textColor = { 255, 255, 255, 255 },
emboss = false
},
help = {
- defaultSrc = "btn_help.png",
+ defaultSrc = "images/btn_help.png",
defaultX = 160,
- defaultY = 32,
- overSrc = "btn_help_over.png",
+ defaultY = 32,
+ overSrc = "images/btn_help_over.png",
overX = 160,
- overY = 32,
+ overY = 32,
id = "btnHelp",
text = "",
font = "Helvetica",
textColor = { 255, 255, 255, 255 },
emboss = false
},
play = {
- defaultSrc = "btn_play.png",
+ defaultSrc = "images/btn_play.png",
defaultX = 160,
defaultY = 32,
- overSrc = "btn_play_over.png",
+ overSrc = "images/btn_play_over.png",
overX = 160,
overY = 32,
id = "btnPlay",
text = "",
font = "Helvetica",
textColor = { 255, 255, 255, 255 },
emboss = false
- },
+ }
settings = {
- defaultSrc = "btn_settings.png",
+ defaultSrc = "images/btn_settings.png",
defaultX = 160,
- defaultY = 32,
- overSrc = "btn_settings_over.png",
+ defaultY = 32,
+ overSrc = "images/btn_settings_over.png",
overX = 160,
- overY = 32,
+ overY = 32,
id = "btnSettings",
text = "",
font = "Helvetica",
View
@@ -13,7 +13,7 @@ end
function scene:createScene( event )
local screenGroup = self.view
- local loadingImage = display.newImageRect( "splash_screen.png", 480, 320 )
+ local loadingImage = display.newImageRect( "images/splash_screen.png", 480, 320 )
loadingImage.x = display.contentWidth/2
loadingImage.y = display.contentHeight/2
screenGroup:insert(loadingImage)
View
@@ -1,8 +1,8 @@
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-local ui = require "ui"
-local radlib = require "radlib"
+local ui = require "scripts.lib.ui"
+local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
View
@@ -1,8 +1,8 @@
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-local ui = require "ui"
-local radlib = require "radlib"
+local ui = require "scripts.lib.ui"
+local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,19 +2,19 @@
local M = {}
-local geometry = require "geometry"
+local geometry = require "scripts.lib.geometry"
M.geometry = geometry
-local ioExt = require "io_ext"
+local ioExt = require "scripts.lib.io_ext"
M.io = ioExt
-local stringExt = require "string_ext"
+local stringExt = require "scripts.lib.string_ext"
M.string = stringExt
-local tableExt = require "table_ext"
+local tableExt = require "scripts.lib.table_ext"
M.table = tableExt
-local timeExt = require "time_ext"
+local timeExt = require "scripts.lib.time_ext"
M.time = timeExt
local debug = function( msg )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,8 +1,8 @@
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
-local ui = require "ui"
-local radlib = require "radlib"
+local ui = require "scripts.lib.ui"
+local radlib = require "scripts.lib.radlib"
---------------------------------------------------------------------------------
-- BEGINNING OF YOUR IMPLEMENTATION

0 comments on commit c440ce9

Please sign in to comment.