User Profile

Collapse

Profile Sidebar

Collapse
mishela
mishela
Last Activity: Jun 29 '07, 08:55 AM
Joined: May 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mishela
    replied to Timer
    in Java
    the whole code is based on this logic:

    while(some stone is falling in the field) {
    for(every row in the field) {
    for(every column in the field) {

    if(tile[row][column] is not a stone or crystal - something that cannot fall) {
    //do nothing
    }

    else if(tile[row][column] is a stone or crystal - something that can fall) {

    if(the...
    See more | Go to post

    Leave a comment:


  • mishela
    replied to Timer
    in Java
    1.)correct
    2.)The stone falls from up to down, so if it falls to the head of the man it will kill him. Exactly like in that original game.
    Yes, the assumption 1 is not being satisfied....
    See more | Go to post

    Leave a comment:


  • mishela
    replied to Timer
    in Java
    because the man must have an opportunity to run away from that stone, but if he doesn't make it until the stone falls, he is killed by it..
    The original game can be downloaded here:
    http://www.zxgames.com/en/boulderdash.shtml
    and here:
    http://boulder-dash.en.softonic.com/...
    See more | Go to post

    Leave a comment:


  • mishela
    started a topic Timer
    in Java

    Timer

    Hello,
    I have a program - it is accually a game, BoulderDash. A man runs an collets some crystals and when he has already collected the needed amount of crystals, he goes to the given destination and goes to another level. In the game besides the crystals there are also stones. When a stone or a crystal falls on the man's head, the game is over. The stone or crystal cannot fall from the grass or wall, but from another stone or crystal it can...
    See more | Go to post

  • mishela
    replied to console application in Netbeans IDE?
    in Java
    i have it from the java forum..
    :) for the others like me:


    java -jar MyJar.jar
    See more | Go to post

    Leave a comment:


  • mishela
    started a topic console application in Netbeans IDE?
    in Java

    console application in Netbeans IDE?

    I have a project that runs a console application to multiply polynomials. It runs without any problem in command prompt using the java command.
    But when I build the project in Netbeans, it makes a *.jar file, but this file does not run.. Where is the problem? Please help, tomorrow i must give it to teacher.. :(
    See more | Go to post

  • mishela
    replied to how to create a shortcut?
    in Java
    I already have it and it works, thank you. I would like to make a keystroke for button, too. Can you please write how do I do this?
    See more | Go to post

    Leave a comment:


  • mishela
    replied to how to create a shortcut?
    in Java
    there is one more problem, how do I make Alt+Ctrl+S?
    See more | Go to post

    Leave a comment:


  • mishela
    replied to how to create a shortcut?
    in Java
    wow, thanks :)
    See more | Go to post

    Leave a comment:


  • mishela
    replied to how to create a shortcut?
    in Java
    i know how to create a menu and save a program from it. But I want the whole window to react to the keys alt and then S. I know it is made throu focus, but it does not work.. I have this:

    private void formKeyReleased (java.awt.event .KeyEvent evt) {
    switch(evt.getK eyCode()) {
    case KeyEvent.CTRL_D OWN_MASK: isCtrlPressed = false; break;
    case KeyEvent.ALT_DO WN_MASK:...
    See more | Go to post

    Leave a comment:


  • mishela
    started a topic how to create a shortcut?
    in Java

    how to create a shortcut?

    I wonder how do I create a shortcut in java, for example Ctrl+S for save and so on.. I tried to make a keyEvent for the whole frame, but it didn't work. Can somebody help me with this please?
    See more | Go to post
No activity results to display
Show More
Working...