So am im updating this method
public void processMove(String s){
// Send command to tank not controlled by
// this player
tanks.get(1 - playerID).processMove(s);
}
Type: Posts; User: rmorris7
So am im updating this method
public void processMove(String s){
// Send command to tank not controlled by
// this player
tanks.get(1 - playerID).processMove(s);
}
Thats what Im trying to figure out, I have been trying to solve this for 3 days now
The game works fine.The code does what its suppose to do. Its up and running however when I fire a bullet it doesnt show up on the other player's screen, just mine.
Let me be more specific. I believe the problem is coming from this class.
class Tank implements Ball {
double locX, locY, radius, angle;
int self; // index of this tank in WarPanel.tanks...
Hi all so I a tank war game thats ran over a network and is multiplayer, however whenever I fire a bullet it shows on my screen but not the other player's screen. Can you help, here's the code:
...
So Im making a game with a start screen followed by my game. I have a button centered but Im having a hard time displaying my label. Do you all have any options? Here's my code:
import...
heres the code again
import java.awt.*;
import java.awt.event.*;
import java.awt.Graphics;
import javax.swing.*;
public class Roomba extends JFrame implements ActionListener, KeyListener{
Im not getting any errors but the goal was to make the black circle "c11" move around with the arrow keys.
Hey guys so im designing a game that simulates a roomba robot vacuum and have most of the framework done. So I have random floating circles and the Roomba bot in the center. The boot is suppose to...
It was along the lines of an Exception such as an IllegalArgumentException at line 3 saying out of bounds
Im suppose to perform this method recursively however when I lauch the program i get an error stating out of bounds. Any suggestions?
// assumes that a != null && a.length > 0
public static int...
I like to write out pseudocode before i program so my question is how would i implement this algorithm into pseudo code?
The algorithm i need first finds the smallest element of theArray and exchanges it with the element indexed by 0, and then finds the second smallest element of theArray and exchanges it with the...