it's written in Java and transpiled with TeaVM because I wanted to use JBox2D

the usage of svg means there's no rotation artifacts and everything is infinitely scalable

it looks really nice

i'm a little concerned about the performance

it runs fine on my system in firefox, but yeah this is not exactly efficient

those use elements create an entire shadow dom each

i specifically wanted to not use webgl or canvas so it can be used in locked-down browser configs

the project is called "welon" because i was saying that as short for watermelon when talking about making a suika game clone and i thought it was cute

all the art and the engine is in place, i now need to add user-controlled fruit dropping and more set dressing

just fixed my main performance bottleneck: building the actual css string for the transform

all the time spent now is inside of firefox's css parser which is unfortunate but unsolvable due to the fact these apis are bad

in terms of rendering, firefox is spending a lot of time building new display lists despite the reused geometry

i suppose it's missing heuristics for svg use elements, which isn't really surprising

but it's not that bad

I haven't implemented losing yet so the rng just keeps spawning fruits infinitely

Follow

@unascribed is the loss condition missing on purpose?

· · Web · 1 · 0 · 0

@noiob Box2D's behavior with overlapping bodies is pretty nice

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!