Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nemo

Pages: 1 ... 4 5 [6] 7 8 ... 82
76
Math and Science / Re: Factorials
« on: January 30, 2011, 03:55:23 pm »
two ways in java, out of boredom:

Code: [Select]
public int factorial(int x){
   if(x == 0)
      return 1;
   return x * factorial(x - 1);
}
Code: [Select]
public int factorial(int x){
   int sum = x == 0 ? 1 : x;
   for(int i = x; --i > 0;)
      sum *= i;
   return sum;
}

77
Graviter / Re: Level Design
« on: January 30, 2011, 12:43:10 am »
Okay phenomist,
The gravity axis thing in some of your levels has to be changed. Here's how the block works:

Falling down --> Falling left
Falling right --> Falling up

Falling up --> Falling right
Falling left-->Falling down

maybe you could have 3 different blocks to manipulate gravity. one to rotate gravity 90° clockwise, one to rotate 90° counterclockwise and one to flip gravity. when i say rotate, it might be easier to understand this way:

90° counterclockwise:
up -> left
left -> down
down -> right
right -> up

90° clockwise:
up -> right
right -> down
down -> left
left -> up

78
Computer Projects and Ideas / Re: Nightmare
« on: January 29, 2011, 04:14:19 pm »
Its not built with a game maker, its almost 100% my own code :) The only things I use are an mp3 player and an Image loader

i thought this used the Greenfoot library? loading images doesn't require its own class, really. it's just ImageIO.read(new File("filename.extension")); and returns a BufferedImage

79
Computer Projects and Ideas / Re: FreeCell
« on: January 28, 2011, 11:10:33 pm »
It looks nice. I would like to learn from the source-code.

thanks, the source is attached since this isn't for a project or contest or anything. the only new thing i've implemented is a little bit of gameplay. when you pick up a stack of cards, they must be alternating color and in increasing order. i've added a comment as to where this occurs so if you want you can take that part out.
the image of the cards is also attached.

edit: in hindsight, my method names are pretty worthless.

80
Computer Projects and Ideas / FreeCell
« on: January 28, 2011, 10:48:22 pm »
i've recently took a liking to FreeCell and decided that since it isn't too complicated a game and i was a little bit over my head with Juggernaut, i'm going to make it in java. all of the cards can be moved in arbitrary sized groups to other columns. no game-play is implemented yet, but the roots are there. also, in the screenshot there's a 6 and 5 that are floating. my mouse was there, but was taken out for the screenshot. drag-and-drop is how it's played.

81
Art / Re: 5 by 5 walking person
« on: January 27, 2011, 10:09:02 pm »
when i saw this topic i actually thought of portal's sprite. builderboy might supply the sprite for you to use if you PM him for it. sorry i can't contribute myself, i'm no good at spriting in such limited space.

82
Computer Projects and Ideas / Re: Trio and Niko: Falling
« on: January 27, 2011, 03:58:50 pm »
Quick question: am I trying to read an appvar from Archive, and it's going very unsuccessfully.  Here is what I'm doing:

Code: [Select]
GetCalc("appvMAP",Y1)->X
GetCalc("appvT1",202)->A
R*202+X -> X
Copy(X,A,202

Am I using the pointer to the archived var in the wrong way?

are you checking to make sure that the appvar is archived?

83
Computer Projects and Ideas / Re: Coding Battles
« on: January 26, 2011, 11:03:59 pm »
Sorry you can't compete. try to pay attention next time so you can try to win.

i don't frequent often enough to catch all the posts, maybe it'd be easier if you could edit the first post with new contest information like Raylin does for the Cage Matches?

84
Computer Projects and Ideas / Re: Coding Battles
« on: January 26, 2011, 10:52:49 pm »
source coder in java in 3 days?  O.O

yeah... i'm gonna have to opt out on that challenge. i haven't practiced enough with strings to do that type of tokenizing, even with java's like 4 different ways to tokenize strings.

85
Computer Projects and Ideas / Re: Coding Battles
« on: January 26, 2011, 10:08:25 pm »
How are you guys doing?
only a few days left and I haven't heard anything

there's a competition going on? i must've missed the post because i've just been checking the first. what language?

86
Computer Projects and Ideas / Re: Juggernaut
« on: January 26, 2011, 08:54:28 pm »
this is pretty much finished. i have a beta circulating around my friends, and they're giving me feedback. just about everything is implemented. i did decide however to ignore a storyline and just call it a puzzle game, and rather than spend time putting the storyline in i'm going to polish the game. no screenshot, since there really isn't anything new to see. i'm not posting the beta here because i can't take the risk that a guest will download it and claim it as their own

87
Computer Programming / Re: Java volume control
« on: January 26, 2011, 03:58:26 pm »
Hey thanks for your help everybody, I was able to eventually get it to work, but unfortunately specific circumstances have prevented me from using the method I developed.  It worked perfectly, it had volume, pan, and echo control, but it relied on input as a Wav file, and as I'm sure all of you know, wav files can be quite huge.  greenfoot applets have a maximum size requirement, and so I was forced to switch to mp3 files, of which I have no control over whatsoever.  So thanks for all your help, but unfortunately it looks like colume control will not play any part in Nightmare

did your code use part of Greenfoot's library? if not, can i see the source code?

88
UberGraphX / Re: Uberspire's Project Paradise
« on: January 24, 2011, 09:50:00 pm »
whoa, this is crazy how far you've gotten. if you need anything written in java/any help in java don't hesitate to ask me i could chip in with some software. this looks amazing, good luck with the rest of it

89
Math and Science / Re: Math Community Quiz
« on: January 24, 2011, 08:52:41 pm »
the determinant of N is -95396800. Or a possibly infinite other numbers. all negative I believe.

yeah, you win.

90
Computer Programming / Re: Java volume control
« on: January 23, 2011, 09:27:00 pm »
sound's a bitch. my classmate in AP computer science downloaded something to play .wav files. you can check the java API for sound, i think there's a class for MIDI and a class for other uncompressed files like .wav.

aren't you using greenfoot? i swear i remember hearing sound in that Nightmare demo. i'll ask my friend tomorrow for that class which played a .wav file if you want.

Pages: 1 ... 4 5 [6] 7 8 ... 82