• What are you working on? v15
    5,001 replies, posted
No, São tomé.
[QUOTE=kraffslol;27865745]How do you calculate the dps?[/QUOTE] That's a question I'd expect from geel
Lay off him a bit, being a freshman is hard work..
[QUOTE=Venice Queen;27866242]That's a question I'd expect from geel[/QUOTE] Hi, we have differing skillsets and capabilities when it comes to math and programming. Good day.
[QUOTE=geel9;27866596]Hi, we have differing skillsets and capabilities when it comes to math and programming. Good day.[/QUOTE] skillsets and capabilities being: using division to find a rate?
how geel9 perceives basic math problems: [IMG]http://i.imgur.com/YiypV.gif[/IMG] in reality: [IMG]http://i.imgur.com/wEE9N.gif[/IMG]
Speaking of geel9, I've decided to implement zlib compression for my Unifont file format. So far I've got it to compress and decompress the text file, but I have to tweak it to compress my binary file format. A rough estimate of the file size will be 814KB. Pretty good considering it was originally 3.7MB.
Four hours and 12 minutes later I finally have it working! :D
you know you need to get some sleep when... you attempt to set one event listener from inside another. I ran into a NullPointerException, because a class storing all the game data wasn't initialized by the time I set the event. Right now I just set that specific event as static, and it works. I pass the listener to the system of Triggers we have (extend a Cause class and an Effect class, Trigger just checks if the cause has happened yet and fires the Effect if it has). So now nearly anything can end the game, whether it's the player being within a certain boundary, there being a specific number of enemies left, or even a button being pressed. I'll probably be posting another video tomorrow. I'm considering regularly posting updates, like once a week. It'll help keep the entire team on task and motivated. We'll probably get a death screen done by tomorrow, and sound. [editline]4th February 2011[/editline] I'll wake up tomorrow morning and realize I did something terribly wrong with a very quick fix. I just have a feeling...
I'm going to mess around with android development and get an android phone to test my app. There was a phone mentioned earlier -- can you repost it?
[QUOTE=DevBug;27868989]I'm going to mess around with android development and get an android phone to test my app. There was a phone mentioned earlier -- can you repost it?[/QUOTE] There are Android dev phones for $400 and ~$520. Fully unlocked, any carrier, etc.
[QUOTE=geel9;27869019]There are Android dev phones for $400 and ~$520. Fully unlocked, any carrier, etc.[/QUOTE] I was expecting more, thats nothing.
What's the difference between buying a "dev phone" and buying a normal android phone sim-free, and then rooting it?
[QUOTE=Chris220;27869168]What's the difference between buying a "dev phone" and buying a normal android phone sim-free, and then rooting it?[/QUOTE] I would imagine nothing.
[QUOTE=geel9;27869200]I would imagine nothing.[/QUOTE] Time.
True, but not that much. It only took me about 5 minutes to root my Desire using the Revoked program. In terms of cost, I found it for ~£100 less than it usually is
I still don't have an Android. I need a job.
-snip- overlooked a whole page of replies
[QUOTE=geel9;27869256]I need a job.[/QUOTE] you can't get one when you're 11 you know [highlight](User was banned for this post ("Trolling" - verynicelady))[/highlight]
[QUOTE=iNova;27869429]you can't get one when you're 11 you know[/QUOTE] Hi! You're an asshole! [highlight](User was banned for this post ("Report trolls, don't reply" - verynicelady))[/highlight]
Can we stop pissing on geel for some time ? it's getting annoying; I quickly looked at Lugaru's source code... I found this [cpp] int campaignchoices[5000]; int levelorder[5000]; [/cpp] I don't remember Lugaru having five thousand levels. Actually I can't even find any reason why you'd need an array of size 5000.
[QUOTE=PiXeN;27869686]Can we stop pissing on geel for some time ? it's getting annoying; I quickly looked at Lugaru's source code... I found this [cpp] int campaignchoices[5000]; int levelorder[5000]; [/cpp] I don't remember Lugaru having five thousand levels. Actually I can't even find any reason why you'd need an array of size 5000.[/QUOTE] Mod support. David was a highschooler, remember.
[QUOTE=Richy19;27858511]Are you using any tutorials for this?[/QUOTE] Not really
[QUOTE=PiXeN;27869686]Can we stop pissing on geel for some time ? it's getting annoying; I quickly looked at Lugaru's source code... I found this [cpp] int campaignchoices[5000]; int levelorder[5000]; [/cpp] I don't remember Lugaru having five thousand levels. Actually I can't even find any reason why you'd need an array of size 5000.[/QUOTE] I think that's so people could add their own levels without worrying if there'd be too many to fit inside the array.
[cpp] if(!tutoriallevel) if(bonus>0&&bonustime<1&&!winfreeze&&indialogue==-1/*bonustime<4*/){ if(bonus==tracheotomy)sprintf (string, "Tracheotomy!"); else if(bonus==backstab)sprintf (string, "Backstabber!"); else if(bonus==spinecrusher)sprintf (string, "Spinecrusher!"); else if(bonus==ninja)sprintf (string, "Ninja Bonus!"); else if(bonus==style)sprintf (string, "Style Bonus!"); else if(bonus==cannon)sprintf (string, "Leg Cannon!"); else if(bonus==aimbonus)sprintf (string, "Nice Aim!"); else if(bonus==deepimpact)sprintf (string, "Heavy Impact!"); else if(bonus==touchofdeath)sprintf (string, "Touch of Death!"); else if(bonus==swordreversebonus)sprintf (string, "Sword Disarm!"); else if(bonus==staffreversebonus)sprintf (string, "Staff Disarm!"); else if(bonus==reverseko)sprintf (string, "Reversal KO!"); else if(bonus==solidhit)sprintf (string, "Solid Hit!"); else if(bonus==twoxcombo)sprintf (string, "2X Combo!"); else if(bonus==threexcombo)sprintf (string, "3X Combo!"); else if(bonus==fourxcombo)sprintf (string, "4X COMBO!"); else if(bonus==megacombo)sprintf (string, "MEGA COMBO!"); else if(bonus==Reversal)sprintf (string, "Reversal!"); else if(bonus==Stabbonus)sprintf (string, "Punctured!"); else if(bonus==Slicebonus)sprintf (string, "Sliced!"); else if(bonus==Bullseyebonus)sprintf (string, "Bullseye!"); else if(bonus==Slashbonus)sprintf (string, "Slashed!"); else if(bonus==Wolfbonus)sprintf (string, "WOLF SLAYER!"); else if(bonus==FinishedBonus)sprintf (string, "SLAIN!"); else if(bonus==TackleBonus)sprintf (string, "Tackle!"); else if(bonus==AboveBonus)sprintf (string, "Death from Above!"); else sprintf (string, "Excellent!"); [/cpp] Looks like he pulled off a nullsquared
[QUOTE=PiXeN;27870645][cpp] if(!tutoriallevel) if(bonus>0&&bonustime<1&&!winfreeze&&indialogue==-1/*bonustime<4*/){ if(bonus==tracheotomy)sprintf (string, "Tracheotomy!"); else if(bonus==backstab)sprintf (string, "Backstabber!"); else if(bonus==spinecrusher)sprintf (string, "Spinecrusher!"); else if(bonus==ninja)sprintf (string, "Ninja Bonus!"); else if(bonus==style)sprintf (string, "Style Bonus!"); else if(bonus==cannon)sprintf (string, "Leg Cannon!"); else if(bonus==aimbonus)sprintf (string, "Nice Aim!"); else if(bonus==deepimpact)sprintf (string, "Heavy Impact!"); else if(bonus==touchofdeath)sprintf (string, "Touch of Death!"); else if(bonus==swordreversebonus)sprintf (string, "Sword Disarm!"); else if(bonus==staffreversebonus)sprintf (string, "Staff Disarm!"); else if(bonus==reverseko)sprintf (string, "Reversal KO!"); else if(bonus==solidhit)sprintf (string, "Solid Hit!"); else if(bonus==twoxcombo)sprintf (string, "2X Combo!"); else if(bonus==threexcombo)sprintf (string, "3X Combo!"); else if(bonus==fourxcombo)sprintf (string, "4X COMBO!"); else if(bonus==megacombo)sprintf (string, "MEGA COMBO!"); else if(bonus==Reversal)sprintf (string, "Reversal!"); else if(bonus==Stabbonus)sprintf (string, "Punctured!"); else if(bonus==Slicebonus)sprintf (string, "Sliced!"); else if(bonus==Bullseyebonus)sprintf (string, "Bullseye!"); else if(bonus==Slashbonus)sprintf (string, "Slashed!"); else if(bonus==Wolfbonus)sprintf (string, "WOLF SLAYER!"); else if(bonus==FinishedBonus)sprintf (string, "SLAIN!"); else if(bonus==TackleBonus)sprintf (string, "Tackle!"); else if(bonus==AboveBonus)sprintf (string, "Death from Above!"); else sprintf (string, "Excellent!"); [/cpp] Looks like he pulled off a nullsquared[/QUOTE] More like nullsquared pulled off a david, or whatever his name is.
[QUOTE=PiXeN;27870645][cpp] if(!tutoriallevel) if(bonus>0&&bonustime<1&&!winfreeze&&indialogue==-1/*bonustime<4*/){ if(bonus==tracheotomy)sprintf (string, "Tracheotomy!"); else if(bonus==backstab)sprintf (string, "Backstabber!"); else if(bonus==spinecrusher)sprintf (string, "Spinecrusher!"); else if(bonus==ninja)sprintf (string, "Ninja Bonus!"); else if(bonus==style)sprintf (string, "Style Bonus!"); else if(bonus==cannon)sprintf (string, "Leg Cannon!"); else if(bonus==aimbonus)sprintf (string, "Nice Aim!"); else if(bonus==deepimpact)sprintf (string, "Heavy Impact!"); else if(bonus==touchofdeath)sprintf (string, "Touch of Death!"); else if(bonus==swordreversebonus)sprintf (string, "Sword Disarm!"); else if(bonus==staffreversebonus)sprintf (string, "Staff Disarm!"); else if(bonus==reverseko)sprintf (string, "Reversal KO!"); else if(bonus==solidhit)sprintf (string, "Solid Hit!"); else if(bonus==twoxcombo)sprintf (string, "2X Combo!"); else if(bonus==threexcombo)sprintf (string, "3X Combo!"); else if(bonus==fourxcombo)sprintf (string, "4X COMBO!"); else if(bonus==megacombo)sprintf (string, "MEGA COMBO!"); else if(bonus==Reversal)sprintf (string, "Reversal!"); else if(bonus==Stabbonus)sprintf (string, "Punctured!"); else if(bonus==Slicebonus)sprintf (string, "Sliced!"); else if(bonus==Bullseyebonus)sprintf (string, "Bullseye!"); else if(bonus==Slashbonus)sprintf (string, "Slashed!"); else if(bonus==Wolfbonus)sprintf (string, "WOLF SLAYER!"); else if(bonus==FinishedBonus)sprintf (string, "SLAIN!"); else if(bonus==TackleBonus)sprintf (string, "Tackle!"); else if(bonus==AboveBonus)sprintf (string, "Death from Above!"); else sprintf (string, "Excellent!"); [/cpp] Looks like he pulled off a nullsquared[/QUOTE] Case statement
[QUOTE=Jacko2007;27870828]Case statement[/QUOTE] I'm pretty sure there's an equivalent to Dictionary<string, Action> in C++. [editline]5th February 2011[/editline] std::map ?
WinInput.cpp in Lagrau [cpp]// alphabetic keys if(!stricmp(which,"a")){ return MAC_A_KEY; } if(!stricmp(which,"b")){ return MAC_B_KEY; } if(!stricmp(which,"c")){ return MAC_C_KEY; } if(!stricmp(which,"d")){ return MAC_D_KEY; } if(!stricmp(which,"e")){ return MAC_E_KEY; } if(!stricmp(which,"f")){ return MAC_F_KEY; } if(!stricmp(which,"g")){ return MAC_G_KEY; } if(!stricmp(which,"h")){ return MAC_H_KEY; } if(!stricmp(which,"i")){ return MAC_I_KEY; } if(!stricmp(which,"j")){ return MAC_J_KEY; } if(!stricmp(which,"k")){ return MAC_K_KEY; } if(!stricmp(which,"l")){ return MAC_L_KEY; } if(!stricmp(which,"m")){ return MAC_M_KEY; } if(!stricmp(which,"n")){ return MAC_N_KEY; } if(!stricmp(which,"o")){ return MAC_O_KEY; } if(!stricmp(which,"p")){ return MAC_P_KEY; } if(!stricmp(which,"q")){ return MAC_Q_KEY; } if(!stricmp(which,"r")){ return MAC_R_KEY; } if(!stricmp(which,"s")){ return MAC_S_KEY; } if(!stricmp(which,"t")){ return MAC_T_KEY; } if(!stricmp(which,"u")){ return MAC_U_KEY; } if(!stricmp(which,"v")){ return MAC_V_KEY; } if(!stricmp(which,"w")){ return MAC_W_KEY; } if(!stricmp(which,"x")){ return MAC_X_KEY; } if(!stricmp(which,"y")){ return MAC_Y_KEY; } if(!stricmp(which,"z")){ return MAC_Z_KEY; } // keypad keys if(!stricmp(which,"KP0")){ return MAC_NUMPAD_0_KEY; } if(!stricmp(which,"KP1")){ return MAC_NUMPAD_1_KEY; } if(!stricmp(which,"KP2")){ return MAC_NUMPAD_2_KEY; } if(!stricmp(which,"KP3")){ return MAC_NUMPAD_3_KEY; } if(!stricmp(which,"KP4")){ return MAC_NUMPAD_4_KEY; } if(!stricmp(which,"KP5")){ return MAC_NUMPAD_5_KEY; } if(!stricmp(which,"KP6")){ return MAC_NUMPAD_6_KEY; } if(!stricmp(which,"KP7")){ return MAC_NUMPAD_7_KEY; } if(!stricmp(which,"KP8")){ return MAC_NUMPAD_8_KEY; } if(!stricmp(which,"KP9")){ return MAC_NUMPAD_9_KEY; } // enter if(!stricmp(which,"enter")){ return MAC_ENTER_KEY; } // number keys if(!stricmp(which,"0")){ return MAC_0_KEY; } if(!stricmp(which,"1")){ return MAC_1_KEY; } if(!stricmp(which,"2")){ return MAC_2_KEY; } if(!stricmp(which,"3")){ return MAC_3_KEY; } if(!stricmp(which,"4")){ return MAC_4_KEY; } if(!stricmp(which,"5")){ return MAC_5_KEY; } if(!stricmp(which,"6")){ return MAC_6_KEY; } if(!stricmp(which,"7")){ return MAC_7_KEY; } if(!stricmp(which,"8")){ return MAC_8_KEY; } if(!stricmp(which,"9")){ return MAC_9_KEY; } // function keys if(!stricmp(which,"F1")){ return MAC_F1_KEY; } if(!stricmp(which,"F2")){ return MAC_F2_KEY; } if(!stricmp(which,"F3")){ return MAC_F3_KEY; } if(!stricmp(which,"F4")){ return MAC_F4_KEY; } if(!stricmp(which,"F5")){ return MAC_F5_KEY; } if(!stricmp(which,"F6")){ return MAC_F6_KEY; } if(!stricmp(which,"F7")){ return MAC_F7_KEY; } if(!stricmp(which,"F8")){ return MAC_F8_KEY; } if(!stricmp(which,"F9")){ return MAC_F9_KEY; } if(!stricmp(which,"F10")){ return MAC_F10_KEY; } if(!stricmp(which,"F11")){ return MAC_F11_KEY; } if(!stricmp(which,"F12")){ return MAC_F12_KEY; } // escape if(!stricmp(which,"escape")){ return MAC_ESCAPE_KEY; } if(!stricmp(which,"backspace")){ return MAC_DELETE_KEY; } if(!stricmp(which,"tab")){ return MAC_TAB_KEY; } if(!stricmp(which,"`")){ return MAC_TILDE_KEY; } if(!stricmp(which,"caps_lock")){ return MAC_CAPS_LOCK_KEY; } // if(which==){ // return ""; // } if(!stricmp(which,"command")){ return MAC_COMMAND_KEY; } if(!stricmp(which,"option")){ return MAC_OPTION_KEY; } if(!stricmp(which,"delete")){ return MAC_DEL_KEY; } if(!stricmp(which,"insert")){ return MAC_INSERT_KEY; } if(!stricmp(which,"home")){ return MAC_HOME_KEY; } if(!stricmp(which,"end")){ return MAC_END_KEY; } if(!stricmp(which,"page_up")){ return MAC_PAGE_UP_KEY; } if(!stricmp(which,"page_down")){ return MAC_PAGE_DOWN_KEY; } if(!stricmp(which,"clear")){ return MAC_NUMPAD_CLEAR_KEY; } if(!stricmp(which,"control")){ return MAC_CONTROL_KEY; } if(!stricmp(which,"return")){ return MAC_RETURN_KEY; } if(!stricmp(which,"space")){ return MAC_SPACE_KEY; } if(!stricmp(which,"shift")){ return MAC_SHIFT_KEY; } if(!stricmp(which,"uparrow")){ return MAC_ARROW_UP_KEY; } if(!stricmp(which,"downarrow")){ return MAC_ARROW_DOWN_KEY; } if(!stricmp(which,"leftarrow")){ return MAC_ARROW_LEFT_KEY; } if(!stricmp(which,"rightarrow")){ return MAC_ARROW_RIGHT_KEY; } if(!stricmp(which,"mouse1")){ return MAC_MOUSEBUTTON1; } if(!stricmp(which,"mouse2")){ return MAC_MOUSEBUTTON2; } if(!stricmp(which,"+")){ return MAC_NUMPAD_PLUS_KEY; } if(!stricmp(which,"*")){ return MAC_NUMPAD_ASTERISK_KEY; } if(!stricmp(which,"/")){ return MAC_SLASH_KEY; } if(!stricmp(which,"\\")){ return MAC_BACKSLASH_KEY; } if(!stricmp(which,"[")){ return MAC_LEFTBRACKET_KEY; } if(!stricmp(which,"]")){ return MAC_RIGHTBRACKET_KEY; } if(!stricmp(which,".")){ return MAC_PERIOD_KEY; } if(!stricmp(which,",")){ return MAC_COMMA_KEY; } if(!stricmp(which,"\"")){ return MAC_APOSTROPHE_KEY; } if(!stricmp(which,";")){ return MAC_SEMICOLON_KEY; } return UNKNOWN_KEY; [/cpp] [editline]5th February 2011[/editline] And there are a lot of those functions Sorry for making you scroll btw
[QUOTE=sLysdal;27871048]WinInput.cpp in Lagrau [editline]5th February 2011[/editline] And there are a lot of those functions Sorry for making you scroll btw[/QUOTE] How do you even write 300 lines of that without realising at some point that there might be a better way to do it?
Sorry, you need to Log In to post a reply to this thread.