-1
votes
1answer
60 views

Refering to an object from an array in Java [closed]

In my game, the whole thing is based off of grids. So the map is a dual dimensional array of 32 (32 x 32 grid map). Now what I want to be able to do is to grab a grid and be able to access it and ...
1
vote
1answer
85 views

Making different kinds of items [closed]

I want to create 2 items on the screen. Each item will be a differently colored rectangle. item1 = green rect item2 = blue rect If the user gets the 1st item, it will print bullet1, which is the 1st ...
0
votes
1answer
922 views

How do I get my character to move after adding to JFrame? [closed]

I made a Jframe with a Card Layout, but when I switch from the first card with the Title to the second with the game board itself through a Jbutton and a MouseListener, I cannot move my player. I ...
0
votes
2answers
256 views

Question on methods in Object Oriented Programming [closed]

I’m learning Java at the minute (first language), and as a project I’m looking at developing a simple puzzle game. My question relates to the methods within a class. I have my Block type class; it ...