Search:

Type: Posts; User: UndersKore

Search: Search took 0.17 seconds.

by UndersKore
Replies
1
Views
112

Mistake in formula?

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...
2. Thread: Java relative path of a static class

by UndersKore
Replies
3
Views
149

Re: Java relative path of a static class

Now I realise I was looking at it the wrong way and that it actually works.. (:

But the reason it...
3. Thread: Java relative path of a static class

by UndersKore
Replies
3
Views
149

Java relative path of a static class

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.
However, I would...
4. Thread: Gamelogic - variable in another class

by UndersKore
Replies
1
Views
211

[SOLVED] Re: Gamelogic - variable in another class

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) {
...
5. Thread: Gamelogic - variable in another class

by UndersKore
Replies
1
Views
211

[SOLVED] Gamelogic - variable in another class

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...
6. Thread: copy values from arraylist to another

by UndersKore
Replies
6
Views
208

Re: copy values from arraylist to another

for (int i = 0; i < 10; i += 2)
The variable i will respectively go trough the following values:
0, 2, 4, 6, 8

i + 1 then gives these values:
1, 3, 5, 7, 9

And...

by UndersKore
Replies
8
Views
221

Re: Ternary operator

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) *...
8. Thread: help to create a class

by UndersKore
Replies
7
Views
302

Re: help to create a class

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
9. Thread: i have writtena simple java program with one method but method is not executing ....

by UndersKore
Replies
6
Views
161

Re: i have writtena simple java program with one method but method is not executing ....

import java.io.*;
class method {
public static void main(String args[]) {
System.out.println("hey ho");
void clear() {
System.out.println("Finally its working ");...
10. Thread: copy values from arraylist to another

by UndersKore
Replies
6
Views
208

Re: copy values from arraylist to another java

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...

by UndersKore
Replies
1
Views
89

Hi everyone

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...
Results 1 to 11 of 11