Blazor Asteroids added to community.md samples #272
Conversation
@danroth27 Sorry to have to tell you this based on @aesalazar's app here ... but my productivity on the docs just went right down the drain! 😄 lol Great job @aesalazar! ... This is my new favorite Blazor app! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool! 😃
The live site seems to have an issue running on Edge though. It looks like Edge expects there to be some parens after the catch clause on line 29 of JsInteropAsteroidsWindow.js. Can you take a look at that first?
Another note @aesalazar ... When you get up to the very high scores ... many roids on the playing field ... the algorthym that tries not to plop you down right in a glide path takes several minutes to put your next ship out. You might want to just have a spacebar-appear option for the player in case they don't want to wait any longer. Again, nice job on this! LoVe It! ........... ok .... now back to real work! ⛏ |
I sent a PR to at least get the game to render in Edge, but keyboard controls don't seem to work. Might be related to https://github.com/aspnet/Blazor/issues/1290. |
@guardrex LOL Thats some score. I will create a ticket for myself for the space bar idea. That will take a little effort. Nothing terrible but not a 5 min thing. @danroth27 Thanks for the PR to fix the Edge error. For the keyboards, it looks like the trick to use tabindex="-1" so I can do blazor-side Key Up/Down event handlers doesnt work in Edge :/. Looks like I will have to go back to Interop. Should be easy enough to revert. |
I have quite a bit of experience. I mean I played A LOT of Asteroids ... for real ...... "for real" ....... as in I played it in an arcade after it came out in ~1980! Yikes! lol 👴 |
@danroth27 Ok, updated the demo and seems to be fully working in Edge for me: |
@guardrex That is slightly before my time (I was too young for arcades). I started playing it in the 80's on Atari 👍 |
One other thing ... it loads to say "Game Over" ... there's no indication that the player should tap an arrow key to get the game started. btw -- Tweeted it, too. https://twitter.com/guardrex/status/1050733255102816257 Next??!! ... Blazor Missile Command ????? |
Add Blazor Asteroids sample, alphabetically.
repo: https://github.com/aesalazar/AsteroidsWasm/
demo: https://aesalazar.github.io/AsteroidsWasm/