The complexity of the game in the Java zone

Many first-person 2d games will have a huge playing field, but a small display area on your computer:

++++++++++++++++++++++++++++++++++++
+++++aaaaaa+++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
+++++aaaaaa+++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
+++++aaaaaa+++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
+++++aaaaaa+++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++

where "+" is the entire playing field, and "a" is the displayed area on your screen.

I want to create a game where pressing the arrow keys will make you move around the game field.

Question: Should I create a huge JPanel for this? (Bigger than the screen)

+1
source share
1 answer

If you start a regular game, do you expect to find scroll bars for the entire level below and on the side of the screen? Or do you expect that you can go (using the mouse / arrows / ...) to the entire level.

, JPanel JScrollPane, 2.

2 SO. ,

+4

All Articles