Skip to content

Commit

Permalink
Merge branch 'dev' into hl-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Jun 11, 2024
2 parents 8fa2a88 + 59e8ef0 commit 7b83ede
Show file tree
Hide file tree
Showing 26 changed files with 2,416 additions and 1,084 deletions.
2 changes: 1 addition & 1 deletion .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"]
haxe-version: ["4.2.5", "4.3.4"]
target: [html5, hl, neko, flash, cpp]
fail-fast: false
runs-on: ubuntu-latest
Expand Down
42 changes: 39 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,47 @@
5.8.1 (TBD)
5.9.0 (TBD)

#### New features:
- `FlxReplay`: Add `getDuration` ([#3135](https://github.com/HaxeFlixel/flixel/pull/3135))
- `InputFrontEnd`: ([#3134](https://github.com/HaxeFlixel/flixel/pull/3134))
- Add `addInput` and `addUniqueType` to replace `add`
- add `destroyOld` arg to the `replace` method
- Allow more than one instance of a certain `IFlxInputManager` type
- `SoundFrontEnd`: Add `onVolumeChange` signal ([#3148](https://github.com/HaxeFlixel/flixel/pull/3148))
- `FlxBasePath`: ([#3153](https://github.com/HaxeFlixel/flixel/pull/3153))
- Create base class for `FlxPath` for simpler custom path following logic
- Add signals `onEndReached`, `onFinished` and `onNodeReached`
- Replacement fields: `startAt`, `direction`, `loopType`, `target`, `currentIndex`, `nextIndex`, `current` and `next`
-

#### Changes and improvements:
- `FlxKey`: Add `NONE` to `fromStringMap` and `toStringMap` ([#3119](https://github.com/HaxeFlixel/flixel/pull/3119))
- `FlxPreloader`: Improve documentation ([#3119](https://github.com/HaxeFlixel/flixel/pull/3119))
- `FlxPreloader`: Improve documentation ([#3123](https://github.com/HaxeFlixel/flixel/pull/3123))
- `FlxDrawTrianglesItem`: minor optimization ([#3121](https://github.com/HaxeFlixel/flixel/pull/3121))
- `FlxTypedTilemap`: Add private `createTile` method for easier extension, with custom tile types ([#3154](https://github.com/HaxeFlixel/flixel/pull/3154))
- `FlxState`: Improve doc for `persistentUpdate` & `persistentDraw` ([#3155](https://github.com/HaxeFlixel/flixel/pull/3155))
- `FlxCamera`: Improve doc ([#3161](https://github.com/HaxeFlixel/flixel/pull/3161))
- `NextState`: Improve doc ([#3160](https://github.com/HaxeFlixel/flixel/pull/3160))
- `FlxSprite`: Account for `scale`, `origin`, `offset`, `angle` and `pixelPerfectPosition` in `getGraphicMidpoint` ([#3125](https://github.com/HaxeFlixel/flixel/pull/3125))
- Major change to `FlxTilemap` and `FlxTiles` collision ([#3158](https://github.com/HaxeFlixel/flixel/pull/3158))
- `FlxTile`: Various features for allowing custom overlap/collision logic
- Add dynamic methods `overlapsObject` and `orientAt` with helpers `orient`, `orientByIndex` and `orientAtByIndex`
- Add `onCollide` signal, when overlaps are detected for collision purposes
- Tilemaps: Add various new tools and helpers to `FlxTilemap` and `FlxBaseTilemap`
- Added new `forEachOverlappingTile` calls a method with every tile that overlaps an object
- Added new `isOverlappingTile` method, allows you to check all tiles overlapping an object
- Added new `objectOverlapsTiles` to replace the now deprecated `overlapsWithCallbacks`
- Eschews `flipCallbackParams` arg, allowing better typing of both callback params
- Adds `isCollision` flag to control whether the Tiles' collision callbacks are fired and allows for processing non-solid tiles
- Added new helpers: `getMapIndex`, `getRow`, `getColumn`, `getTileIndex`, `getTileData`, `tileExists`, `setTileIndex`, `getColumnAt`, `getRowAt`, `columnExists` and `rowExists`
- `FlxObject`: Add internal helpers for processing tilemaps in `separate`, `updateTouchingFlags` and similar functions
- Debug Drawing: Various improvements to debug drawing tilemaps
- Now honors tiles' `ignoreDrawDebug` and `debugBoundingBoxColor` fields
- New `getDebugBoundingBoxColor` in `FlxObject`. Meant to eventually replace `drawDebugBoundingBox`


#### Bugfixes:
-
- `FlxFlickerTween`: Fix "Unsupported recursive type" error on hl ([#3170](https://github.com/HaxeFlixel/flixel/pull/3170))
- `FlxBGSprite`: Fix draw size when scale is not `1.0` ([#3142](https://github.com/HaxeFlixel/flixel/pull/3142))

5.8.0 (April 19, 2024)

Expand Down
2 changes: 1 addition & 1 deletion 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
21 changes: 9 additions & 12 deletions flixel/FlxCamera.hx
Original file line number Diff line number Diff line change
Expand Up @@ -182,25 +182,22 @@ class FlxCamera extends FlxBasic
public var bgColor:FlxColor;

/**
* Sometimes it's easier to just work with a `FlxSprite` than it is to work directly with the `BitmapData` buffer.
* Sometimes it's easier to just work with a `FlxSprite`, than it is to work directly with the `BitmapData` buffer.
* This sprite reference will allow you to do exactly that.
* Basically this sprite's `pixels` property is camera's `BitmapData` buffer.
* NOTE: This variable is used only in blit render mode.
* Basically, this sprite's `pixels` property is the camera's `BitmapData` buffer.
*
* The FlxBloom demo shows how you can use this variable in blit render mode.
* @see http://haxeflixel.com/demos/FlxBloom/
* **NOTE:** This field is only used in blit render mode.
*/
public var screen:FlxSprite;

/**
* Whether to use alpha blending for camera's background fill or not.
* If `true` then previously drawn graphics won't be erased,
* and if camera's `bgColor` is transparent/semitransparent then you
* will be able to see graphics of the previous frame.
* Useful for blit render mode (and works only in this mode). Default value is `false`.
* Whether to use alpha blending for the camera's background fill or not.
* If `true`, then the previously drawn graphics won't be erased,
* and if the camera's `bgColor` is transparent/semitransparent, then you
* will be able to see the graphics of the previous frame.
*
* Usage example can be seen in FlxBloom demo.
* @see http://haxeflixel.com/demos/FlxBloom/
* This is Useful for blit render mode (and only works in this mode).
* Default value is `false`.
*/
public var useBgAlphaBlending:Bool = false;

Expand Down
Loading

0 comments on commit 7b83ede

Please sign in to comment.