Skip to content

Commit

Permalink
Merge branch 'release6' into FlxStrip-debugDraw
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Jan 29, 2025
2 parents 2b7c8c1 + b386d54 commit 078140c
Show file tree
Hide file tree
Showing 229 changed files with 13,817 additions and 4,826 deletions.
2 changes: 1 addition & 1 deletion .github/README_TR.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![](https://raw.github.com/HaxeFlixel/haxeflixel.com/master/src/files/images/flixel-logos/HaxeFlixel.png)](http://haxeflixel.com/)
[![](https://raw.githubusercontent.com/HaxeFlixel/haxeflixel.com/master/content/_static/images/flixel-logos/HaxeFlixel.png)](http://haxeflixel.com/)

[flixel](https://github.com/HaxeFlixel/flixel) | [eklentiler](https://github.com/HaxeFlixel/flixel-addons) | [ui](https://github.com/HaxeFlixel/flixel-ui) | [demolar](https://github.com/HaxeFlixel/flixel-demos) | [araçlar](https://github.com/HaxeFlixel/flixel-tools) | [şablonlar](https://github.com/HaxeFlixel/flixel-templates) | [dökümanlar](https://github.com/HaxeFlixel/flixel-docs) | [haxeflixel.com](https://github.com/HaxeFlixel/haxeflixel.com) | [english](https://github.com/HaxeFlixel/flixel/blob/dev/README.md)

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build:
strategy:
matrix:
haxe-version: ["4.2.5", "4.3.3", latest]
haxe-version: ["4.2.5", "4.3.6"]
target: [html5, hl, neko, flash, cpp]
fail-fast: false
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,6 @@ jobs:
- uses: HaxeFlixel/setup-flixel@master
with:
haxe-version: current
flixel-versions: dev
test-location: local
target: ${{matrix.target}}
Expand Down
246 changes: 232 additions & 14 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![](https://raw.github.com/HaxeFlixel/haxeflixel.com/master/src/files/images/flixel-logos/HaxeFlixel.png)](http://haxeflixel.com/)
[![](https://raw.githubusercontent.com/HaxeFlixel/haxeflixel.com/master/content/_static/images/flixel-logos/HaxeFlixel.png)](http://haxeflixel.com/)

[flixel](https://github.com/HaxeFlixel/flixel) | [addons](https://github.com/HaxeFlixel/flixel-addons) | [ui](https://github.com/HaxeFlixel/flixel-ui) | [demos](https://github.com/HaxeFlixel/flixel-demos) | [tools](https://github.com/HaxeFlixel/flixel-tools) | [templates](https://github.com/HaxeFlixel/flixel-templates) | [docs](https://github.com/HaxeFlixel/flixel-docs) | [haxeflixel.com](https://github.com/HaxeFlixel/haxeflixel.com) | [türkçe](https://github.com/HaxeFlixel/flixel/blob/dev/.github/README_TR.md)

Expand Down Expand Up @@ -32,4 +32,4 @@ Thanks to being built on top of [Haxe](https://haxe.org/) and [OpenFL](http://ww

HaxeFlixel has its roots in the original [ActionScript 3 version of Flixel](https://github.com/AdamAtomic/flixel), created by [Adam “Atomic” Saltsman](http://www.adamatomic.com/). It was started by [Alexander Hohlov](https://github.com/beeblerox) in 2011, initially as a straightforward Haxe port of the AS3 codebase and Richard Davey's [Flixel Power Tools](http://www.photonstorm.com/flixel-power-tools).

Thanks to the efforts of the [core team](https://github.com/orgs/HaxeFlixel/people) as well as [over 100 contributors](https://github.com/HaxeFlixel/flixel/graphs/contributors), today's version of HaxeFlixel far surpasses the capabilities of the original. Not only has the core engine seen many substantial improvements and new features, there is also a far richer ecosystem with additional libaries and [over 80 demo projects](https://github.com/HaxeFlixel/flixel-demos) to learn from.
Thanks to the efforts of the [core team](https://github.com/orgs/HaxeFlixel/people) as well as [over 100 contributors](https://github.com/HaxeFlixel/flixel/graphs/contributors), today's version of HaxeFlixel far surpasses the capabilities of the original. Not only has the core engine seen many substantial improvements and new features, there is also a far richer ecosystem with additional libraries and [over 80 demo projects](https://github.com/HaxeFlixel/flixel-demos) to learn from.
Binary file modified assets/images/debugger/buttons/arrowLeft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/bitmapLog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/console.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/eraser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/interactive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/maximize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/minimize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/mover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/pause.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/pointer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/stats.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/toggleSize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/transform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/buttons/watch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/cursorCross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/cursors/transformRotate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/cursors/transformScaleX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/cursors/transformScaleXY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/cursors/transformScaleY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/debugger/flixel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/logo/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/tile/autotiles_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/ui/button.png
Binary file modified assets/images/ui/virtual-input.png
6 changes: 4 additions & 2 deletions checkstyle.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"exclude": {
"all": [
"TestSuite",
"/export/"
"/export/",
"tests/unit/bin/"
],
"AvoidStarImport": [
"flixel.math.FlxRandomTest"
Expand All @@ -35,7 +36,8 @@
"STATIC",
"MACRO",
"INLINE",
"DYNAMIC"
"DYNAMIC",
"FINAL"
]
}
},
Expand Down
66 changes: 63 additions & 3 deletions flixel/FlxBasic.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package flixel;

import flixel.util.FlxDestroyUtil.IFlxDestroyable;
import flixel.group.FlxContainer;
import flixel.util.FlxDestroyUtil;
import flixel.util.FlxStringUtil;

/**
Expand Down Expand Up @@ -69,6 +70,12 @@ class FlxBasic implements IFlxDestroyable

@:noCompletion
var _cameras:Array<FlxCamera>;

/**
* The parent containing this basic, typically if you check this recursively you should reach the state
* @since 5.7.0
*/
public var container(get, null):Null<FlxContainer>;

public function new() {}

Expand All @@ -84,6 +91,10 @@ class FlxBasic implements IFlxDestroyable
*/
public function destroy():Void
{
if (container != null)
container.remove(this);

container = null;
exists = false;
_cameras = null;
}
Expand Down Expand Up @@ -181,18 +192,67 @@ class FlxBasic implements IFlxDestroyable
_cameras[0] = Value;
return Value;
}


/**
* The main camera that will draw this. Use `this.cameras` to set specific cameras for this
* object, otherwise the container's camera is used, or the container's container and so on.
* If there is no container, say, if this is inside `FlxGroups` rather than a `FlxContainer`
* then `FlxG.camera` is returned.
* @since 5.7.0
*/
public function getDefaultCamera():FlxCamera
{
final cameras = getCameras();
// should never be null, unless people do something stupid, but just in case
return cameras == null || cameras.length == 0 ? FlxG.camera : cameras[0];
}

/**
* The cameras that will draw this. Use `this.cameras` to set specific cameras for this object,
* otherwise the container's cameras are used, or the container's container and so on. If there
* is no container, say, if this is inside `FlxGroups` rather than a `FlxContainer` then the
* default draw cameras are returned.
* @since 5.7.0
*/
public function getCameras():Array<FlxCamera>
{
return if (_cameras != null)
_cameras;
else if (_cameras == null && container != null)
container.getCameras();
else
@:privateAccess FlxCamera._defaultCameras;
}

/**
* Helper while moving away from `get_cameras`. Should only be used in the draw phase
*/
@:noCompletion
function get_cameras():Array<FlxCamera>
function getCamerasLegacy()
{
@:privateAccess
return (_cameras == null) ? FlxCamera._defaultCameras : _cameras;
}

@:noCompletion
function get_cameras():Array<FlxCamera>
{
return getCamerasLegacy();
}

@:noCompletion
function set_cameras(Value:Array<FlxCamera>):Array<FlxCamera>
{
return _cameras = Value;
}

// Only needed for FlxSpriteContainer.SpriteContainer
// TODO: remove this when FlxSpriteContainer is removed
@:noCompletion
function get_container()
{
return this.container;
}
}

/**
Expand Down
Loading

0 comments on commit 078140c

Please sign in to comment.