Hello everyone!
I have to make a tank-game in Java for school
Obviously the tank should be able to shoot, in a parabola
Our teacher provided us with the formula to calculate the y-coordinate for...
Type: Posts; User: UndersKore
Hello everyone!
I have to make a tank-game in Java for school
Obviously the tank should be able to shoot, in a parabola
Our teacher provided us with the formula to calculate the y-coordinate for...
Thank you for your answer Copeg!
I've already tried your solution and thought it was wrong.
Now I realise I was looking at it the wrong way and that it actually works.. (:
But the reason it...
Hello everyone!
For my 'tanks' game which I am developing in Java I need to read a text file in which the map's data is stored.
I made a new class for this called 'MapReader'.
However, I would...
I solved it myself, I hope it's a good way.. :p
Miner
public class Miner {
private Inventory inventory;
private Items items;
public Miner(Inventory inventory, Items items) {
...
Hello everyone, I'm still kind of new to programming and I need some help on a project I just started..
How it works:
The 'game' class has three objects: inventory, items and miner
Inventory has...
for (int i = 0; i < 10; i += 2)
The variable i will respectively go trough the following values:
0, 2, 4, 6, 8
tab2.add(tab.get(i + 1));
i + 1 then gives these values:
1, 3, 5, 7, 9
And...
if (ayr[8+ch] & 0x10)
return ((ayr[7] >> ch | tons >> ch) & (ayr[7] >> ch+3 | noiv) & 1) * amp[envv];
else
return ((ayr[7] >> ch | tons >> ch) & (ayr[7] >> ch+3 | noiv) & 1) *...
How are we supposed to help if you don't tell uw what errors you get? :p
And it'll help if you post your current source
import java.io.*;
class method {
public static void main(String args[]) {
System.out.println("hey ho");
void clear() {
System.out.println("Finally its working ");...
Ok, first of all, your loop doesn't make sense.
while ( i < tab.size () )
Tab doesn't contain any object so it has a size of 0, but you say while (1 < 0) do something? The code between the...
Hi everyone!
I'm 18, I live in Belgium and study informatics
OOProgramming in Java is one of my courses and I really like it, so might as well join a forum about it (:
Before I started...