2d array grid in JPanel with random placed images
I'm new at java programming so bare with me...
i'm trying to make an game
Its an tile based game for 1 player
-The player can move one tile at a time
-The grey squares are fixed positions
-The blue squares are moveable (one tile at a time if you push it)
-The red pacman like sprite is the computer with AI
I try to make this game just to practice with java game development but i don't know how to create such a grid:(
I've searched google but found nothing or i don't understand it...
I don't have any code yet.
If you need more info just say it.
Can you give me a few lines of code to create such a game?
Thnx in advance.:D