Jump to content
  • Advertisement

leiavoia

Member
  • Content Count

    2189
  • Joined

  • Last visited

Community Reputation

960 Good

About leiavoia

  • Rank
    Contributor

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. leiavoia

    Making a game engine is REALLY hard!

    Make a game. Really. It need not be big or elaborate. I mean, look at the piddly iPhone garbage that passes for entertainment these days. People love it, but it didn't necessarily take team of 100 people 5 years to cook up. Just make something light, fun, and polished. It needs to be something YOU enjoy. What can I do as an individual that would make you interested in the project?[/quote] Nothing. That's really the issue. I've got my own set of interests, personal projects, and demotivaters. Make something YOU enjoy. Unless you have money for a startup team, its just you. * I'm saying this as someone who spent the better part of 7 years working on an "engine" and who finally made a game in 4 months (A complete game, not a tech demo. Included all graphics, sound, UI, transitions, input, menues, and special effects). It went surprisingly easy and i enjoyed doing it. Working on a game let me know what remaining work the engine still needed to be useful.
  2. leiavoia

    [web] PHP warnings...

    When you grab variables from POST, REQUEST, or GET (or really, any array, but especially these ones), you need to check to see if the variable you re looking for was actually sent by the client. Get into the habit of doing this: $foo = isset($_POST['foo']) ? $_POST['foo'] : NULL; // or some sane default This avoids array index warnings. NEVER assume incoming data is what you would expect or that it is even present at all. PS - and yes, 95%+ of PHP tutorials are awful.Everyone is an "expert"!
  3. leiavoia

    4X: in a seeking of the fifth "X"

    You might consider playing board games instead of computer games. There's a lot of really great "4X-y" board games out there that produce a similar experience, but in a more social environment. (Try "Twilight Imperium III" for the ultimate 4X-like experience in table-top format, but there are plenty of others.) Aside: If MoO3 taught us anything, it's that complexity does not make a game more fun. I'm all in favor of keeping it simple. Aside #2: Your poll did not list "strategy" as one of the obvious options. Too many games have to little strategy and that turns me off. If i don't know what i can possibly do to influence my personal victory, i'm bored already.
  4. leiavoia

    [web] PHP bug?

    Long story short: static is useful when you need data or functions that pertain to the class as a whole but not to any particular object. For instance, let's say i've got a database app and a class called "Thing". Let's say the Things have a "rank". I can have a static class function that does something like: class Thing { static function GetHighestThing() { // database looks up highest ranking Thing and returns Thing object } }] You can then use it like so: $highest_thing = Thing::GetHighestThing(); I use static functions all the time. They are definitely worth knowing about!
  5. leiavoia

    [web] PHP bug?

    i'm not a CS major either This isn't about public/private. It's about static/non-static. See here for a quick lesson
  6. leiavoia

    [web] php termination

    Also: it is wise to contain all of your output in one final function so that nothing is displayed if there is an error. It also makes future maintenance much easier because your "rendering" is now separate from your logic. In anything larger than a single script, putting anything outside of <?php ?> tags becomes a no-no.
  7. You also have to add an isset() call to the variable because if it is not checked, it isn't sent either and will not show up in the POST array (this is checkbox specific behaviour). Not checking for isset() will produce an error on most configurations. Something like this works: if ( isset($_POST['foo']) && $_POST['foo'] ) { /* got foo */ } In fact, you should get into the habit of doing that for all incoming parameters just in case. Saves headaches later.
  8. leiavoia

    [web] PHP bug?

    @Cygnus_X: I hate to tell you this, but all of that is incorrect. This has nothing to do with inheritance. Also: you do not need an instantiated object to call a static class function. It's just like C++. Also, I've written tons of classes this way and have never had a problem. [/quote] Now I'm worried for you . Make sure you understand static class functions versus regular class functions called on objects! No hard feelings, ok? @Supah Fly: No, this isn't a bug. Change this line: if (!v1($k)) to: if (!Test::v1($k)) Explained: v1() is not a defined function. It is trying to look in global scope and it obviously doesn't exist. Simply add the correct scope operator.
  9. leiavoia

    Coder or Programmer

    Hey, now. I'm sitting on 100,000 lines of PHP that i wrote myself, and it works great. So you be nice! Every software domain has it's own set of bugs, problems, gotchas, caveats, pros, and cons, whether it's javascript or ASM. One is not necessarily better than the other. I wouldn't make a game in PHP and i wouldn't write web software in C++. For what's it's worth, my cards say "software developer". That way i can write PHP and turn around and hack somebody's C++ and still be true to the title
  10. leiavoia

    What Does Everyone Think About The New Site Layout?

    It's already been documented. I proposed a fix, but it hasn't been addressed yet. It appears to be a javascript order-of-execution thing. If your page loads slowly, you are probably on older hardware or using a slightly out of date browser (like me on both counts). I have the problem at home (Athlon 2500, Firefox 3.0), but not at work (Athlon 3000+, Firefox 3.6).
  11. leiavoia

    Quit my job today

    Because it's an ugly old stinktown, that's why! Yay Portland!
  12. leiavoia

    Academia stretched thin (rant)

    For perspective: consider that quite a few teachers at small schools are teachers at small schools because they can't find sufficient work in their field. [an observation, not a hypothesis]
  13. My linux desktop machine at work is ~5 years old. Runs like a champ for doing design and development. I have no real need to upgrade. Virtually any computer that isn't using vacuum tubes would be fine for doing LAMP development.
  14. Yes, just experiment with different stress-tests. You'll learn pretty quick where the sweetspot is. Every case will likely be a bit different.
  15. leiavoia

    The GD Coding Typo Dictionary (TM)

    I find that if syntax highlighting is on, typos like FASLE don't properly highlight and it tips me off pretty quick that something is wrong.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!