Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples, breakout: add subtle light and shadow effects for feeling of depth #23885

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Mar 8, 2025

Small visual tweaks to give the elements a little more depth:
image

examples, breakout: add subtle light and shadow effects for feeling of depth
Copy link

Connected to Huly®: V_0.6-22288

@spytheman
Copy link
Member

It looks much nicer 🥳!

Thank you!

@spytheman
Copy link
Member

spytheman commented Mar 8, 2025

I can sometimes put the ball in a vertical line, that is right near the edge of a column of bricks, and then it seems like the ball passes partially below the side edge of the column of bricks, until it hits the top wall.

It is hard to reproduce though, I would have to change the code to make it easier.

@spytheman
Copy link
Member

we may need to expand the hitboxes of the bricks, to include the new decorations 🤔

@spytheman
Copy link
Member

image

That is with:

                               ._0 { g.ball_dx = 0 }
                               ._1 { g.ball_x-- }
                               ._2 { g.ball_x++ }

inside the keydown_fn: handler, and then pressing 0 and 1 and 2 to adjust the x offset of the ball

@spytheman
Copy link
Member

spytheman commented Mar 8, 2025

another option is to just draw the ball last 🤔, not sure if that is better

@spytheman
Copy link
Member

It turns out, that it is unrelated to the PR, it does it on master too:
image

@spytheman
Copy link
Member

It should be fixed now in ef6b81d , sorry for the noise here.

@spytheman spytheman merged commit 0210567 into vlang:master Mar 8, 2025
31 checks passed
@larpon larpon deleted the examples/breakout/add-subtle-light-and-shadow-effects branch March 9, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants