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 ... 17 18 [19] 20 21 ... 82
271
« on: December 16, 2010, 06:13:15 pm »
how large are the platforms? if they're three pixels in height, give doodler a maximum downwards velocity (terminal velocity) of 3 pixels. hmmm but that won't work since your platforms aren't solid.
did you say that you have the x and y coordinates of each platform in a place? then you could just loop through each platform and see if doodler's foot is contained within it.
xPos = doodler's x position yPos = doodler's foot position xPlat = platform's x position yPlat = platform's y position height = platform's height width = platform's width. if(xPlat <= xPos and (xPlat + width >= xPos) and (yPlat <= yPos) and (yPlat + height >= yPos) //doodler's foot is in a platform, so jump up.
this will probably also slow down your code a lot... but it's another suggestion.
272
« on: December 15, 2010, 10:00:28 pm »
"encoding" and "decoding" a string. you really aren't... for example, does this look recognizable?
{0171,0157,0165,040,0150,0141,0166,0145,040,0154,0157,0163,0164,040,0164,0150,0145,040,0147,0141,0155,0145,056}
i bet this does though:
you have lost the game.
to encode:
import java.util.*;
public class Array{
public static void main(String[] args){ Scanner reader = new Scanner(System.in); String str = reader.nextLine(); String obfuscation = "{"; for(int i = 0; i < str.length(); i++){ obfuscation += "0" + Integer.toOctalString((int)str.charAt(i)); if(i + 1 != str.length()) obfuscation += ","; } obfuscation += "}"; System.out.println("encoded: " + obfuscation); }
}
to decode:
public class Array2{
public static void main(String[] args){ int[] ints = <output from first program>; for(int i: ints) System.out.print((char)i); }
}
273
« on: December 15, 2010, 09:43:02 pm »
25. for java or if u know ascii numbers...
System.out.print((char)89); System.out.print((char)111); System.out.print((char)117); System.out.print((char)32); System.out.print((char)104); System.out.print((char)97); System.out.print((char)118); System.out.print((char)101); System.out.print((char)32); System.out.print((char)108); System.out.print((char)111); System.out.print((char)115); System.out.print((char)116); System.out.print((char)32); System.out.print((char)116); System.out.print((char)104); System.out.print((char)101); System.out.print((char)32); System.out.print((char)103); System.out.print((char)97); System.out.print((char)109); System.out.print((char)101); You have lost the game.
by the way, didn't know it was that easy to convert an integer to a char. can you go backwards like that? edit: you can! java just got 10 times better! now if only we could do (int) false. edit2: when you write code in java/C/C++, and you're defining data, you abuse the fact that 10 and 010 are not the same number.
274
« on: December 15, 2010, 08:47:17 pm »
same, Wikipedia rocks, and teachers are losers for not trusting it
they don't realize that only 1 out of 100,000 has spam/invalid info
nope, i wrote a paper on the dangers of wikipedia. it has been estimated that 1 out of every 9 articles on wikipedia has been vandalized.
275
« on: December 15, 2010, 07:32:45 pm »
there are 20 types of people in this world: those who understand tenerary, those who do not, those who have no idea what the hell it is used for, and those who actually use a platform based on tenerary coding.
Um, isn't 203==6?
21: Torture works because Common Sense comes from Paine.
yes.. 20 3 == 6. 2 in ternary is... well, 2.
276
« on: December 15, 2010, 07:29:01 pm »
You technically can It just is odd staying and ya (Just pronounce how it is spelled. (Hap-i-ness instead of Hap-ee-ness))
but everytime you say "hap-i-ness", you are deliberately avoiding saying penis.. and are therefore thinking about avoiding it.
277
« on: December 15, 2010, 05:25:31 pm »
For(A,0,255 pxl-on(sin(A)//W+X,Y-(cos(A)//H) End
yay optimization
278
« on: December 15, 2010, 05:04:14 pm »
my friend just brought this to my attention. it's a play on words, and everytime you say the word "happiness" you will think differently.
279
« on: December 15, 2010, 04:32:40 pm »
my gosh.. this is awful. luckily the guy had horrible aim.. be it from the nerves or just never firing a gun before. it's awful that he was hurt and died though.
280
« on: December 14, 2010, 07:55:27 pm »
i want it. i'll probably put both up though, since i like having my mostly self-made one too.
281
« on: December 14, 2010, 07:44:57 pm »
i'm the rebel who chose #1 by the way, does this mean my userbar will be redone? or is it my choice? edit: or can i have them BOTH?
282
« on: December 14, 2010, 04:44:27 pm »
well.. i'm not sure what's wrong with your code but this is what i could come up with. though i wasn't sure what you meant by b being x position * 8. is x position the number of bytes to the right? that's what i assumed, at least. in which case i assumed x position is a variable i could access. also, this routine xors the sprite. i'm not 100% sure this routine works, since i haven't taken quigibo's grayscale routine and used it, but it's what i could come up with. it's found here. let me know if it works, if it fails. i haven't programmed in asm in awhile, but this is the routine i made for a little tunnel game i was trying to make. except i modified it to write to appbackupscreen too.
283
« on: December 14, 2010, 03:02:25 pm »
Looks nice! I think the laser should be slightly brighter, though. Maybe make it flash when being shot?
hmm.. i think i'll have the laser have an "animation". where the contrast oscillates. but i did change the laser i little. here's a new screenshot. also, enemies are explosive and leave a trail of fire (though that isn't completely implemented yet).
284
« on: December 14, 2010, 02:47:04 pm »
JK about the allergy. Thanks for the peanuts.
He's not really allergic apparently.
I am actually allergic to peanuts. Sorry graphmastur. In the name of tradition...
* Deep Thought forces the peanuts into his mouth Bad Deep Thought, bad! Spit those out right now! Actually, I don't know why we couldn't have chosen something, oh I don't know, like hamsters to give instead of peanuts.
you eat hamsters?!?!
285
« on: December 14, 2010, 02:43:07 pm »
I like the secret character idea. Will there be a bonus dungeon opening where you have to use him or something? That would be nice. What will the character do in particular?
I hope you resume this soon. What is EOC by the way?
End Of Christmas i think.
Pages: 1 ... 17 18 [19] 20 21 ... 82
|