qwertyuu's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
60 (0.08 per day)
Joined:
31-July 12
Profile Views:
1,404
Last Active:
User is offline May 14 2014 05:24 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   qwertyuu learning C#!

Posts I've Made

  1. In Topic: Regex not firing when it should

    Posted 14 May 2014

    View PostPeter O, on 13 May 2014 - 01:36 AM, said:

    A dollar sign ($) inside a double quoted string is treated as the start of a variable name. To get a dollar sign to actually be part of the string you have to escape it first (\$). In your case you want both a backslash character and a dollar sign in the string so you have to escape both of them (\\\$).

    preg_match("/http\:\/\/images17\.newegg\.com\/is\/image\/newegg\/83-227-509-TS\?\\\$S300W\\\$/", $str, $output_array);
    

    Oh! That's why! Thanks for answering so fast!

    View PostArtificialSoldier, on 13 May 2014 - 07:56 AM, said:

    Why are you using a regular expression to search for a specific string? strpos is better suited for that and doesn't require the overhead of the regular expression engine.

    Because this string is not ALWAYS this string. I'm using this regex to find all images in a Newegg page, and it must be valid for all Newegg pages, so I needed a regex to fit the overall body of the link without searching specifically for THIS link!
  2. In Topic: A proper way to time stuff?

    Posted 8 Sep 2013

    Thanks alot for the link, BBeck. I also thought of spawning all of the creeps at the beginning of the wave (all at once) and relying on their movement speed (which does use the elapsed gametime for its calculations) to be at the right place at any time. Sure, this is not optimized and may cause lag if there are lots of creeps, but I guess that if you lag when all creeps are spawned, the problem may not be the code anymore. Also, I thought of adding other kind of creeps (stronger ones, faster ones, etc) that would lower the lag of having multiple simple ones.

    But again, thanks for the link, I have it bookmarked already!

    Is my idea realistic or should I calculate the N number of spawns that may have happened between two update calls like you said?
  3. In Topic: Game Audio - A fearful man is always hearing things.

    Posted 6 Sep 2013

    From the small XNA experience I have, I tend to restrict myself to sound that I generate using BFXR and I do that at the end just to add some feel to the game (which I do not even share with people around me, I just do them for myself and have fun with this).

    That being said, I'm always leaning towards being a better programmer and being a better game creator. I always raise the bar a little higher everytime I start a new project. I'll work on the audio part way more from now on, seeing that people really care about it!
  4. In Topic: My readonly List changes value even if I don't access it.

    Posted 9 Aug 2013

    Finally got it to work! Thanks alot guys and now I know how Objects are referenced instead of copied over!
  5. In Topic: My readonly List changes value even if I don't access it.

    Posted 9 Aug 2013

    Yep. Thanks alot to you guys. I now understand and I'll try to make it work the best way I can!

    You guys are great teachers. I would love to have you as teachers at school, things would be so easier!

    here guys, have a song! http://www.youtube.c...h?v=7hIQDavRD54

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
1
Programming Languages:
C#

Contact Information

E-mail:
Private

Friends

qwertyuu hasn't added any friends yet.

Comments

qwertyuu has no profile comments yet. Why not say hello?