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...
User Profile
Collapse
-
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....Leave a comment:
-
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/...Leave a comment:
-
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... -
i have it from the java forum..
:) for the others like me:
java -jar MyJar.jarLeave a comment:
-
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.. :( -
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?Leave a comment:
-
-
-
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:...Leave a comment:
-
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?
No activity results to display
Show More
Leave a comment: