Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Samples; update samples to have doc size flags and custom index for e…
Browse files Browse the repository at this point in the history
…mbedding in the docs easier, as well as showing custom index use
  • Loading branch information
ruby0x1 committed Jan 12, 2015
1 parent c21b36f commit b9a2837
Show file tree
Hide file tree
Showing 15 changed files with 168 additions and 5 deletions.
21 changes: 21 additions & 0 deletions samples/guides/1_getting_started/custom_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">

<style> #window1 { margin: 0; padding: 0; } </style>

{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}

</head>

<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
</body>

</html>
3 changes: 2 additions & 1 deletion samples/guides/1_getting_started/project.flow
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},

files : {
assets : 'assets/'
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project', not_listed:true }
}

},
Expand Down
11 changes: 11 additions & 0 deletions samples/guides/1_getting_started/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,16 @@ class Main extends luxe.Game {

} //update

override function config( config:luxe.AppConfig ) {

#if luxe_doc_sample
config.window.width = 640;
config.window.height = 427;
#end

return config;

} //config


} //Main
21 changes: 21 additions & 0 deletions samples/guides/2_sprites/custom_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">

<style> #window1 { margin: 0; padding: 0; } </style>

{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}

</head>

<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
</body>

</html>
3 changes: 2 additions & 1 deletion samples/guides/2_sprites/project.flow
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},

files : {
assets : 'assets/'
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project', not_listed:true }
}

}
Expand Down
10 changes: 10 additions & 0 deletions samples/guides/2_sprites/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,15 @@ class Main extends luxe.Game {

} //onkeyup

override function config( config:luxe.AppConfig ) {

#if luxe_doc_sample
config.window.width = 640;
config.window.height = 427;
#end

return config;

} //config

} //Main
21 changes: 21 additions & 0 deletions samples/guides/3_sprite_animation/custom_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">

<style> #window1 { margin: 0; padding: 0; } </style>

{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}

</head>

<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
</body>

</html>
3 changes: 2 additions & 1 deletion samples/guides/3_sprite_animation/project.flow
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},

files : {
assets : 'assets/'
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project', not_listed:true }
}

}
Expand Down
10 changes: 10 additions & 0 deletions samples/guides/3_sprite_animation/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,15 @@ class Main extends luxe.Game {

} //onkeyup

override function config( config:luxe.AppConfig ) {

#if luxe_doc_sample
config.window.width = 640;
config.window.height = 427;
#end

return config;

} //config

} //Main
21 changes: 21 additions & 0 deletions samples/guides/4_text_and_tweening/custom_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">

<style> #window1 { margin: 0; padding: 0; } </style>

{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}

</head>

<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
</body>

</html>
3 changes: 2 additions & 1 deletion samples/guides/4_text_and_tweening/project.flow
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},

files : {
assets : 'assets/'
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project', not_listed:true }
}

}
Expand Down
11 changes: 11 additions & 0 deletions samples/guides/4_text_and_tweening/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,16 @@ class Main extends luxe.Game {

} //onkeyup

override function config( config:luxe.AppConfig ) {

#if luxe_doc_sample
config.window.width = 640;
config.window.height = 427;
#end

return config;

} //config


} //Main
21 changes: 21 additions & 0 deletions samples/guides/5_components/custom_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>

<link rel="icon" href="favicon.png"/>
<meta charset="utf-8">

<style> #window1 { margin: 0; padding: 0; } </style>

{{#each project.app.web.libs~}}
<script type="text/javascript" src="{{this}}"></script>
{{/each}}

</head>

<body style="padding: 0; margin: 0; background-color: #111111;">
<script type="text/javascript" src="./{{project.app.name}}{{#if project.app.web.min}}.min{{/if}}.js"></script>
</body>

</html>
3 changes: 2 additions & 1 deletion samples/guides/5_components/project.flow
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},

files : {
assets : 'assets/'
assets : 'assets/',
index : { path:'custom_index.html => index.html', template:'project', not_listed:true }
}

}
Expand Down
11 changes: 11 additions & 0 deletions samples/guides/5_components/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,16 @@ class Main extends luxe.Game {

} //onkeyup

override function config( config:luxe.AppConfig ) {

#if luxe_doc_sample
config.window.width = 640;
config.window.height = 427;
#end

return config;

} //config


} //Main

0 comments on commit b9a2837

Please sign in to comment.