Skip to main content

· 3 min read
Brandon

Cocos2D-Mono 2.4.7 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- Fix issue with TextureAtlas Data not purging correctly
- Core libraries!!
- These libraries only contain the MonoGame framework only, the Content Builder Task is not included
- Fix for CCLabel Crashing
- iOS Font Texture Improvements
- Fix for DisplayStats on iOS
- Fix for CCTexture being disposed too early
- Implement Line Break Modes for CCLabelBMFont and CCLabel
- Added support for more delimiters in Labels
- Streamlined usages for RemoveFromParent, RemoveChild and RemoveAllChildren.
- Adjust position to reduce line artifacts on fonts
- Improvements with cleanup and dispose objects

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.6...2.4.7

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Cocos2D-Mono.Core.Android Cocos2D-Mono.Core.DesktopGL Cocos2D-Mono.Core.iOS Cocos2D-Mono.Core.Uwp Cocos2D-Mono.Core.Windows

Visual Studio Project Template Extension

Core Library

This will only have the MonoGame Framework dependency and not the MonoGame Content Builder Task.

The benefits for these Core libraries are speed improvements to compilation and resolves an existing vulnerability that exists within MonoGame.Content.Builder.Task image

The downside to this is assets will need to be built manually prior to compilation, either via command line using the dotnet tool or the MGCB Editor.

CCTextLineBreakMode

Introducing new LIne Break Modes for CCLabelBMFont & CCLabel:

  public enum CCTextLineBreakMode
{
SmartBreak,
WordBreak,
CharacterBreak,
NoBreak
}

Word Break

Break string lines by words

Character Break

Break string lines by characters

Smart Break (Default)

Combination of Word and Character breaks. Makes best determination for line break.

No Break

Line has no breaks. Just one line continuous string.

Note

LineBreakWithoutSpace will be deprecated in a future release.

This release introduces some changes around usages of RemoveFromParent, RemoveChild and RemoveAllChildren.

First RemoveFromParentAndCleanup and RemoveAllChildrenWithCleanup have been removed in favor of simply passing in a cleanup parameter, which is now true by default. This mirrors the same behavior as before but without needing to explicitly call RemoveFromParentAndCleanup and RemoveAllChildrenWithCleanup.

For example, m_plabel.RemoveFromParentAndCleanup(true); would now look like m_plabel.RemoveFromParent();.

You can see that this helps to streamline the usage and cleanup will always be performed unless explicitly necessary by passing in false e.g. m_plabel.RemoveFromParent(false);.

This also reduces any confusion on whether RemoveFromParent or RemoveFromParentAndCleanup should be called. It is simply just RemoveFromParent in every case and just specify if cleanup is needed.

Check it out & stay tuned for more to come!

· 2 min read
Brandon

Cocos2D-Mono 2.4.6 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- Implemented CCTextField for all platforms
- Fixed issue with CCNode Pause and Resume
- Fixed visibility issue with CCSprite
- Enhancements for DrawSegment
- Add DrawLine function
- Additional colors like CCColor3B.DarkGray
- Font improvements for Android and iOS
- Fixes for CCSprite ContentSize setter
- Fixes for CCParallel
- Reset vertex for CCDrawNode on Clear
- Maintain CCSprite Scale on TextureRect changes

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.5...2.4.6

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Please note that this will be the final update under .NET 6. Updates going forward will be under .NET 7 as .NET 6 is end of life and this will allow better support with those working with .NET 8. .NET 7 allows the library to be on the latest version possible while still being able to support MonoGame.

You can expect the move to .NET 7 will occur as part of the first release for 2024. Following that update, there will also be a roadmap released to show the direction of the library and some of the amazing features that are coming up. 2024 should be a big year for cocos2d-mono and I can't wait to show off why at the start of the year!

That said, once MonoGame makes the move to .NET 8, plans to move to .NET 8 will also be made.

Check it out & stay tuned for more to come!

· One min read
Brandon

Cocos2D-Mono 2.4.5 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- Maintain CCSprite scale when changing SpriteFrame
- Fix BitmapFont not loading in Android Tests
- CCNodeRGBA is officially gone! Use CCNode instead
- Implement IsSwallowTouches for CCTapNode
- Removed CCActionState from certain CCActions and aligned them with existing CCActions

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.4...2.4.5

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Check it out & stay tuned for more to come!

· One min read
Brandon

Cocos2D-Mono 2.4.4 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- New Test TapTouchTest for CCTapNode
- Fixes for CCTapNode
- Support for initializing CCEaseActions with CCFiniteAction
- Support for initializing CCScale9Sprite with CCSpriteFrame
- Add new constructor for CCTexture2D to support data byte array
- Add TextureFilename property for CCSpriteFrame

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.3...2.4.4

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Check it out & stay tuned for more to come!

· 2 min read
Brandon

Cocos2D-Mono 2.4.3 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- Support for AddedToScene for CCLayer
- New CCTapNode for supporting TouchOneByOne TouchMode
- Support Dispose function for CCNode, CCSprite, CCLayer
- New CCActionState
- Support Math Operators for CCColor4B
- Support for initializing CCScale9Sprite from existing CCSprite
- Added ContentSize getter for CCSpriteFrame
- Note: OriginalSize will be deprecated in a future release
- Added TextureRectInPixels and SpriteFrame Properties for CCSprite
- Added IsSpriteFrameDisplayed function for CCSprite
- Note: IsFrameDisplayed will be deprecated in a future release
- New IsNear function for CCPoint
- Added LengthSquared and DistanceSquared functions for CCPoint
- Note: DistanceSQ, LengthSQ and LengthSquare will be deprecated in a future release
- New CCActions: CCColorBlendAnimation, CCMoveFrom, CCRotateAnimation, CCSwapAction, CCTargetedAction, CCTimerAction
- Support for UnscheduleAll for CCNode
- Added SystemFont and SystemFontSize property for CCLabel
- Note: FontName and FontSize will be deprecated in a future release
- Added ScaledContentSize and BoundingBoxTransformedToWorld properties for CCNode
- Migrated CCNodeRGBA into CCNode
- Note: CCNodeRGBA will be deprecated in a future release
- Added Lerp and Clamp functions to CCMathHelper
- New Pi properties for CCMathHelper

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.2...2.4.3

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Check it out & stay tuned for more to come!

· One min read
Brandon

Cocos2D-Mono 2.4.2 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

- Lowered minimum support for Android to API 21
- Lowered minimum support for iOS 11
- Improved support for narrow screen devices
- Fix for ViewPort positioning in Portrait Mode
- Improved development guides
- Create a New Project
- Add Content
- Fixes and improvements for Project Templates & Samples

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.1...2.4.2

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Check it out & stay tuned for more to come!

· One min read
Brandon

Cocos2D-Mono 2.4.1 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

* Add Support to Align Menu Items Left or Right Vertically
* Fix support for initializing CCSprite with CCTexture2D
* Support Change Text using Property for CCMenuItemFont
* Add support for passing in fontname and fontsize for CCMenuItemFont

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.4.0...2.4.1

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some great improvements to the library!

Check it out & stay tuned for more to come!

· One min read
Brandon

Docusaurus Plushie

Cocos2D-Mono 2.4.0 is out now! Go check out the release notes to see what's change...or just read below.

What's Changed

  • Support for MonoGame 3.8.1
  • Migration to .NET 6
  • Support for iOS development on Apple Silicon
  • CCMenuImage improvements
  • Bumps to dependencies
  • General fixes and improvements
  • Pipeline Improvements
  • Updated documentation

Full Changelog: https://github.com/brandmooffin/cocos2d-mono/compare/2.3.12...2.4.0

NuGet Packages:

Cocos2D-Mono.Android Cocos2D-Mono.DesktopGL Cocos2D-Mono.iOS Cocos2D-Mono.Uwp Cocos2D-Mono.Windows

Visual Studio Project Template Extension

This release sees some major changes and improvements to the library, most importantly, support for developing on Apple Silicon and ARM based devices!

This update also targets .NET 6 which opens up better multiplatform support.

Check it out & stay tuned for more to come!