Tag Info

New answers tagged

4

The artifacts are caused by scaling the images using point sampling / nearest neighbourhood filtering, which effetively doubles some of the pixels from the original image. To get better results, switch to bilinear filtering which uses weighed average of multiple pixels. The result will be a little blurry, but should look a lot better than the current one. ...


0

I did this once by drawing maps in GIMP and saving them out to portable pixmap format (PPM), because PPMs are really easy to parse. A PPM-parsing library (or a parser for a more complex image format, actually) might exist for Python already, but to keep this maximally useful for everyone, I'll explain the concepts. Just to get an idea of what we want, ...


1

Whichever option is easier for you to work with, you are unlikely to push the hardware limits with a 2d game so you should get a good framerate with either approach. Using a Group and place components in it means you can detect mouse clicks on each element the same as any other JavaFX control. Drawing into a Canvas is more similar to how a fully fledged ...



Top 50 recent answers are included