flixel-demos icon indicating copy to clipboard operation
flixel-demos copied to clipboard

Can't see the players in SplitScreen demo

Open NQNStudios opened this issue 3 years ago • 3 comments

First of all, the SplitScreen demo won't play in browsers anymore because it's hosted as a Flash game: https://haxeflixel.com/demos/SplitScreen/

In my clone of the repository, I ran with lime test html5 and it runs without any errors to console, but I can't see the players (which judging from the code should just be solid-color squares).

NQNStudios avatar Mar 15 '21 21:03 NQNStudios

the problem is that the tilemap doesn't show because of how they are loading the tile asset. the players aren't showing because they are falling below the camera too fast. the same thing happens on EZPlatformer but it's easier to spot.

Side note, on EZPlatformer it seems that the tilemap doesn't load on the first try, but succeeds on the second attempt that happens when the player triggers a reset to playstate. This is because they load the tilemap asset using FlxGraphic.fromClass(GraphicAuto). On web, it seems the image is loaded asynchronously and seen as a 0x0 image when creating the tilemap.

we should add the autotile assets to the include.xml#L17 asset list and load them via "flixel/images/tile/autotiles.png"

Geokureli avatar Sep 06 '21 18:09 Geokureli

@Gama11 I was expecting the html5 preview of splitscreen demo to show up, now. Is it manually disabled somewhere? I see the EZPlatformer demo is fixed from #2402

Geokureli avatar Sep 13 '21 16:09 Geokureli

Possibly, in the haxeflixel.com repo.

Gama11 avatar Sep 13 '21 16:09 Gama11