Skip to content

Commit dd42e6c

Browse files
committed
demo pages in progress
1 parent 1d816b1 commit dd42e6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+178
-270
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ npm-debug.log*
77
out
88
debug.log
99
package-lock.json
10+
.DS_Store

11ty-source/_layouts/demo.liquid

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
layout: default.liquid
3+
---
4+
5+
<br>
6+
<br>
7+
8+
<div class="demo-container">
9+
{% if targets == "html5" %}
10+
11+
{% unless height %}
12+
{% assign height = 480 %}
13+
{% endunless %}
14+
15+
{% unless width %}
16+
{% assign width = 640 %}
17+
{% endunless %}
18+
19+
<iframe class="html5-demo" src="https://demos.haxeflixel.com/html5/{{title}}"
20+
width="{{width}}"
21+
height="{{height}}"
22+
></iframe>
23+
{% endif %}
24+
25+
{% if targets == "flash" %}
26+
<div class="flash-demo">
27+
<div id="demoSWF">
28+
</div>
29+
</div>
30+
{% endif %}
31+
32+
</div>
33+
34+
<div class="container-main-content">
35+
<div class="demo-content">
36+
37+
<br>
38+
39+
<h1 class="title">{{ title }}</h1>
40+
41+
<a href="https://github.com/HaxeFlixel/flixel-demos/tree/dev/{{source}}/source" target="_blank" style="float: right;">
42+
<span class="glyphicon glyphicon-book"></span>
43+
source code
44+
</a>
45+
46+
{{ content }}
47+
48+
<hr>
49+
50+
<ul class="pager">
51+
{% assign prevDemo = collections.demo-item | getPreviousCollectionItem %}
52+
{% if prevDemo %}
53+
<li class="previous">
54+
<a href="{{prevDemo.url}}" title="Previous">
55+
{% comment %} <img src="<%= @getThumbnail("/images/demos/#{@getPagerPrevious('demos').attributes.title}.png", "zoomcrop", { w: 70, h:70 }) %>" alt="Previous"> {% endcomment %}
56+
</a>
57+
</li>
58+
{% endif %}
59+
60+
{% comment %} this is to loop back to the last demo, if you're on the first one {% endcomment %}
61+
{% unless prevDemo %}
62+
<li class="previous">
63+
<a href="<%= @getLast('demos').attributes.url %>" title="Previous">
64+
{% comment %} <img src="<%= @getThumbnail("/images/demos/#{@getLast('demos').attributes.title}.png", "zoomcrop", { w: 70, h:70 }) %>" alt="Previous"> {% endcomment %}
65+
</a>
66+
</li>
67+
{% endunless %}
68+
69+
{% assign nextDemo = collections.demo-item | getNextCollectionItem %}
70+
{% if nextDemo %}
71+
<li class="next">
72+
<a href="{{ nextDemo.url }}" title="Next">
73+
{% comment %} <img src="<%= @getThumbnail("/images/demos/#{@getPagerNext('demos').attributes.title}.png", "zoomcrop", {w: 70, h:70 }) %>" alt="Next">
74+
> {% endcomment %}
75+
</a>
76+
</li>
77+
{% endif %}
78+
79+
{% comment %} gets the first demo, if the "next" one doesn't exist {% endcomment %}
80+
{% unless nextDemo %}
81+
<li class="next">
82+
<a href="{{ nextDemo.url }}" title="Next">
83+
{% comment %} <img src="<%= @getThumbnail("/images/demos/#{@getFirst('demos').attributes.title}.png", "zoomcrop", { w:70, h:70 }) %>" alt="Next">
84+
> {% endcomment %}
85+
</a>
86+
</li>
87+
{% endunless %}
88+
</ul>
89+
90+
</div>
91+
</div>
92+
93+
</div>
94+
95+
96+
{% if targets == "flash" %}
97+
<script type="text/javascript" src="/vendor/swfobject/swfobject/swfobject.js"></script>
98+
{% endif %}

11ty-source/_layouts/partials/head.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<title>{{ title }}</title>
88

9-
<meta name="description" content="<%= @description %>"/>
9+
<meta name="description" content="HaxeFlixel is a 2D Game Engine that lets you create cross-platform games easier with free, open source technology!"/>
1010
<meta name="keywords" content="<%= @keywords %>"/>
1111
<meta name="author" content="<%= @author %>"/>
1212
<meta name="viewport" content="width=device-width"/>

src/documents/demos/BSPMapGen.html.md 11ty-source/demos/BSPMapGen.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "BSPMapGen"
33
layout: demo
44
source: "Other/BSPMapGen"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
HaxeFlixel port of [Timothy Hely](https://github.com/tutsplus/Using-BSP-Trees-to-Generate-Game-Maps)'s "Using-BSP-Trees-to-Generate-Game-Maps".

src/documents/demos/BlendModeShaders.md 11ty-source/demos/BlendModeShaders.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: demo
44
width: 640
55
height: 480
66
source: "Effects/BlendModeShaders"
7-
targets: ['html5']
7+
targets: html5
88
---
99

1010
Example of how some blend modes can be replicated using GLSL shaders.

src/documents/demos/Breakout.html.md 11ty-source/demos/Breakout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Breakout"
33
layout: demo
44
source: "Arcade/Breakout"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A very simple, but solid Breakout clone originally created by [Photonstorm](http://www.photonstorm.com/)&nbsp;(Richard Davey)&nbsp;in 20 minutes.

src/documents/demos/Calculator.html.md 11ty-source/demos/Calculator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Calculator"
33
layout: demo
44
source: "Other/Calculator"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
An interactive calculator implemented using [hscript](https://github.com/HaxeFoundation/hscript).

src/documents/demos/CollisionAndGrouping.html.md 11ty-source/demos/CollisionAndGrouping.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: demo
44
width: 400
55
height: 300
66
source: "Features/CollisionAndGrouping"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---
99

1010
A port of the [Collision and Grouping demo](https://github.com/TestSubject06/CollisionsDemo) by [Zachary Tarvit](https://twitter.com/TestSubject06) featured on [flixel.org/features](http://flixel.org/features.html).

src/documents/demos/Colors.html.md 11ty-source/demos/Colors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Colors"
33
layout: demo
44
source: "Features/Colors"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A showcase of the various `FlxColor` features.

src/documents/demos/Cursor.html.md 11ty-source/demos/Cursor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Cursor"
33
layout: demo
44
source: "UserInterface/Cursor"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A demo showcasing keyboard navigation with a [flixel-ui](http://github.com/HaxeFlixel/flixel-ui) instance. You can navigate

src/documents/demos/DynamicShadows.html.md 11ty-source/demos/DynamicShadows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ layout: demo
44
width: 640
55
height: 320
66
source: "Effects/DynamicShadows"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---

src/documents/demos/EZPlatformer.html.md 11ty-source/demos/EZPlatformer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "EZPlatformer"
33
layout: demo
44
source: "Platformers/EZPlatformer"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
EZPlatformer is a really simple platformer which was originally created by [Adam "Atomic" Saltsman](https://twitter.com/adamatomic) as a tutorial for creating platformers with flixel.

src/documents/demos/FileBrowse.html.md 11ty-source/demos/FileBrowse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FileBrowse"
33
layout: demo
44
source: "UserInterface/FileBrowse"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
Demonstrates how to use file browsing on both Flash and Native (CPP/Neko) targets. The Flash target uses FileReference.browse(), while the Native target uses the systools.Dialogs.openFile(). The Native targets depend on the systools library, available on haxelibs.

src/documents/demos/Filters.html.md 11ty-source/demos/Filters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ title: "Filters"
33
layout: demo
44
source: "Effects/Filters"
55
tags: ['homepage_demo']
6-
targets: ['flash', 'html5']
6+
targets: "html5"
77
---

src/documents/demos/Flappybalt.html.md 11ty-source/demos/Flappybalt.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ width: 480
55
height: 720
66
source: "Arcade/Flappybalt"
77
tags: ['homepage_demo']
8-
targets: ['flash', 'html5']
8+
targets: "html5"
99
---
1010

1111
Controls: Spacebar

src/documents/demos/FlipRotationAnimationTiles.html.md 11ty-source/demos/FlipRotationAnimationTiles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlipRotationAnimationTiles"
33
layout: demo
44
source: "Platformers/FlipRotationAnimationTiles"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
This demo showcases how to use [FlxTilemapExt](https://github.com/HaxeFlixel/flixel-addons/blob/master/flixel/addons/tile/FlxTilemapExt.hx) and [FlxTileSpecial](https://github.com/HaxeFlixel/flixel-addons/blob/master/flixel/addons/tile/FlxTileSpecial.hx) to flip, rotate and animate tiles.

src/documents/demos/Flixius.html.md 11ty-source/demos/Flixius.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: demo
44
width: 1280
55
height: 720
66
source: "Arcade/Flixius"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---
99

1010
A side-scrolling shooter. Made by [@SeiferTim](https://github.com/seifertim) during a 30-min presentation on how easy it is to make prototypes in HaxeFlixel.

src/documents/demos/FloodFill.html.md 11ty-source/demos/FloodFill.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
title: "FloodFill"
33
layout: demo
44
source: "Effects/FloodFill"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---

src/documents/demos/FlxAction.html.md 11ty-source/demos/FlxAction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: demo
44
width: 672
55
height: 480
66
source: "Input/FlxAction"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---
99

1010
Showcases the `flixel.input.actions` API added in Flixel 4.6.0.

src/documents/demos/FlxAsepriteUtil.html.md 11ty-source/demos/FlxAsepriteUtil.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: demo
44
width: 640
55
height: 480
66
source: "Graphics/FlxAsepriteUtils"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---
99

1010
Showcases loading of an [Aseprite](https://www.aseprite.org/) [Sprite Sheet](https://aseprite.com/docs/sprite-sheet/#texture-atlases tools) using [flixel.graphics.FlxAsepriteUtil](https://api.haxeflixel.com/flixel/graphics/FlxAsepriteUtil.html) API added in Flixel 5.4.0. This demo uses the [loadAseAtlasAndTagsByIndex](https://api.haxeflixel.com/flixel/graphics/FlxAsepriteUtil.html#addAseAtlasTagsByIndex) method to create animations.

src/documents/demos/FlxAsyncLoop.html.md 11ty-source/demos/FlxAsyncLoop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxAsyncLoop"
33
layout: demo
44
source: "Other/FlxAsyncLoop"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77
Demonstration for the `FlxAsyncLoop` class, created by [SeiferTim](http://tims-world.com/) (Tim I Hely).
88
This utility allows you to setup a loop in a way that still allows `update()` and `draw()` to be called so you can show progress bars or whatever, instead of the game freezing and locking up until the loop has completed.

src/documents/demos/FlxAtlas.html.md 11ty-source/demos/FlxAtlas.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxAtlas"
33
layout: demo
44
source: "Other/FlxAtlas"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
An example of `flixel.graphics.atlas.FlxAtlas`.

src/documents/demos/FlxBitmapText.html.md 11ty-source/demos/FlxBitmapText.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ layout: demo
44
width: 800
55
height: 600
66
source: "UserInterface/FlxBitmapText"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---

src/documents/demos/FlxBunnymark.html.md 11ty-source/demos/FlxBunnymark.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxBunnyMark"
33
layout: demo
44
source: "Performance/FlxBunnyMark"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
This is a HaxeFlixel port of the BunnyMark Benchmark.

src/documents/demos/FlxCamera.html.md 11ty-source/demos/FlxCamera.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxCamera"
33
layout: demo
44
source: "Features/FlxCamera"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
This demo showcases different flixel camera features like zoom, lerp, lead and follow styles.

src/documents/demos/FlxCaveGenerator.html.md 11ty-source/demos/FlxCaveGenerator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxCaveGenerator"
33
layout: demo
44
source: "Platformers/FlxCaveGenerator"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A demo showing off the capabilites of [FlxCaveGenerator](https://github.com/HaxeFlixel/flixel-addons/blob/master/flixel/addons/tile/FlxCaveGenerator.hx).

src/documents/demos/FlxClothSprite.html.md 11ty-source/demos/FlxClothSprite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxClothSprite"
33
layout: demo
44
source: "Effects/FlxClothSprite"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
An example of `flixel.addons.effects.FlxClothSprite`.

src/documents/demos/FlxCollisions.html.md 11ty-source/demos/FlxCollisions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxCollisions"
33
layout: demo
44
source: "Other/FlxCollisions"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A port of [FlxCollisions ](https://github.com/AdamAtomic/FlxCollisions)created by Adam Atomic, showing off flixel's 2D physics capabilities.

src/documents/demos/FlxEffectSprite.html.md 11ty-source/demos/FlxEffectSprite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxEffectSprite"
33
layout: demo
44
source: "Effects/FlxEffectSprite"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
An example of the `flixel.addons.effects.chainable` package.

src/documents/demos/FlxFSM.html.md 11ty-source/demos/FlxFSM.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxFSM"
33
layout: demo
44
source: "Features/FlxFSM"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
An example game using the finite state machine implementation in `flixel.addons.util.FlxFSM`.

src/documents/demos/FlxInvaders.html.md 11ty-source/demos/FlxInvaders.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxInvaders"
33
layout: demo
44
source: "Arcade/FlxInvaders"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
A simple invaders game in flixel originally created by [Adam "Atomic" Saltsman](https://twitter.com/ADAMATOMIC).&nbsp;[Link to the original GitHub repo](https://github.com/AdamAtomic/Flx-Invaders). The source code is extremely&nbsp;well documented and thus very hepful for beginners.

src/documents/demos/FlxLightPuzzle.html.md 11ty-source/demos/FlxLightPuzzle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ layout: demo
44
width: 512
55
height: 288
66
source: "Arcade/FlxLightPuzzle"
7-
targets: ['flash', 'html5']
7+
targets: "html5"
88
---

src/documents/demos/FlxMouseEvent.html.md 11ty-source/demos/FlxMouseEvent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "FlxMouseEvent"
33
layout: demo
44
source: "Input/FlxMouseEvent"
5-
targets: ['flash', 'html5']
5+
targets: "html5"
66
---
77

88
[FlxMouseEvent](https://api.haxeflixel.com/flixel/input/mouse/FlxMouseEvent.html) allows `FlxSprite`s to listen to mouse events like `MouseDown`, `MouseUp`, `MouseOver` and `MouseOut`.

src/documents/demos/FlxNape.html.md 11ty-source/demos/FlxNape.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "FlxNape"
33
layout: demo
44
source: "Features/FlxNape"
55
tags: ['homepage_demo']
6-
targets: ['flash', 'html5']
6+
targets: "html5"
77
---
88

99
This demo showcases the integration of the [Nape Physics Engine](https://joecreates.github.io/napephys/) with HaxeFlixel.

0 commit comments

Comments
 (0)