

windows binaries:
      http://rdpyg.sourceforge.net/infekchion.zip 

Source for python/pygame/pyopengl people who want a small download:
      http://rdpyg.sourceforge.net/infekchion_src.zip 



[[TableOfContents]]


= Day one. =

== Sat Apr 17 09:43:09 AUSEST 2004 ==

got here 1 hour 40 minutes before it starts!  eek.

I thought It started an hour later.  only 1hour 20 minutes left now.


== Sat Apr 17 10:17:29 AUSEST 2004 ==

Downloading some missing small libraries, and programs.  Like innos setup, and py2exe.


== Sat Apr 17 10:25:41 AUSEST 2004 ==

think I'll worry about an installer after the comp :)

== Sat Apr 17 10:40:45 AUSEST 2004 ==

chewing on chips, waiting.  20ish minutes left!

Going to make a directory to place the game in.


== Sat Apr 17 10:56:49 AUSEST 2004 ==

A few more minutes now...



== Sat Apr 17 11:02:19 AUSEST 2004 ==

The theme is:


	Infection
Make a game involving the spread of something. A virus, coffee shops, etc...



== Sat Apr 17 11:33:16 AUSEST 2004 ==


Got a screenie up.


http://www.py3d.org/py3d_images/img/ld48_4/screen1.gif







== Sat Apr 17 12:33:43 AUSEST 2004 ==

Got my cubes rotating, moving, and scaling.

Got a quat slerp function working.  The quat library I was using had a broken slerp function.

Now to make some musac whilst I think of an idea.


One idea was infecting cubes with the deadly "ROTATING VIRUS"!!!

Either the player has to infect, or stop infection.

I could have that game finished in an hour or so!



== Sat Apr 17 12:49:11 AUSEST 2004 ==

bugger.  buzzmachines doesn't work on this box

== Sat Apr 17 12:54:43 AUSEST 2004 ==

Had to delete the python dll included with buzz.  

As I think it was conflicting with the installed python setup I have here.

Now for some crappy tunes.


== Sat Apr 17 13:16:19 AUSEST 2004 ==

got some crappy speakers set up.  Now I made a DEATH tune.  called [http://www.py3d.org/files/rotating_virus.ogg rotating_virus].



== Sat Apr 17 13:39:50 AUSEST 2004 ==

extended the crappy song with a bit of 'melody' at the start.

Now it is a finished distorted synth/drums track ;)  Yah!


Now to get it playing in game.


== Sat Apr 17 14:13:10 AUSEST 2004 ==

Got the music playing in my game.  Sounds pretty crap.  oh well.

Made a script which copies my 'game' into a dir, and then uploads it.



== Sat Apr 17 14:22:50 AUSEST 2004 ==

really having trouble comming up with an idea.

Guess it will be infect the cubes with the ROTATE VIRUS OF DOOM!

until something better pops into my head.






== Sat Apr 17 14:43:38 AUSEST 2004 ==

Coding randomly is kind of working for me I think.

I have a bunch of cubes, which move around following my cursor.  Each moving at different random speeds.

Going to make a whole bunch of little cubes(blue), which run around(and not rotate!).  
You have to infect them(turn them red).  Each one you infect you control, and they follow your mouse cursor.


OK.  Now back to coding ROTATE VIRUS OF DOOM!



http://www.py3d.org/py3d_images/img/ld48_4/screen2.gif



== Sat Apr 17 16:07:46 AUSEST 2004 ==

Got the infected CUBES, and the non infected ones moving around differently with different colours.

Now to do some collision detection on them.  So you can actually infect things.

Pic of game and workspace.

http://www.py3d.org/py3d_images/img/ld48_4/workspace1.jpg




== Sat Apr 17 16:54:49 AUSEST 2004 ==


got things infecting other things :)




== Sat Apr 17 17:04:57 AUSEST 2004 ==

Now to make it reset once you have won.

Make a 'Levels' class.

Levels class could change these things:
  * number of blocks.
  * speed of first infected block/s.
  * number of infected blocks at start.
  * min/max speed of non infected blocks.
  

Those should be easy enough to add.


== Sat Apr 17 18:08:12 AUSEST 2004 ==


Woohoo!  The game is beginning to have that fun element to it :)

Did the levels.  Did a little tweaking, so that the game starts of easy and gets quadratically harder.

Also it is pretty self explanatary to begin with.

Now to see what someone else thinks.




== Sat Apr 17 18:18:28 AUSEST 2004 ==

Think I will make an exe, so winders people can play it.  Don't need an installer now.




== Sat Apr 17 18:56:52 AUSEST 2004 ==

arg!

That was tedious.

Needed to exclude OpenGL.  Had to make a new setup file.  the pygame2exe one didn't work.



== Sat Apr 17 19:37:45 AUSEST 2004 ==

uploading file issues.  My serber is stuffed.  But I found an alternative.

Time to make some food, and think about what to do next.




== Sat Apr 17 19:41:17 AUSEST 2004 ==

yah!  people liked the game.  All the cubey goodness of it ;)


== Sat Apr 17 20:11:22 AUSEST 2004 ==

Finished the required eating.  Now what.  Could do a fancy intro.  Or make the cubes look nicer...

Or maybe change some gameplay.  Hrmm.

ah, generate some collide/infect noises.




== Sat Apr 17 20:28:03 AUSEST 2004 ==

Played a game with psyco installed.  Seems to make it run quite a bit faster.


Now to make that tune I did before a little longer, as well as make a few collision sounds.




== Sat Apr 17 21:20:35 AUSEST 2004 ==

Did another tune.  Well the interesting part of it, I didn't really do.  It is a template from buzz.


Now to open up 


== Sat Apr 17 21:47:07 AUSEST 2004 ==

Got a couple of sounds in for collisions.  

Adjusted the music volume down quite a bit as it's kind of annoying ;)

Now to upload.


time to make an intro now me thinks
or maybe an online high score table...  hrmm.


- intro 
- online high score.



== Sat Apr 17 22:10:46 AUSEST 2004 ==

Was thinking of drawing an image with cubes.  But that is a lot of frigging cubes...

Probably best to get textures displaying.



== Sat Apr 17 22:47:57 AUSEST 2004 ==

Made the screen get further away/arena grow bigger the more levels you go up.


Now I'm going to go home, on the last tram.  Have a full day on the game tommorow.  Hopefully fairly rested.

There are a few things I could do tommorrow:

* make the blocks into particle systems.  oooh!, purty.
* draw textures for:
    * score.
    * intro
* intro 
* online high score.
* draw the arena.


new version of game(windows binaries):  
    http://rdpyg.sourceforge.net/infekchion.zip   

Source for python/pygame/pyopengl people who want a small download: 
    http://rdpyg.sourceforge.net/infekchion_src.zip


= Day two. =

== Sun Apr 18 10:38:52 AUSEST 2004 ==

It appears the hamumu.com site is down :(  I hope no one haxored it.

Woke up at 9ish, left to come here.  
Brewed up a *strong* coffee, made myself a crossaint with tomatoe, avacado and brie cheese.  

Then ate a banana :)




== Sun Apr 18 11:18:11 AUSEST 2004 ==

It appears some people did evil haxor the boxes :(  Bastards.

Oh well, I think they will be ok.

now, finally onto particle system... OF DEATH!


== Sun Apr 18 11:50:07 AUSEST 2004 ==


Got a particle system of sorts working.  Kind of based off the nehe particle code.

Ok very much based off it :)  Except it is in python.  There was a little cut and pasting involved.

Oh no! I am cheating!


I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!
I AM CHEATING!!!!


um...  yes.  incase you missed it.


http://www.py3d.org/py3d_images/img/ld48_4/screen3.png

== Sun Apr 18 12:14:35 AUSEST 2004 ==

Damn.  Particle system is not displaying the texture correctly.




== Sun Apr 18 12:17:11 AUSEST 2004 ==

Dumb ass I was.  As soon as I wrote it I realised that I hadn't enabled texturing.


Now to make the particle system start up on an block when it first gets infected.  

Then stays around for a while.


== Sun Apr 18 12:56:50 AUSEST 2004 ==

Got the particle systems following the infected ones now.

Now to make them dissapear after like one second.  Maybe less.  See how it looks.


http://www.py3d.org/py3d_images/img/ld48_4/screen4.png



== Sun Apr 18 13:08:38 AUSEST 2004 ==


Yah!  set a title for the game.


infekchion: Infect the blue cubes with the... ROTATING RED CUBE VIRUS OF DOOM!


arms hurting.  RSD


http://www.py3d.org/py3d_images/img/ld48_4/screen5.jpg

== Sun Apr 18 13:20:18 AUSEST 2004 ==

OK I DON'T CARE IF MY ARMS AND HANDS ARE ACHING, AND THAT IF I CONTINUE 
I will get permanent nerve damage, making my later years a living hell.

must make particle systems fade out...




== Sun Apr 18 13:27:57 AUSEST 2004 ==

That was easy enough.  It kind of looks like they are being burned up now.

Might colour cycle from the infected to the non infected colour I think.

Over the life of the particle timer...  maybe.  Yeah I'll do that.



== Sun Apr 18 13:38:25 AUSEST 2004 ==

that took hardly any time :)

was chatting on irc, then just did it in like a minute.

time to upload, and show people.


== Sun Apr 18 14:04:06 AUSEST 2004 ==

Now what to do...


* make the blocks into particle systems.  oooh!, purty.
    * DONE
* draw textures for:
    * score.
    * intro
    * NOTDONE.  Can't be bothered with this.

* intro 
* online high score.
* draw the arena.



== Sun Apr 18 14:25:35 AUSEST 2004 ==

fucking around.  I can't think of what to do.




= Sun Apr 18 14:49:41 AUSEST 2004 FINISHED =


Going to make it '3D'.  Where if you press left button it rotates the view left, and right; right.

Maybe only on later levels.  Something to do anyway.



naaa.  my hand hurts too much.  fuck it.  I'm done.

= Ok not finished. =

Still lots of time left, and I have one banana and one V drink left in the fridge.  

So I'll grip onto the pain and just go for it.  Have to suffer for my game ;)



== Sun Apr 18 15:49:50 AUSEST 2004 ==

Going to add a highscore table.  To make it less prone to cheating...

I am going to have highscore table groups.  You can only see the highscores for groups that you know of.

Once a person finishes playing it:
  * uploads their score to a table with a random code.
      * add_score?code=liasjdij83j8ffj&the_score=23404
          * adds score to a list of unused scores.
  * opens browser to a page where they can enter thier group name.
      * yah_you_finished?code=liasjdij83j8ffj
      * 'Please enter your name, and a group name you would like your score to go into.'
        * person can enter in a group name, and their name.
	    * the name and score is placed into the group name folder.
	        * eg pygamePeople
		* only the top(20?) scores are listed.




== Sun Apr 18 16:31:58 AUSEST 2004 ==

Did the score adding script.


== Sun Apr 18 16:41:00 AUSEST 2004 ==

Made the score adding script a bit less likely to die because of bad input.

Now for the yah_you_finished one.

need a:
    yah_you_finished?code=asdf123d form which:
        * populates a hidden code input field.
	* allows you to enter name, and high score group name.
	* calls the move_score_to_group script.
    move_score_to_group?code=asadfjh3h3&group_name=joes_garage_scores




= Sun Apr 18 17:02:31 AUSEST 2004 =

did the yah script.

now for the moving highscore one.

then I need a default one which view the highscores.

move_score_to_group?code=asadfjh3h3&group_name=joes_garage_scores
    * read in scores.
    * look for code.
    * remove code from scores.
    * remove all weird characters from group name.
        * only alpha numerics allowed.
    * look for group name folder.
        * if not there create it.
    * look for scores in group name folder.
        * if not there create it.
    * read in folders scores.
    * Add new score to the folders scores.
    * Write back the top twenty scores.



== Sun Apr 18 17:09:04 AUSEST 2004 ==

this one is going to take a while.  Also my V has ran out.

Luckily my hand is hurting less.  I think it was the big buttons on my shirt and coat causing the pain.

doh.




== Sun Apr 18 17:33:51 AUSEST 2004 ==


still going on move_score script.  ugh.  tedious.

Now I have to read up on how some of this stuff is done.  gah.  I hate wading through manuals.


== Sun Apr 18 18:12:57 AUSEST 2004 ==

yah.  that is done.  Now to test them all together...

woohoo!!!

Now just need to display the high scores.  hrmm.

eh it will do as is for now.  Now to do the game integration of this junk.

- when quit game: 
    call http method:  add_score?code=shjdf8d8d&score=1000
- open browser to yah_you_finished?code=shjdf8d8d

make coffee first.



== Sun Apr 18 18:33:53 AUSEST 2004 ==

mmmmm.  coffeeee goooood.

haven't tested the high score thing as anonymous yet... oops.




== Sun Apr 18 18:43:03 AUSEST 2004 ==

Ok.  that works now.  Back onto the ingame part of it.



== Sun Apr 18 19:10:35 AUSEST 2004 ==

yah!  that's in the game and working now :)

think I'll make a game_scores directory...  so my dir doesn't get filled up with heaps of games.



== Sun Apr 18 19:17:24 AUSEST 2004 ==


Yah!  all the high scores are in their own subfolders now.


now I just need to make a better scoring system, rather than just what level they achieved.

Something like:
for every level:
    score += (par for level - time taken to complete) * level.



