Follow me on Twitter RSS FEED

Death Worm: Update 1.1.2

Posted in
 I spent a lot of time on this update:

Updates:

  • Four different enemies which appear sequentially
  • Images for the enemies
  • FPS counter
  • Minor performance updates to the particle system
View version history here: http://www.theadamgaskins.com/DeathWorm/

In the next updates:
  • The white enemies will run faster if they see you [because they get scared]
  • A health system
  • Some enemies will shoot bullets, which will make you loose health
  • You can die if you run out of health
All that is a lot, so It'll probably be a update or two before I get it all finished.

Death Worm: Update 1.1.1

Posted in
Updates:

  • The screen shakes when coming out of the ground
  • NPCs/Victims added. They are just arrows for now. If you collide with them, they explode in a puff of particles.

Death Worm Homepage

Posted in
This is becoming a fun project, which I will have motivation to continue for a while yet, so I created a webpage where you can view the updates on Death Worm. I'll still update my blog, but this page has a list of all the updates, and links to them.

Death Worm Homepage

Also, I moved all the links. The links will still work, though. I'll just have the old links redirect to the new links.

Death Worm: Update 6/18/10

Posted in
  • Scrolling Added
  • Background Color Changed
  • Scenery Added [to show scrolling]


Death Worm 1.1

Older Versions:


Death Worm: Java Remake

Posted in
I haven't used Java in a while, so my skills were getting a bit rusty. I decided to pull out the WD-40, and do a game.

I saw this game on yoyogames.com. It was simple, yet extremely addicting. What I have so far is almost complete. I just need to add the NPC's [a.k.a. victims] and the game will be finished.

Small Size
Medium Size
Large Size

Java Games

Posted in
Java games are surprisingly easy to create. You just need to download the JDK from sun microsystem's website and you're all set! You don't need to download the JMF or anything for audio or images. This tutorial will really help; its how I learned:

http://www.javacooperation.gmxhome.de/TutorialStartEng.html

Good luck, and happy programming!

YouTube Embed Test

Posted in





PHP serialization

Recently, I was working on a PHP script for my Dad which reads some data, and will make a report on the changes of the data over time. To save the reports, I needed some way to export an array into a file and then read it back from the file in a separate script and have it exactly the same.

Thats what the serialize function does in PHP. It takes any argument, and converts it to a string. Then you can unserialize the string, and get your original object. So I just serialized my array and saved it to a file:


$string = serialize($array);
file_put_contents("saved_data.txt");


and saved it to a text document, and when I wanted to access the data:


unserialize(file_get_contents("saved_data.txt"));


If you have more than one object you want to serialize, you can put all of it in an array, and serialize the array.


$string_1 = "Hello World";
$string_2 = "What are you doing?";
$string_12 = serialize(array($string_1,$string_2))

YouTube HD

Posted in
YouTube is pretty cool for sharing your video tutorials. And its even cooler when your videos are crystal clear quality. Basically, when you record your tutorial, record it in the CamStudio Lossless Codec at 856x480 [or if you have it, the TechSmith Lossless Codec]

I record my audio separate, and so I load my video into virtualdub and combine it with my audio. I then add a water mark which says "theadamgaskins" [my YouTube username]. Then I export with the same settings I recorded with. It doesn't loose hardly any quality, even being exported twice. Here's some examples:

720p: http://www.tubularlinks.com/watch.aspx?v=fSaFU87kL0s
480p: http://www.tubularlinks.com/watch.aspx?v=L9Tx7ZMFb4g

Lossless Codec

For my video tutorials on youtube [View my Channel] I was previously using the Techsmith Lossless codec in CamStudio. The quality was epic, and so was the encoding speed. But just yesterday [or the day before, I don't remember] my Camtasia Studio trial expired. So that means that the Techsmith codec wouldn't work either.

A quick Google search revealed MSU, a free open source lossless codec. The download was a DLL, so I just had to put it in the system32 folder on my pc. Then I can use it in CamStudio for very high quality, and an insanely low size, video!