Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Blazor Asteroids added to community.md samples #272

Merged
merged 1 commit into from Oct 12, 2018
Merged

Blazor Asteroids added to community.md samples #272

merged 1 commit into from Oct 12, 2018

Conversation

aesalazar
Copy link
Contributor

Add Blazor Asteroids sample, alphabetically.

repo: https://github.com/aesalazar/AsteroidsWasm/
demo: https://aesalazar.github.io/AsteroidsWasm/

@guardrex
Copy link
Collaborator

@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! 🎉

Copy link
Member

@danroth27 danroth27 left a 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?

@guardrex
Copy link
Collaborator

Another note @aesalazar ...

capture

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!

@danroth27
Copy link
Member

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.

@aesalazar
Copy link
Contributor Author

@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.

@guardrex
Copy link
Collaborator

guardrex commented Oct 11, 2018

Thats some score

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 👴

@aesalazar
Copy link
Contributor Author

aesalazar commented Oct 12, 2018

@danroth27 Ok, updated the demo and seems to be fully working in Edge for me:
https://aesalazar.github.io/AsteroidsWasm/

@aesalazar
Copy link
Contributor Author

aesalazar commented Oct 12, 2018

@guardrex That is slightly before my time (I was too young for arcades). I started playing it in the 80's on Atari 👍

@guardrex
Copy link
Collaborator

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 ?????

@aesalazar
Copy link
Contributor Author

@guardrex guardrex merged commit 2292cd9 into aspnet:master Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants