AlmasB / FXGLGames

This repo contains sample games built with FXGL
http://almasb.github.io/FXGLGames/
MIT License
807 stars 325 forks source link

PongGame #31

Open SpartanDylan7 opened 1 year ago

SpartanDylan7 commented 1 year ago

I bought your book, "Learn JavaFX and App Development", I had just finished the third chapter and copied the pong game down onto my computer. When I ran it it didn't work. The enemy paddle and the player paddle both spawned at 0, 0. I'm not sure why this happened. I double checked the code and rewrote all of it, same issue.

AlmasB commented 1 year ago

Hi, thank you for the support.

Can you confirm whether the code from this repository's Pong functions correctly?

SpartanDylan7 commented 1 year ago

No It does not I have copied it over and it does not work. Sorry about the delay to respond.

cbmarcum commented 1 year ago

When I run the Pong from the GitHub project on macOS Ventura it seems to spawn them in the correct location.

SpartanDylan7 commented 1 year ago

For some reason also the BuildAndPlay method doesn't work either. IntelliJ gives me an error whenever I use it.

AlmasB commented 1 year ago

This is an IntelliJ bug. The method works, but the IDE highlights it red.