Skip to content

Commit

Permalink
Merge branch 'dev' into substate-demo-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Apr 8, 2024
2 parents a158ef7 + c0434fb commit 4617c43
Show file tree
Hide file tree
Showing 78 changed files with 32 additions and 105 deletions.
48 changes: 18 additions & 30 deletions content/_layouts/demo.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,26 @@
layout: default.liquid
---
<div class="demo-container position-relative mx-auto" style="width: fit-content;">
{% if targets == 'html5' %}
{% unless height %}
{% assign height = 480 %}
{% endunless %}
{% unless height %}
{% assign height = 480 %}
{% endunless %}

{% unless width %}
{% assign width = 640 %}
{% endunless %}
{% unless width %}
{% assign width = 640 %}
{% endunless %}

<button
type="button"
class="btn btn-outline-primary position-absolute bottom-0 end-0 m-2"
onclick="toggleFullscreen();">
<i class="bi bi-arrows-fullscreen"></i>
</button>
<iframe
class="html5-demo"
src="https://demos.haxeflixel.com/html5/{{title}}"
width="{{width}}"
height="{{height}}"
allow="fullscreen"></iframe>
{% endif %}

{% if targets == 'flash' %}
<div class="flash-demo">
<div id="demoSWF"></div>
</div>
{% endif %}
<button
type="button"
class="btn btn-outline-primary position-absolute bottom-0 end-0 m-2"
onclick="toggleFullscreen();">
<i class="bi bi-arrows-fullscreen"></i>
</button>
<iframe
class="html5-demo"
src="https://demos.haxeflixel.com/html5/{{title}}"
width="{{width}}"
height="{{height}}"
allow="fullscreen"></iframe>
</div>

<div class="container-main-content">
Expand Down Expand Up @@ -129,7 +121,3 @@ layout: default.liquid
iframe.requestFullscreen();
}
</script>

{% if targets == 'flash' %}
{% comment %} <script type="text/javascript" src="/vendor/swfobject/swfobject/swfobject.js"></script> {% endcomment %}
{% endif %}
Binary file added content/_static/images/demos/FlxGameOfLife.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion content/demos/BSPMapGen.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "BSPMapGen"
layout: demo
source: "Other/BSPMapGen"
targets: "html5"
---

HaxeFlixel port of [Timothy Hely](https://github.com/tutsplus/Using-BSP-Trees-to-Generate-Game-Maps)'s "Using-BSP-Trees-to-Generate-Game-Maps".
1 change: 0 additions & 1 deletion content/demos/BlendModeShaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 640
height: 480
source: "Effects/BlendModeShaders"
targets: html5
---

Example of how some blend modes can be replicated using GLSL shaders.
1 change: 0 additions & 1 deletion content/demos/Breakout.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Breakout"
layout: demo
source: "Arcade/Breakout"
targets: "html5"
---

A very simple, but solid Breakout clone originally created by [Photonstorm](http://www.photonstorm.com/)&nbsp;(Richard Davey)&nbsp;in 20 minutes.
Expand Down
1 change: 0 additions & 1 deletion content/demos/Calculator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Calculator"
layout: demo
source: "Other/Calculator"
targets: "html5"
---

An interactive calculator implemented using [hscript](https://github.com/HaxeFoundation/hscript).
1 change: 0 additions & 1 deletion content/demos/CollisionAndGrouping.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 400
height: 300
source: "Features/CollisionAndGrouping"
targets: "html5"
---

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).
Expand Down
1 change: 0 additions & 1 deletion content/demos/Colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Colors"
layout: demo
source: "Features/Colors"
targets: "html5"
---

A showcase of the various `FlxColor` features.
1 change: 0 additions & 1 deletion content/demos/Cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "Cursor"
layout: demo
source: "UserInterface/Cursor"
targets: "html5"
---

A demo showcasing keyboard navigation with a [flixel-ui](http://github.com/HaxeFlixel/flixel-ui) instance. You can navigate
Expand Down
1 change: 0 additions & 1 deletion content/demos/DynamicShadows.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ layout: demo
width: 640
height: 320
source: "Effects/DynamicShadows"
targets: "html5"
---
1 change: 0 additions & 1 deletion content/demos/EZPlatformer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "EZPlatformer"
layout: demo
source: "Platformers/EZPlatformer"
targets: "html5"
---

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.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FileBrowse.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FileBrowse"
layout: demo
source: "UserInterface/FileBrowse"
targets: "html5"
---

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.
Expand Down
1 change: 0 additions & 1 deletion content/demos/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: "Filters"
layout: demo
source: "Effects/Filters"
tags: homepage_demo
targets: "html5"
---

A demo showcasing various filter effects, applied to the game using either `FlxG.camera.filters` or `FlxG.game.filters`.
Expand Down
1 change: 0 additions & 1 deletion content/demos/Flappybalt.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ width: 480
height: 720
source: "Arcade/Flappybalt"
tags: homepage_demo
targets: "html5"
---

Controls: Spacebar
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlipRotationAnimationTiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlipRotationAnimationTiles"
layout: demo
source: "Platformers/FlipRotationAnimationTiles"
targets: "html5"
---

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.
1 change: 0 additions & 1 deletion content/demos/Flixius.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 1280
height: 720
source: "Arcade/Flixius"
targets: "html5"
---

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.
1 change: 0 additions & 1 deletion content/demos/FloodFill.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
title: "FloodFill"
layout: demo
source: "Effects/FloodFill"
targets: "html5"
---
1 change: 0 additions & 1 deletion content/demos/FlxAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 672
height: 480
source: "Input/FlxAction"
targets: "html5"
---

Showcases the `flixel.input.actions` API added in Flixel 4.6.0.
1 change: 0 additions & 1 deletion content/demos/FlxAsepriteUtil.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 640
height: 480
source: "Graphics/FlxAsepriteUtils"
targets: "html5"
---

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.
1 change: 0 additions & 1 deletion content/demos/FlxAsyncLoop.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxAsyncLoop"
layout: demo
source: "Other/FlxAsyncLoop"
targets: "html5"
---

Demonstration for the `FlxAsyncLoop` class, created by [SeiferTim](http://tims-world.com/) (Tim I Hely).
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxAtlas.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxAtlas"
layout: demo
source: "Other/FlxAtlas"
targets: "html5"
---

An example of `flixel.graphics.atlas.FlxAtlas`.
1 change: 0 additions & 1 deletion content/demos/FlxBitmapText.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ layout: demo
width: 800
height: 600
source: "UserInterface/FlxBitmapText"
targets: "html5"
---
1 change: 0 additions & 1 deletion content/demos/FlxBunnymark.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxBunnyMark"
layout: demo
source: "Performance/FlxBunnyMark"
targets: "html5"
---

This is a HaxeFlixel port of the BunnyMark Benchmark.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxCamera.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxCamera"
layout: demo
source: "Features/FlxCamera"
targets: "html5"
---

This demo showcases different flixel camera features like zoom, lerp, lead and follow styles.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxCaveGenerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxCaveGenerator"
layout: demo
source: "Platformers/FlxCaveGenerator"
targets: "html5"
---

A demo showing off the capabilites of [FlxCaveGenerator](https://github.com/HaxeFlixel/flixel-addons/blob/master/flixel/addons/tile/FlxCaveGenerator.hx).
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxClothSprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxClothSprite"
layout: demo
source: "Effects/FlxClothSprite"
targets: "html5"
---

An example of `flixel.addons.effects.FlxClothSprite`.
1 change: 0 additions & 1 deletion content/demos/FlxCollisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxCollisions"
layout: demo
source: "Other/FlxCollisions"
targets: "html5"
---

A port of [FlxCollisions ](https://github.com/AdamAtomic/FlxCollisions)created by Adam Atomic, showing off flixel's 2D physics capabilities.
1 change: 0 additions & 1 deletion content/demos/FlxEffectSprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxEffectSprite"
layout: demo
source: "Effects/FlxEffectSprite"
targets: "html5"
---

An example of the `flixel.addons.effects.chainable` package.
1 change: 0 additions & 1 deletion content/demos/FlxFSM.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxFSM"
layout: demo
source: "Features/FlxFSM"
targets: "html5"
---

An example game using the finite state machine implementation in `flixel.addons.util.FlxFSM`.
14 changes: 14 additions & 0 deletions content/demos/FlxGameOfLife.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "FlxGameOfLife"
layout: demo
source: "Other/FlxGameOfLife"
---

This is a demonstration of [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) recreated in HaxeFlixel.

Every 'step' in the simulation, every cell in the grid is checked, and the following rules are applied to the next generation:

1. Any live cell with fewer than two live neighbors dies, as if by underpopulation.
1. Any live cell with two or three live neighbors lives on to the next generation.
1. Any live cell with more than three live neighbors dies, as if by overpopulation.
1. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
1 change: 0 additions & 1 deletion content/demos/FlxInvaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxInvaders"
layout: demo
source: "Arcade/FlxInvaders"
targets: "html5"
---

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.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxLightPuzzle.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ layout: demo
width: 512
height: 288
source: "Arcade/FlxLightPuzzle"
targets: "html5"
---
1 change: 0 additions & 1 deletion content/demos/FlxMouseEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxMouseEvent"
layout: demo
source: "Input/FlxMouseEvent"
targets: "html5"
---

[FlxMouseEvent](https://api.haxeflixel.com/flixel/input/mouse/FlxMouseEvent.html) allows `FlxSprite`s to listen to mouse events like `MouseDown`, `MouseUp`, `MouseOver` and `MouseOut`.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxNape.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: "FlxNape"
layout: demo
source: "Features/FlxNape"
tags: homepage_demo
targets: "html5"
---

This demo showcases the integration of the [Nape Physics Engine](https://joecreates.github.io/napephys/) with HaxeFlixel.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxNapeTerrain.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxNapeTerrain"
layout: demo
source: "Features/FlxNapeTerrain"
targets: "html5"
---

A port of [Nape's DestructibleTerrain sample](http://napephys.com/samples.html#swf-DestructibleTerrain) to HaxeFlixel.
1 change: 0 additions & 1 deletion content/demos/FlxNapeTilemap.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxNapeTilemap"
layout: demo
source: "Features/FlxNapeTilemap"
targets: "html5"
---

An example of `flixel.addons.nape.FlxNapeTilemap`.
1 change: 0 additions & 1 deletion content/demos/FlxPexParser.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxPexParser"
layout: demo
source: "Editors/FlxPexParser"
targets: "html5"
---

An example of `flixel.addons.editors.pex.FlxPexParser`. It creates a `FlxEmitter` from a `.pex` file created with the [Pex Particle Editor](http://onebyonedesign.com/flash/particleeditor/).
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxPieDial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 800
height: 500
source: "Features/FlxPieDial"
targets: "html5"
---

An example of `flixel.addons.display.FlxPieDial`.
1 change: 0 additions & 1 deletion content/demos/FlxPongApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 900
height: 300
source: "Arcade/FlxPongApi"
targets: "html5"
---

FlxPongApi demonstrates usage of the FlxGameJolt class in the flixel-addons package, which allows for simple communication with the GameJolt API. The gameplay itself is a sort of roguelike Pong game with various obstacles and enemy types that are encountered as the player progresses. The game is very simple visually, with no art assets and only four colors, with those colors selected programmatically and change very time you play.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxRandom.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxRandom"
layout: demo
source: "Performance/FlxRandom"
targets: "html5"
---

This is simply a collection of functions to test the updated FlxRandom class in HaxeFlixel.
Expand Down
1 change: 0 additions & 1 deletion content/demos/FlxScene.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxScene"
layout: demo
source: "Features/FlxScene"
targets: "html5"
---

An example of `flixel.addons.util.FlxScene`.
1 change: 0 additions & 1 deletion content/demos/FlxShape.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 800
height: 500
source: "Features/FlxShape"
targets: "html5"
---

An example of the `flixel.addons.display.shape` package.
1 change: 0 additions & 1 deletion content/demos/FlxSimplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: "FlxSimplex"
layout: demo
source: "Effects/FlxSimplex"
targets: "html5"
---

Showcases `flixel.addons.util.FlxSimplex` (added in flixel-addons 2.7.0).
1 change: 0 additions & 1 deletion content/demos/FlxSkewedSprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ layout: demo
width: 600
height: 200
source: "Effects/FlxSkewedSprite"
targets: "html5"
---

This is a demo of the [FlxSkewedSprite ](https://api.haxeflixel.com/flixel/addons/effects/FlxSkewedSprite.html)class by [Beeblerox](https://github.com/Beeblerox). As you probably guessed, it allows you to skew sprites.
Loading

0 comments on commit 4617c43

Please sign in to comment.