The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsCLP-Crazy Latvian Productions
At 10/2/08 10:21 PM, Pazil wrote: My Game!
1.1KB... I loved the game, but it is innelligable for the grand prize. I can't believe you tried to pull a fast one on everyone. Shame shame shame... This is my favourite thread in ages, I can't get enough of this crazy 1KB stuff. :D
At 10/3/08 06:09 AM, TheBoogley wrote:At 10/2/08 10:21 PM, Pazil wrote: My Game!1.1KB... I loved the game, but it is innelligable for the grand prize. I can't believe you tried to pull a fast one on everyone. Shame shame shame... This is my favourite thread in ages, I can't get enough of this crazy 1KB stuff. :D
100 bytes doesn't matter so much, but his score is too low. and tbh 1KB isn't crazy, there's no reason why a couple of code generated lines and few other commands should take millions of bytes.
People using AS3 have a WAY bigger of an advantage over me...if only I have as3...the things I could do with the API without having all the other classes being automatically loaded in... :(
Anyways, I definitely think we should start doing rounds of this challenge! This challenge definitely made me a better programmer, since you start noticing exactly how you program!
Maybe round 1 is 100kb, round 2 50kb, round 3 10kb, and finally, 1 kb (or maybe make it two or something...)
But this challenge thing is definitely a good excercise for programmers to keep sharp! Especially since it took me about 45 mins. to make my game!
If anyone wants the raw, messy code for my game, paste this into any AS2 .fla, and run it, and there you go! Have fun playing my game on your computers...
tr = function () {t.text = "Click to start"
t._x = 170
t._y = 189}
createTextField("t",0,5,5,400,22)
t.selectable = false
t.variable = "s"
tr();
G = function () {
d = 2;
t.text = ""
t._x = 5
t._y = 5
s = 0
p.removeMovieClip()
for (i=0;i<q.length;i++) {
q[i].removeMovieClip()
}
createEmptyMovieClip('p',1)
p._x = 200
p._y = 200
q = new Array()
p.moveTo(10,0)
p.beginFill(0xEC7746)
p.lineTo(-10,10)
p.lineTo(-10,-10)
p.endFill()
p6 = Math.PI/3
onEnterFrame = function () {
xm = _xmouse;
ym = _ymouse;
xd = xm-p._x
yd = ym-p._y
p._rotation = 180/Math.PI*Math.atan2(yd,xd)
p._x += (xm-p._x)*0.1
p._y += (ym-p._y)*0.1
if (Math.random()<0.02) {
e = createEmptyMovieClip('e'+d,d)
d++
e.beginFill(0x6AD55E)
e.moveTo(random(6),0)
for (i=0;i<6;i++) {
r = random(6)+4
e.lineTo(Math.cos(p6*i)*r,Math.sin(p6*i)*r)
}
e.endFill()
e.r = Math.PI/180*random(360)
e._x = Math.cos(e.r)*400+200
e._y = Math.sin(e.r)*400+200
_root.q.push(e)
e.onEnterFrame = function () {
with (this) {
_x -= Math.cos(r)
_y -= Math.sin(r)
_rotation++
if (hitTest(_root.p)) {
with(_root){
delete onEnterFrame;
tr();
onMouseDown = function () {
G()
}
p.removeMovieClip()
}
removeMovieClip()
}}}}}
onMouseDown = function () {
b = _root.createEmptyMovieClip('b'+d,d)
b._rotation =p._rotation
b.x = Math.cos(Math.atan2(yd,xd))*6
b.y = Math.sin(Math.atan2(yd,xd))*6
b._x = p._x+b.x*5
b._y = p._y+b.y*5
b.lineStyle(1,0xFF0000)
b.lineTo(5,0)
b.onEnterFrame = function () {
with (this) {
_x += x
_y += y
for (i=0;i<_root.q.length;i++) {
if (hitTest(_root.q[i])) {
_root.q[i].removeMovieClip()
_root.q.splice(i,1)
i--
_root.s+=100
removeMovieClip()
break
}}
if (_x<0||_x>400||_y<0||_y>400) {
removeMovieClip()
}}}
d++
}}
onMouseDown = function () {
G()
} CLP-Crazy Latvian Productions
i used as2 and i managed to make a 1kb game with 3.17 score. i don't think as3 helps much with the file size, it just generally runs faster. i don't imagine there's gonna be a big difference in bytes between lineTo in as2 and lineto in as3
50kb...ouch!!! well a good way to get this noticed would be doing a 1kb collab but i dont have a good enough BA so maybe some1 could set this up?
I dunno...
I don't really like collabs...Putting everyone's stuff together? Nah...I think this challenge this is the best way...
CLP-Crazy Latvian Productions
At 10/3/08 05:05 PM, Pazil wrote: I dunno...
I don't really like collabs...Putting everyone's stuff together? Nah...I think this challenge this is the best way...
I think a collab would be better. If we did it seperatly, eventually we would all get bad scores depending on who saw it.
But if we did a collab we all would have a good score and people can vote on the best one instead of using the score system.
Too bad no one has a high enough ba. :(
At 9/27/08 01:38 PM, UnknownFury wrote:At 9/27/08 06:43 AM, Toast wrote: done. it's less than 700 bytesWhat FPS is that running at? Seems slow 'cause the ship is jerky :/
http://spamtheweb.com/ul/upload/270908/4 5793_one_kb_game.php
it runs at maximum fps on my computer, which isn't a particularly good one. I see no reason why it would lag for you. It's all simple API shapes with no more than 4 lines each, and a new block of (550-20)*20 pixels generated every 20 frames (which are of course deleted when they go out of the screen).
my score is now 3.41, i guess i win? the deadline is ove right?