Friday, June 12, 2009

Speed Coding

I'm working on a series of videos for youtube based off of those speed painting videos that started showing up a few years ago. I'm going to be making a small game where you have to climb to the top of a tower. In the first video, I set up the basic frame work for the game. The second one is going to set up a basic camera that will follow the player around as he goes higher and higher, and will have all of the floors set up. The third video is going to be mainly about the graphics, with animated sprites and possibly a small particle engine. The fourth video will set up the menu system, as well as a victory screen. The final video will introduce a sound system, as well as a possibly updated control scheme.

Source File:

Monday, June 1, 2009

Anagram Generation

Heres a simple algorithm I developed to test if a word can be made out of the given letters.

  1. Fill a 255 sized array with zeroes
  2. Loop through the given letters, converting them to ascii and then incrementing that location in the array
  3. Get a word from the dictionary file
  4. Do steps 1 and 2 again with the word from the dictionary file.
  5. If any of the locations in the second array are bigger than the 1st, the word is not an anagram
  6. Else, add the word a list
  7. Go back to step 3 untill you are out of words in the dictionary file.

Edit:

Heres a proof of concept for that algorithm. I also made a little bot to type it for you. I'd suggest having a copy of notepad running when you use this.

source code and dictionary file included.
http://www.megaupload.com/?d=A1XVC576

Thursday, May 28, 2009

Demo Rising


Okay, so a beta Demo of Maze Plus should be up soon. Its just one level. The Menu systems aren't implemented yet, so its just a preview of the puzzle system and the graphics, which still need tweaked a bit.
Please realize that this is an early work in progress, and I'll probably release another version before the final project's released. See 2 posts ago with the road map for more info on this.


UPDATE:
The beta demo is now available for download. Post on the comments for this post for any problems/questions/bug reports.

link: http://www.megaupload.com/?d=45MINNBI

Thursday, May 14, 2009

Random Post

So its been a while since I've posted so I thought I'd say some updates.

I've been enrolled in an intensive French course, and since I spend most of my time alone other than that, I really think I may be spending more time in French than English.

My Maze game is at about 0.1.3 right now. I've been working on a few small programs for my own ammusement, so Maze + is on the back burner, but I'm planning on working on it some more tonight.

I'm thinking of setting up some better way to keep my code library organized.

Saturday, April 18, 2009

Mazes Plus current state and road map.


I'm still plugging away at my maze program. My most current version is shown to the left. I just finished the texture generation code for the walls and floor. I still need to do the buttons (currently green rectangles) and make the sky look a bit better. I still have alot to do, so I'm listing how development should be going.

0.0.1 Set up a simple one polygon Map, with the ability for the player to walk around.

0.0.2 Make a simple 4 wall room with basic collision detection.

0.0.3 Set up buttons, and allow the player to use them

0.0.4 Set up the begining of texturing

0.1.0 Basics of the world set up and working (currently here)

0.1.1 Collision Detection set up completely

0.1.2 Doors added

0.1.3 Doors interact with buttons

0.1.4 End of level flag added/implememnted

0.2.0 One complete level set up, Public Beta released

0.2.1 Menu system set up

0.2.2 Level from file support added

0.3.0 Multilevel support

0.3.1 Communications added, (allows the program to put messages up on the player's screen)

0.3.2 Tutorial Level Added

0.3.3 All other levels (aprox 16) completed

0.4.0 Demo released

0.4.1 Reserved for Bug Fixes

0.4.2 Reserved for Bug Fixes

0.5.0 Audio Support added (if time allows)

1.0.0 "Completed" Product released

1.0.1 Reserved for Bug Fixes

1.1.0 Modified for mod support (Map maker should be released some time around here)

1.2.0 Bug fixes

1.3.0 Program 'finished'. No more work to be done, except for any necessary bug fixes.



I'll probably have a playable game ready some time during summer.

Thursday, April 2, 2009

Mazes Plus (the plus is for buttons)


I'm planning on making a program roughly based on Logic Quest 3d. In the game, you travel around mazes in first person. There also buttons that you can push to open and close doors. For example, you may need to open a door to be able to pass through the area, so you go to find its switch, but when you hit it, the place you are in is closed, so you have to go find a second switch to open up that door.

I made a simple drawing in The GIMP to show what the first level might look like. I'm not sure what kind of HUD I'm going to use in it, if any.

I'm considering using procedural generation to make the graphics. Procedural generation where the computer generates the graphics (in this, the images put on top of the geometry, called texture maps). For example, to generate the brick walls, first the computer would start with a blank red image. Then it will draw white horizontal lines across the entire image. The it will add shorter vertical lines between each of them. Finally it will randomly generate some noise to add realism. I followed the same algorithm to make the brick images used in the example shown above.

Procedural generation has several advantages over traditional art. The biggest one is that an image may take several megabites of size if it is big, where as a procedurally generated image only takes a few lines of code. Another advantage of procedurally generated imagry is that by adding some random variables, each image can be slightly different. This is useful if I would want to make an entire forest of procedurally generated trees. Normally, I would have to make many different models of trees, so they do not all look the same. However with procedural generation, all I would have to do is write code for a tree once, then I could let the computer make every tree in the forest unique!

Procedural generation does have some downsides. Mainly it takes alot more computing power to redraw these images every time the program loades instead of just loading it from a file. Also, one has to be careful to make it look realilistic. For the example image above, I decided to quickly come up with an algorithm for drawing the ground, and it doesn't look too good. For the actual game, I will have to come up with a new algorithm that looks better.

I can't say exactly when this project's going to come to fruition, I have a couple other projects I'm also working on, and theres only so much time once can program each day!

Sunday, March 29, 2009

Orbiter on the launch pad.




I've been wanting to blog about this game for a while. Its called Orbiter. Orbiter is a flight simulator, but its mainly designed for flying in space. Yes, the default game comes with all of the planets and a good number of moons. Ever wonder what it'd be like to fly to Venus, or launch a satellite on a Mars? Well now you can try it out.




Not that you'll be able to really do much when you first get it, the learning curve is pretty tough. I'd recomend searching for some autopilot mods. Even someone who's been playing flight sims for years, such as myself, will still take a few hours before you can 'properly' land the shuttle.
I'd really recomend you download as many mods for the game as you can, or else you'll never be tempted to do much more than a few flights.
There are mods to increase realism, replay historic missions, or even build your own space station!
The requirememnts are pretty low (I was running a virus scan when taking the screenshots), which is good, considering you'll be running on accelerated time alot (unless you feel like waiting a year to get to mars).

I'm running my own pretend space agency, and I'm documenting it a bit. Be sure to look out for that.















Get Orbiter :

http://orbit.medphys.ucl.ac.uk/

Get Addons:

http://www.orbithangar.com/

Thursday, March 26, 2009

Yahoo spammed me!

I was checking one of my yahoo accounts, and I got a friendly reminder from them to update to the "new, safer" version of Internet Explorer. I have been avoiding IE for many years, so I can't vouch for it being safer or newer, but here are a three things that I can think of that makes IE so much better:

  1. A closed source program allows only a select few people to view the code, and find security holes in it, because obviously the rest of humanity cannot be trusted to be as 'skilled' as the programers at Microsoft, since we all know that Vista is soo much better than Linux, right?
  2. IE supports a larger user base than firefox or opera. This is a good thing, as many web developers can program specificially for IE, and their sites do not work correctly on FF or Opera. I mean, how fun can the internet be, if you can't be guaranteed to run every virus off of it, or finding out that you were on a phished version of your bank?
  3. IE comes FREE with the purchase of any multi hundred dollar operating system, from 95 to Vista! Even better, you can use windows update to upgrade IE, instead of having to deal with Firefox's 'fancy' built in updater.
I'm also slightly upset that Yahoo got paid (atleast I hope they got paid) to send us spam. Now ofcourse Yahoo decided to add a small amount of small print, ala:

"You received this advertisement from Yahoo! because the information for the account -------------- indicates that Yahoo! may contact you about using Yahoo! for research and surfing the Web."

I'm not quite sure how advertising IE8 is considered research, and I know advertising this is anything but harmful for web surfing, considering all of the safer alternatives out there.

Also, for anyone considering complaining about me calling this 'spam', heres a thought for you. According to wikipedia:

"E-mail spam, known as unsolicited bulk Email (UBE), junk mail, or unsolicited commercial email (UCE), is the practice of sending unwanted e-mail messages, frequently with commercial content, in large quantities to an indiscriminate set of recipients."

This is spam because I definatly do not want it. It is advertising a product released by a company for their products so thusly of 'commercial content' and considering that I have never been on windows or IE with that screen name, I can only guess that this was indiscriminate.

Of course, I do have to admit that I was using an email adderss that was on a yahoo server. So they are, legally, allowed to send emails to their own servers.

Pic of the Email in question: (click to enlarge)

Tuesday, March 10, 2009

Websites that can get you free stuff.


I've been trying out some of those 'win free stuff' sites over the last few months, and it does turn out that some of them do work. Most of these are trying to establish a user base by rewarding users from using their searchengine/site. Sites are listed from best to worse.


1. Swag Bucks
Site : swagbucks.com
Time to get a reward: About 1-2 weeks for a $5 amazon gift card.
Ship time: Less than a week.

Swag bucks offers a wide variety of prizes. You earn 2-4 points a day for using their search engine. It took me about 2 weeks to get my first gift card from them, and I cashed it in to confirm that its a valid amazon card. Highly Recomended


2. PikaGames
Site : www.pikagames.com
Time to get a reward: 2-3 months for a copy of fallout 3, much longer for anything else.
Ship time: unknown.

PikaGames is a flash game host much like newgrounds, you get one point each time you play a game, with a maximimum of about 40 points a day. It also features a nice facebook/myspace like area for making friends to talk to while playing the games. There are two problems with this site, however. First, It takes a fairly long time to get anything worth while. Secondly, because the site is so new, I haven't been able to find any accounts of people getting anything yet, so I cannot confirm if this site is legit. Its still fun to play flash games, even if you don't get anything, so I'm recomending it.

3. E-rewards/ U.Talk.Back
Site: Invite only, sorry
Time to get a reward: about 3 months for a $25 gift card.
Ship time: A month

These two sites are survey sites hosted by the company that owns gamestop. Its not too bad, except alot of times the surveys will take a long time to do, only to have it say that it cannot be accepted because you don't fit who they're trying to test. Still worth while, however there are alot better sites out there.

4. Microsoft's Live Search Club
Site: club.live.com
Time to get a reward: one day to 3 months, depending on the reward / how much time put in each day
Ship time: A month to 3 months to never

This site offers alot of really nice free stuff, but you really have to work for it. It sounds really nice, but its really flawed. Shipping times are way too long, and I still haven't recieved half of the stuff I ordered back in december. Their Support E-mail does nothing but send a blanket statement about their site. Not recomended.

5. PrizeRebel
Site:prizerebel.com
Time to get a reward: Unknown
Ship time: Unknown

This site seems pretty old, it has a ton of 'free offers' that you have to give your email for, or something to that extent. This site has a huge problem in that its really up to luck on wether or not you'll actually get credited for the things you do. In the 5 months I used this site, I didn't get enough credits for one single thing!

Monday, March 9, 2009

Big problem with my thumbdrive.


A bit of a personal crisis for me. I was walking home from class and about 2 km into my 3 km walk I noticed that my thumb drive had fallen appart some way along the way home. Just the electronics fell out, a bit of an upset considering I got it only a few months ago and now its already worthless. Plus the loss of data, a few assignments I've been doing for class since january, have to redo them now, plus the map program (see 2 articles ago).

I also was going to back it up the next day =/

USB plug should be in the lower left side of the blue part.

Friday, March 6, 2009

Several Posts comming soon

Heres a list of things to expect:

  1. Update on previous posts
  2. Rant about PNY's thumbdrives
  3. Ways to get free stuff
  4. A new computer project I'm working on.
  5. Soap

I hope to start posting more often, untill next time, mewcurano out.

Saturday, February 7, 2009

Path Finder

I'm working on a program that will find the fastest path from one point to another (think mapquest or a Garmen gps) using a genetic algorithm. Its been a while since I've worked on genetic algorithms, and they were all used in tandem with neural networks, so I'm anxious to see what the results will be like. The program will load a map, ask the user for beginging and end points, calculate the best route, then display the path.

Genetic Algorithms work as such:
  1. Generate a random set of commands. This will be one 'organism'.
  2. Generate a bunch of other 'organisms' with different commands.
  3. Run each set of commands through the map.
  4. Record the results and score the 'organism' on its 'fitness level'.
  5. Generate a new set of organisms based on how well the previous ones did.
  6. Repeat steps 3-5 several times.