Search:

Type: Posts; User: UndersKore

Search: Search took 0.08 seconds.

  1. 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. Replies
    3
    Views
    149

    Re: Java relative path of a static class

    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...
  3. 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.
    I made a new class for this called 'MapReader'.
    However, I would...
  4. 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. 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. 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

    tab2.add(tab.get(i + 1));
    i + 1 then gives these values:
    1, 3, 5, 7, 9

    And...
  7. 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. 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. 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. 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...
  11. Thread: Hi everyone

    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