Element X

Hey guys
This is my first post on this forum, so forgive me if I’ve done or said anything wrong. I’d like to share with you a small game I’ve been working on for about two years now (on and off) and which is in its third life - Element X.

Basically, this game is a sandbox. You break things and you build things. Breaking things doesn’t yield anything because I have no resource collection implemented yet, but there is a handy console that does a few things.

Features:

  • A 640 x 256 block world
  • 20-ish building materials
  • Gibbing!
  • The best walking and jumping animations you’ve ever seen
  • Multiplayer (it hosts an internal server)
  • Entities
  • Explosions
  • Particles (but not many)
  • Things you can throw
  • Configurable options box

It would have had a shader, but it just did not work for me. I had to take it out, sorry guys.
If you go so far as to open the game, take some time to change a few settings (username, custom PNG skins etc). Then you can open a new world by clicking New World.

In order to get items, you have a few options.
Use /give and try any ID from 1-50 and 2100-2110.
Use /onion (no hints given)
Use /hammertime

So far in the console (accessible using ‘t’ or ‘/’) you can do this:
SPAWN
GIVE
TP
KILL
ANHERO
KICK
CHANGEGAMEMODE
TOGGLEDEBUG

Anhero is basically suicide. From there you can respawn (using /respawn).
Toggledebug shows a bit of debugging info (x, y, camera position, server IP, FPS, etc.)
Spawn doesn’t do much, but you can try it with NOTCHHEAD and 69.

I think that’s everything, enjoy yourselves guys! Let me know if you’ve got suggestions or bugs or anything.

Almost forgot the download link: http://www.mediafire.com/download/7gfvmy3as217dkv/ElementX_-_13_APR.zip.
There are some videos of progress available here: http://www.youtube.com/user/ColdstreamMusic

I am aware of a few crash bugs, but they seem to occur pretty randomly when you throw projectiles.

Planned:

  • Deathmatch
  • Shader
  • Challenge somebody to a Mortal Kombat-esque showdown.
  • Lots more entities
  • Better world generation

Very nice! This is pretty good.

Looks good. I couldn’t spawn anything in though (got null pointer exception when run in the console). Other than that, it ran nicely. Loved the stick onionade!

Hmm. Should have mentioned before, but the names are case-sensetive with the entities.
You need to say /spawn NOTCHHEAD or /spawn 69 .
Sorry about that, it’s just the method I was using.

Ok. It works with that.

Error trap that as soon as possible, try/catch block and print a “No Such Item Found”. May as well get it out the way if that is your most common way of spawning stuff until resources collection is in.

That’s a good idea, actually. I have a similar sort of thing implemented for blocks (as in it doesn’t just crash) so I’m not too sure why I never got around to doing it for entities.

Also make sure you’re using .equalsIgnoreCase() to compare the commands