Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Jun 2011
Offline Last Active Apr 09 2013 04:54 PM

Posts I've Made

In Topic: Printf acting weird

09 April 2013 - 02:07 PM

Thanks for all the fast responses!  Fixed it and it works now - I should probably be thankful my compiler/runner is in safe mode :D

In Topic: Your Worst "Gotchas" ever in programming

28 January 2013 - 11:48 AM

I once had a school project in java dealing with Strings. Well, what better name for a class dealing with a project centered on Strings than String.java? Then when I tried to use methods of java's String class, the methods weren't there (because the compiler was trying to find the methods in my String class). Took two days to figure it out and it was only because I tried to rewrite the thing with more descriptive class and variable names after being inspired by a daily WTF article.

In Topic: AES Encrypting and Decrypting

24 September 2012 - 11:38 PM

The problem with a byte array is that I am trying to get two programs to communicate over a socket and I'm using a BufferedReader and BufferedWriter which communicate mostly with Strings.

I notice there's a single read method that returns an int between 0 and 65536, which would be two bytes, so should I just be using that method and using the values of n%256 and n/256 to extract the bytes?

In Topic: Your first game idea - What happened to it?

05 June 2012 - 10:44 AM

Idea: RPG/Strategy/Adventure (Like Legend of Zelda) based on Alchemical Elements

How Far: Still Developing

I first had this idea about 2 years ago. At that time, I had just learned the basics of graphics with java. I got as far as map movement and bullet collision. Then I decided that it was too much work and scraped it, roughly one year ago.
Then, about the beginning of this year, I learned new techniques in java that would help me with the project, but didn't want to work with the old code, so rewrote from scratch. I altered the part about Alchemical Elements to instead be colors, and decided to shape the world as a fractal. I've also recruited a friend to help the project along.

1. Don't abandon your ideas. Give them the respect they deserve, and while at first the idea my not seem like much, you can mold it on the meta-physical anvil to always become better.
2. Get people interested in your project, because if it's a big project and nobody knows about it, you might spontaneously forget about it.
3. Designing can be just as fun as playing.
4. Do not focus on only one project if you burn out easily. If you alternate between different projects, you will tire less easily, especially if they are different types of games. Its like crop rotations to preserve soil nutrients.
5. If you haven't fully designed the game, code from bottom up to leave flexibility.
6. if you have fully designed the game, code from top down so you know how far you are to completion.
7. Coding a game is not as easy as closing your eyes and seeing it.

How it Would Be Now:
It is now.

And Ashaman73, you just inspired me to follow my Lesson #1 by 20% more then before :D

In Topic: Kill The NPC

13 May 2012 - 11:50 AM

So it is probably not a good idea to let a player kill an "essential" NPC without informing them that they just reduced their chance of winning to 0.

Now, one last question --

From a player's perspective (as opposed to a developer's), is there anything that can be gained from an unkillable NPC? Or should all NPCs be attackable? Of course, some, like your mentor at the beginning of the game, will be too strong to kill.

The only reason I can think of to disable attacking NPCs is to prevent accidental attacks, which is why some games have an option to turn Friendly Fire off. But anything else?