Monday, March 26, 2012

3D Minesweeper Game

As an interesting amalgamation of game design and algorithm development, I worked on a 3D minesweeper game in the past week.  It turned out pretty well, I think.  It has awesome explosions (when you click on a mine) and cute little red and white cubes with numbers on them.  You can also move the camera by using the W, A, S, and D keys as well as rotate and zoom in and out by using Q, E, Z, and X keys. 

The code design is facilitated by the use of recursive methods, which help reduce processing time tremendously.  Mines are generated randomly in a two-dimensional array that represents the grid.  Because the cubes are represented in a three-dimensional way, handling the user clicks was interesting.  When the user clicks on any point in the world, we perform what is called a raycast.  Raycast creates a ray of predefined length from the user's point of view in the direction of the position of the mouse click.  If the ray hits any cube, then we consider that cube to have been clicked.

I've tested this program up to 60 by 60 grid and it has worked beautifully with little lag.  Enjoy the screenshots!

I'll gladly provide with the download if you ask.







Saturday, March 24, 2012

M16 Model

Hello, everyone!  It's been a while again, but since the last post, I have some stuff to show you.

Recently, I finished a 3D model of an M16 Rifle.  I have quite an interest in guns, so modeling this one was quite a fun.

It's a rough sketch of the gun.  It's unskinned and lacks fine details that the gun has.  Since I'm just learning how to model, I'll save those for later.

Anyhow, please enjoy the renders!




Thursday, March 1, 2012

Work!

Hello, everyone!  I've not been able to post anything for a few months now.  I just wanted to let all know what's been going on in my life.

For the past few months, I had the privilege of having the opportunity to work with the mayor of Hartsville and create an iOS app that has the possibility to be sold to huge industries around the world.  Now, I can't really tell you what it's all about for the sake of business, so let's not get into that.

Basically, since 2012 started, I was busy scuba diving, doing tons of Govie schoolwork, meeting with the mayor, and programming for my app.  You know what's really cool about this app?  It's all a result of my own work.  I really didn't think I could do so much by myself, but I did, and I am rightfully proud of it.

I'll post screenshots of it at work once, hopefully, sales begin.  But until then, it's going under the radar.

So, that's the gist of how my life's been and probably will be for a little more until I finish revising the designs.  It was nice to write again!