Friday, August 21, 2009

This is also what I've been working on

A program that eats images like some kind of contour-following worm. If it can't fine a contour it'll just make a square. Or not, depending on how it's set. Here's a video.
http://www.youtube.com/watch?v=7pSONzFvjPI&eurl=http%3A%2F%2Fwww%2Eyoutube%2Ecom%2Fuser%2FToastline&feature=player_profilepage

This is what I've been working on

Actually it's a small portion.

Listening to: Raindrops Prelude - Chopin

//26
y-=270
select=8
global.f=select
selectn=1
text[0,0]="Wall"
text[1,0]="Stationary Item"
text[2,0]="Player Object"
text[3,0]="Obstacle"
text[4,0]="Enemy"
text[5,0]="Toggle, Etc"
text[6,0]="Puzzle Element"
text[7,0]="Decoration/Other"
text[8,0]="No Selection"
text[0,1]="Small Block"//done
text[0,2]="Large Block"//done
text[0,3]="Small 45 Angle"//done
text[0,4]="Large 45 Angle"//done
text[0,5]="Small 22.5 Angle"//done
text[0,6]="Large 22.5 Angle"
text[0,7]="Curve"
text[0,8]="Wall With A Hole"//done
text[1,1]="Standard Teleporter"//needs work
text[1,2]="Spikes"//Needs additions
text[1,3]="Entrance Teleporter"
text[1,4]="Exit Teleporter"
text[1,5]="Marker"
text[1,6]="Electroball Generator"
text[1,7]="Small Glass Panel"//done
text[1,8]="Thin Glass Panel"
text[1,9]="State-Change Machine"
text[1,10]="Bossroom Teleporter"
text[2,1]="Player"//pending
text[2,2]="Powerup"//done
text[2,3]="Orb"
text[3,1]="Crusher"
text[3,2]="Rotating Laser"//done
text[3,3]="Giant Emitter"//no it doesn't emit giants you numskull
text[3,4]="Alerter"//done
text[3,5]="Black Hole Generator"
text[3,6]="Wall-mounted Emitter"
text[3,7]="Carrier"
text[3,8]="Door"
text[3,9]="Laser Barrier"
text[3,10]="Field"
text[3,11]="Bomb"//mmmmmmm done?
text[3,12]="Electrogate"//done
text[3,13]="Launcher"
text[3,14]="Small Forcer"//done
text[3,15]="Large Forcer"//done
text[3,16]="One-way"//done
text[3,17]="Colour-Gate"
text[4,1]="Sentry"//done or needs work, maybe
text[4,2]="Colour-aligned Enemy"//needs work
text[4,3]="Non-colour-aligned Enemy"
text[4,4]="Multi-aligned Enemy"
text[4,5]="Enemy Spawner"
text[4,6]="Boss"
text[5,1]="Button"//WIP
text[5,2]="Switch"
text[5,3]="Energy Acceptor"
text[5,4]="Electroball Acceptor"
text[5,5]="Electroball Storage Tube"
text[5,6]="Control Chip"//done
text[5,7]="Control Slot"
text[5,8]="Double Control Slot"
text[5,9]="State Display"
text[6,1]="Light-Beam"
text[6,2]="Mirror"
text[6,3]="Beam Splitter"
text[6,4]="Light Acceptor"
text[6,5]="Water"
text[7,1]="Generic Endcap"
text[7,2]="Glowing Tube"
text[7,3]="Field Edge"
text[7,4]="Machine"
text[7,5]="Electric Endcap"
text[7,6]="Small Fake Wall"//done
text[7,7]="Block Send/Receiver"
text[7,8]="Eye of Ristian"
text[7,9]="Script Zone"
text[7,10]="Checkpoint"

corespond[0,1]=2
corespond[0,2]=1
corespond[0,3]=4
corespond[0,4]=11
corespond[0,5]=19
corespond[0,6]=-1
corespond[0,7]=-1
corespond[0,8]=20
corespond[1,1]=13
corespond[1,2]=23
corespond[1,3]=-1
corespond[1,4]=-1
corespond[1,5]=-1
corespond[1,6]=-1
corespond[1,7]=16
corespond[1,8]=-1
corespond[1,9]=-1
corespond[1,10]=-1
corespond[2,1]=3
corespond[2,2]=10
corespond[2,3]=-1
corespond[3,1]=-1
corespond[3,2]=6
corespond[3,3]=-1
corespond[3,4]=15
corespond[3,5]=-1
corespond[3,6]=-1
corespond[3,7]=-1
corespond[3,8]=-1
corespond[3,9]=-1
corespond[3,10]=-1
corespond[3,11]=17
corespond[3,12]=12
corespond[3,13]=-1
corespond[3,14]=7
corespond[3,15]=9
corespond[3,16]=21
corespond[3,17]=-1
corespond[4,1]=8
corespond[4,2]=5
corespond[4,3]=-1
corespond[4,4]=-1
corespond[4,5]=-1
corespond[4,6]=-1
corespond[5,1]=22
corespond[5,2]=-1
corespond[5,3]=24
corespond[5,4]=-1
corespond[5,5]=-1
corespond[5,6]=14
corespond[5,7]=-1
corespond[5,8]=-1
corespond[5,9]=-1
corespond[6,1]=-1
corespond[6,2]=-1
corespond[6,3]=-1
corespond[6,4]=-1
corespond[6,5]=-1
corespond[7,1]=-1
corespond[7,2]=-1
corespond[7,3]=-1
corespond[7,4]=-1
corespond[7,5]=-1
corespond[7,6]=18
corespond[7,7]=-1
corespond[7,8]=-1
corespond[7,9]=-1
corespond[7,10]=-1
corespond[8,1]=0
//selected="No Selection"
size[0]=8
size[1]=10
size[2]=3
size[3]=17
size[4]=6
size[5]=9
size[6]=5
size[7]=10
size[8]=0

option[0,1]="channel(0-255),"
option[0,2]="channel(0-255),"
option[0,3]="rotation(0-3),"
option[0,4]="rotation(0-3),"
option[0,5]="rotation(0-3),half(0/1),flip(0/1)"
option[0,6]="rotation(0-3),half(0/1),flip(0/1)"
option[0,7]="radius(1-9),inside(0-1)"
option[0,8]="rotation(0/1),size(0/1),channel(0-255)"
option[1,1]="rotation(0-21),incoming(0-255),outgoing(0-255)"
option[1,2]="rotation(0-3),channel(0-255)"
option[1,3]="rotation(0-3),"
option[1,4]="rotation(0-7),"
option[1,6]="amount(0-255),"
option[1,8]="rotation(0-3),"
option[1,8]="rotation(0-3),style(0-6)"
option[2,1]="rotation(0-200),"
option[2,2]="type(0-6),number(1/4/9)"
option[2,3]="type(0-10),"
option[3,1]="rotation(0-3),rate(0-255)"
option[3,2]="type(0-10),speed(0-4),length(0-8),arms(0-3),channel(0-255)"
option[3,3]="size(0-8),rate(0-255),type(0-10)"
option[3,5]="rotation(0-3),size(0-40)"
option[3,6]="rotation(0-7),rate(0-255),type(0-10)"
option[3,7]="path 1(0-9),path 2(0-9),script 1(0-9),script 2(0-9)"
option[3,8]="rotation(0-7),size(0,1),channel(0-255)"
option[3,9]="rotation(0-7),send/receive(0/1),channel(0-255)"
option[3,10]="type(0-7),"
//option[3,11]="number(1,4),"
option[3,13]="rotation(0-7),force(1-100)"
option[3,14]="rotation(0-3),force(1-20),channel(0-255)"
option[3,15]="rotation(0-3),force(1-20),channel(0-255)"
option[3,16]="rotation(0-3),channel(0-255)"
option[3,17]="rotation(0-7),colour(0-10)"
option[4,1]="rotation(0-8),type(0-10)"
option[4,2]="number(1/4/9),rotation(0-101),type(0-10)"
option[4,3]="rotation(0-200),type(0-6)"
option[4,4]="rotation(0-200),type(0-5)"
option[4,5]="type(0-11),rate(0-255),radius(0-255)"
option[4,6]="rotation(0-200),colour(0-10)"
option[5,1]="rotation(0-7),reset timer(0-255),channel(0-255)"
option[5,2]="rotation(0-7),on(0/1),channel(0-255)"
option[5,3]="rotation(0-7),requirement(0-51),decrement(0-4),channel(0-255)"
option[5,4]="rotation(0-7),requirement(0-3)"
option[5,5]="rotation(0-3),"
option[5,6]="rotation(0-7),shape(0-3),colour(0-10)"
option[5,7]="rotation(0-7),shape(0-3),colour 1(0-10)"
option[5,8]="rotation(0-7),shape(0-3),colour 1(0-10),colour 2(0-10)"
option[5,9]="type(0/1),channel(0-255)"
option[6,1]="rotation(0-200),colour(0-10)"
option[6,2]="rotation(0-200),"
option[6,3]="rotation(0-200),"
option[6,4]="rotation(0-200),colour(0-10),channel(0-255)"
option[7,1]="rotation(0-7),"
option[7,2]="rotation(0-7),"
option[7,3]="rotation(0-3),"
option[7,4]="rotation(0-7),type(0-10)"
option[7,5]="rotation(0-7)"
option[7,7]="rotation(0-3),send/receive(0/1),channel(0-255)"
option[7,8]="rotation(0-7),"
option[7,9]="script(0-255),independent(0/1)"
option[7,10]="rotation(0-7),"
ops[0,1]="255,"
ops[0,2]="255,"
ops[0,3]="0,"
ops[0,4]="0,"
ops[0,5]="0,0,0"
ops[0,6]="0,0,0"
ops[0,7]="0"
ops[0,8]="0,0,0"
ops[1,1]="0,0,0"
ops[1,2]="0,"
ops[1,3]="0,0"
ops[1,4]="0,"
ops[1,6]="2,"
ops[2,1]="0,"
ops[2,2]="0,1"
ops[2,3]="0,"
ops[3,1]="0,60"
ops[3,2]="8,4,2,0,0"
ops[3,3]="300,120,7"
ops[3,5]="0,50"
ops[3,6]="0,160"
ops[3,7]="0,1,0,0"
ops[3,8]="0,0,1"
ops[3,9]="0,0,0"
ops[3,10]="0,"
ops[3,13]="0,1"
ops[3,14]="0,1"
ops[3,15]="0,1"
ops[3,16]="0,0"
ops[3,17]="0,0"
ops[4,1]="0,1"
ops[4,2]="0,0"
ops[4,3]="0,0"
ops[4,4]="0,0"
ops[4,5]="360,100"
ops[4,6]="0,0"
ops[5,1]="0,0,0"
ops[5,2]="0,0,0"
ops[5,3]="0,100,1"
ops[5,4]="0,1"
ops[5,5]="0,"
ops[5,6]="0,0,0"
ops[5,7]="0,0,0"
ops[5,8]="0,0,0,0"
ops[5,9]="0,0"
ops[6,1]="0,0"
ops[6,2]="0,"
ops[6,3]="0,"
ops[6,4]="0,0"
ops[7,1]="0,"
ops[7,2]="0,"
ops[7,3]="0,"
ops[7,4]="0,0"
ops[7,5]="0,"
ops[7,7]="0,0,0"
ops[7,8]="0,"
ops[7,9]="0,0"
ops[7,10]="0,"


It's from one of the objects in the ColourFire level editor. Which reminds me I need to put CF somewhere where people can try it other than places like Rapidshare. So I'll go do that.

I am writing a story about my adventures in space.

And you can read it here!: http://www.quizilla.com/stories/8861211/flight-of-the-megasus
I'm no great writer, but the style should entertain you if nothing else.
Critique it so far, if you like!

Friday, December 19, 2008

Accidentally amazing

I was trying to make something that would interpolate between 4 pixels in each corner of a square, such that there would end up being a smooth gradient between all of them. I see what one of my mistakes was, but it led me to this sort of... thing.
Dunno what you'd call it. I made some adjustments to capitalise on its potential since the original version, allowing for multiple focal points that aren't always on the corners (although sometimes you couldn't tell where they were anyway). I'll post screens of that later, and maybe the program itself if you want it.

Wednesday, November 19, 2008

OOPSIEDOODLE!

Listening to: Open Future, by CarboHydroM

Must've left the wrong box at the factory!

Well, actually, it seems that the IDE I use doesn't agree with my computer, for some inexplicable reason. Any programs made with it will have a seemingly random chance of freezing everything and then turning my screen black after a while. However, processes are not stopped. I can use SKYPE while this is going on, and can continue to do so indefinitely, even after the screen turns black and the computer unresponsive. But I have to shut down the computer using the button, if I want to, you know... do something.
Unfortunately, this occurred while I had just gotten something to work, and hadn't saved. So I lost the part that made it work. Luckily I remembered how to do it and so I rewrote it and now it works again! But boy that was annoying and a little time-consuming. The results may interest you, though:

See the little white square outline next to the light-orange 7s near the bottom-right? Well, this is a tile-matching game where you can rotate any square portion of the board by 90 degrees, and match tiles that way. That little square is the cursor which you use to do the rotating.
The top-left numbers are debug info which the end user would probably not see. You can record any combination of moves, and then do them again automatically, as much as you like. This game started as a make-this-shape-from-these-tiles game (and it will have that feature again, later). That "macro recording" feature was more useful in that version.
Also, I learned earlier in development that no matter how complex a macro you record, if you play it back enough times you will ALWAYS reach the way the board looked when you started. Crazy. Also maybe I will make a video later in case you don't have a clue what I'm saying.

Here's what the old version looked like:
Yes, the pieces look fancier. But eye-candy makes it harder to debug (in this case) and that's why the upper screenshot doesn't look as fancy. But maybe this picture gives you a better idea of how the rotating system works. Also this version didn't count the number of adjacent pieces (because it was a different game, primarily) and that's part of why there are no numbers on the tiles.

Tuesday, November 18, 2008

To start

Listening to: Orbital Flower, by Sidewinder

I'm starting this separately from my (bleah) Myspace weblog, because I want to put stories (Here is the first one; not coincidentally it is by far the worst)there and other stuff here. Here I shall put links to and/or discussion of some of my projects in computing, and such. I realised that I was actually using DeviantArt (http://guf.deviantart.com) for this purpose, and that's kind of goofy hyuk hyuk! But for now...

Here, have some backstory about me, since you obviously care SO MUCH!
I wasn't born. I was grown from a cell in a dish, then moved to a tube, then to a thing that's like a bowl but more sciencey, and then I could support myself in thinner materials than I had been submerged in previously so I was in an air.
Maybe I'll back up a little more. First I was some particles, and not living. Then my superiors constructed a cell-like thingy and that was, through means I don't really understand, given life. Due to the manner of my construction (and possibly the manner of my being given life) this cell ate things and got bigger. Eventually, I learned to detect vibrations, and some other stimuli. Eyes are kind of complicated, though, so I received a mechanical eye, and after figuring out what it was doing I made some organic ones. I ate the mechanical one and while doing so learned how to replicate it, using the substrate of my own being.
I got the eye while in the tube, and ate it while in the science-bowl-thing. Just for a time frame of reference.
As to the reason of my creation, well, I was made to go to Earth and study humans and what they know and what they can do. Purely for archival purposes, I assure you...
Naturally, having an indefinite lifespan, I procrastinated for around 179253 Phaician years (over 190,000 Earth years). But that was okay because it didn't matter when I went so long as I did it some time before Earth was destroyed by whatever. Obviously a bunch of EVENTS took place during that time but if you care that's too bad because I have to go work on a thing now.