Skip to content

Add ring element to the gameplay element#9

Merged
HelloYeew merged 3 commits intomasterfrom
the-ring
Feb 14, 2022
Merged

Add ring element to the gameplay element#9
HelloYeew merged 3 commits intomasterfrom
the-ring

Conversation

@HelloYeew
Copy link
Copy Markdown
Owner

Add the ring element that's a main playfield on main gameplay field.

image

Problem

The Maimai playfield is mainly a circle white the white border and the 'sensor' on the ring corner. So I try using this method

new Circle
{
    Anchor = Anchor.Centre,
    Origin = Anchor.Centre,
    RelativeSizeAxes = Axes.Both,
    Colour = Color4.White.Opacity(0.5f),
    BorderThickness = 10,
    BorderColour = Color4.White,
    Masking = true
}

And the result is like this

image

The goal of this ring is it must have only the white border and its circle color must be transparent or only white with very low transparency but when I using this method the border color is depend on the transparency using inside the circle (like I set inside as 0.5f so the border is 0.5f too) Needing to investigate on this.

Copy link
Copy Markdown
Collaborator

@Game4all Game4all left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from the visual issue, code looks fine.

@HelloYeew HelloYeew merged commit 4f61c5f into master Feb 14, 2022
@HelloYeew HelloYeew deleted the the-ring branch February 14, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants