Blocks 1.02

By BlueThen on Dec 04, 2008

Blocks is the result of me screwing around with isometric rendering. Enjoy.

Image

Updates:
Unsets leftover variable after being closed.
Optimized a bit.

;Blocks 1.02
;Made by BlueThen on December 4, 2008.
;To install, paste this script into your remotes (alt + r)
;Then, type /blocks or right click the channel or status and click "Blocks"
;Control with cursor.
alias Blocks {
  window -paozCdk0 +fbnL @Blocks -1 -1 400 400
  window -paohCzdk0 +ndL @Blocks.buf -1 -1 800 800
  window -paohCzdk0 +ndL @Blocks.pie -1 -1 100 100
  drawfill @Blocks.buf 1 1 1 1
  drawcopy @Blocks.buf 0 0 800 800 @blocks 0 0 400 400
  set %blocks.t1 drawline @blocks.pie 1 2
}
menu channel,status {
  Blocks: {
    blocks
  }
}
alias -l blocks.frame {
  clear @blocks.buf
  drawfill @Blocks.buf 1 1 1 1
  %blocks.x = 1
  while (%blocks.x <= 5) {
    %blocks.y = 1
    while (%blocks.y <= 5) {
      blocks.db $blocks.gd($1, $2, $calc((((120* %blocks.x) +100) - ((120* %blocks.y) +100)) *0.894154 +400), $calc((((120* %blocks.x) +100) + ((120* %blocks.y) +100)) *0.447759 -55)) $calc((((120* %blocks.x) +100) - ((120* %blocks.y) +100)) * 0.894154 +300) $calc((((120* %blocks.x) +100) + ((120* %blocks.y) +100)) * 0.447759 -200)
      inc %blocks.y
    }
    inc %blocks.x
  }
  drawtext -o @Blocks.buf 14 Georgia 40 234 640 Made by BlueThen
  drawtext -o @Blocks.buf 15 Georgia 40 228 680 www.bluethen.com
  drawcopy @Blocks.buf 0 0 800 800 @blocks 0 0 400 400
}
alias -l blocks.db {
  clear @blocks.pie
  drawfill -r @blocks.pie 16711935 16711935 1 1
  set %blocks.h $iif($calc((900 / $1) * 3 + 10) < 40, $v1, $v2)
  %blocks.t2 = $calc(64.8 - %blocks.h)
  %blocks.t3 = $calc(42.4 - %blocks.h)
  %blocks.t4 = $calc(87.2 - %blocks.h)
  %blocks.t1 5.3 64.8 50 87.2
  %blocks.t1 50 87.2 94.7 64.8
  %blocks.t1 5.3 64.8 5.3 %blocks.t2
  %blocks.t1 50 87.2 50 %blocks.t4
  %blocks.t1 94.7 64.8 94.7 %blocks.t2
  %blocks.t1 50 %blocks.t3 94.7 %blocks.t2
  %blocks.t1 50 %blocks.t3 5.3 %blocks.t2
  %blocks.t1 5.3 %blocks.t2 50 %blocks.t4
  %blocks.t1 50 %blocks.t4 94.7 %blocks.t2
  drawfill @blocks.pie 15 1 85 62
  drawfill @blocks.pie 14 1 11 62
  drawfill @blocks.pie 0 1 50 40
  drawcopy -t @blocks.pie 16711935 0 0 95 95 @blocks.buf $2 $3 228 228
}
menu @blocks {
  mouse: {
    blocks.frame $calc($mouse.x *2) $calc($mouse.y *2)
  }
}
on *:close:@blocks: {
  window -c @blocks.buf
  window -c @blocks.pie
  unset %blocks.*
}
alias -l blocks.gd return $sqrt($calc(($3 - $1)^2 + ($4 - $2)^2))

Comments

Sign in to comment.
Hawkee   -  Mar 01, 2009

Running XP on a VMWare Fusion virtual machine

 Respond  
Jonesy44   -  Mar 01, 2009

Emulated?

 Respond  
Hawkee   -  Feb 28, 2009

Finally got mIRC running on my Mac and gave this a shot. Pretty neat effect.

 Respond  
IcE^__   -  Dec 13, 2008

wow :D Looks nice 10/10

 Respond  
pwnisher3   -  Dec 13, 2008

lags for me too. but really good :)

 Respond  
Jonesy44   -  Dec 12, 2008

Lags like a bitch for me. but the effect is very impressive!

 Respond  
^Neptune   -  Dec 12, 2008

Laggy as heck for me over here.

 Respond  
Zmodem   -  Dec 12, 2008

Ah sure, C&C. It's called mIRC SUCKS at real-time $hit!

 Respond  
sercan386   -  Dec 12, 2008

next step: a C&C game :D

 Respond  
a careful warchild   -  Dec 12, 2008

i like this BlueThen, good job.

suggestion: maybe gradient colours so when it gets higher it goes to a lighter colour, and when it goes lower it goes to a darker colour? :D

 Respond  
Kirby   -  Dec 11, 2008

Oooh, this is fun! :D
As always, good job BlueThen.

 Respond  
knoeki   -  Dec 11, 2008

demos in mIRCscript... it's more likely than you think! :_)

 Respond  
BlueThen   -  Dec 10, 2008

Thanks, guys! I appreciate the feedback.

 Respond  
SumWon   -  Dec 10, 2008

As always, great work BT.

 Respond  
NIGathan   -  Dec 09, 2008

Ya, good job man. Rated 9/10, cant really give it a 7 or 8 because its not useful, but it is indeed exceptional :D

 Respond  
Zmodem   -  Dec 09, 2008

Yea, it's running pretty well for me, too. I don't know why everyone else is having any sort of issues. Good job, BlueThen.

 Respond  
NIGathan   -  Dec 09, 2008

Runs perfectly on my machine, no lag whatsoever..

I have 6144MB's of ram, with a 3.123Ghz dual core cpu.

Looks awesome man, every time I open it, I want to make it into some kind of audio visualizer

 Respond  
BlueThen   -  Dec 08, 2008

Ok, I did that. But really, that's not even half the lag. The lag comes from all the drawcopying from one window to another. You see, I can't really do individual solid shapes because when they overlap, the drawfill wouldn't fill all the way. So I had to have it create each individual block in a seperate window, then drawcopy it.

 Respond  
Zmodem   -  Dec 08, 2008

Works okay here. You could be able to cut down on the speed by replacing reoccurring calculations with variables. This: $calc(64.7759 - %blocks.h) is done over and over, so mIRC needs to parse every $calc() over and over. If you set it in the beginning as, say var %c1 = $calc(64.7759 - %blocks.h) then just replace every instance of that calculations with %c1, it will cut down parsing time. This is the same for all of the repetitive calculations. Anyways, hope this helps.

 Respond  
Mpdreamz   -  Dec 07, 2008

it doesnt run to smooth just yet (even on my quadcore pc) Not to say the effect is really cool :)

 Respond  
BlueThen   -  Dec 06, 2008

Minor update: it now unsets leftover variables.

 Respond  
BlueThen   -  Dec 05, 2008

Thanks for the feedback, people. Just to let you know, http://bluethen.com is back up, so visit it and register if you haven't already. Also, start posting some more! I'd like to see some people releasing their scripts and snippets there.

 Respond  
Purcell   -  Dec 05, 2008

Nice!

 Respond  
napa182   -  Dec 04, 2008

lol you should turn it into somthing like the old game Qbert lol

 Respond  
irchainscriptz   -  Dec 04, 2008

Going to try it tomorrow Blue :) but looks like fun!

 Respond  
Hawkee   -  Dec 04, 2008

Looks neat.

 Respond  
BlueThen   -  Dec 04, 2008

Have fun.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.