HaxeFlixel / HaxeFlixel/flixel

Multiple outlines, shadows and gradients for FlxText

Open
#1,165 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
2.2k
Forks
522
Avg merge
34m
Merged PRs (30d)
1

Description

Presently, it is very difficult to make a FlxText look distinct. I wish to improve FlxText to make it possible to have multiple outlines, multiple shadows, gradients, and perhaps other effects. What I would like would be a breaking change, so before I go ahead and try it, I'd like some feedback.

I would like to change the following:-

  • Remove borderStyle and its related properties. (Since when did a shadow count as a border?)
  • Make a general FlxTextEffect to represent the various filters.
  • Make a FlxTextOutline, FlxTextGradient, and FlxTextShadow.
  • Add an array of FlxTextEffects to FlxText.
  • Add shorthand methods, addOutline(), addShadow(), and addGradient()?

Note that effects would be applied cumulatively. This would make text significantly more customizable. Instead of just having a single border or outline, you could have outlined text with a shadow, or shadowed text with an outline around the shadow etc..

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the existing FlxText borderStyle and related properties, then seek maintainer feedback on the proposed FlxTextEffect hierarchy and cumulative effects. The issue has no agreed acceptance criteria, so completion would require an approved design before implementation.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.