Jump to content

cube world


Recommended Posts

i try to make a cube world (http://www.radicagames.com/cubeworld/index.php) clone with autoit. but i dont know how should i make the animation and interaktion from the stickman

CODE
Func SetPixel ($x, $y, $color)

$dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", "")

$setpixel= DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)

$realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])

EndFunc

Func SetPixel5 ($x, $y)

For $xoffset = 0 to 5

For $yoffset = 0 to 5

SetPixel($x + $xoffset, $y + $yoffset, 0x000000)

Next

Next

EndFunc

While(1)

SetPixel5 (325, 200)

SetPixel5 (330, 200)

SetPixel5 (320, 205)

SetPixel5 (325, 205)

SetPixel5 (330, 205)

SetPixel5 (335, 205)

SetPixel5 (320, 210)

SetPixel5 (325, 210)

SetPixel5 (330, 210)

SetPixel5 (335, 210)

SetPixel5 (320, 215)

SetPixel5 (325, 215)

SetPixel5 (330, 215)

SetPixel5 (335, 215)

SetPixel5 (325, 220)

SetPixel5 (330, 220)

SetPixel5 (315, 225)

SetPixel5 (320, 225)

SetPixel5 (325, 225)

SetPixel5 (330, 225)

SetPixel5 (335, 225)

SetPixel5 (310, 230)

SetPixel5 (315, 230)

SetPixel5 (320, 230)

SetPixel5 (325, 230)

SetPixel5 (330, 230)

SetPixel5 (335, 230)

SetPixel5 (340, 230)

SetPixel5 (310, 235)

SetPixel5 (325, 235)

SetPixel5 (330, 235)

SetPixel5 (340, 235)

SetPixel5 (345, 235)

SetPixel5 (305, 240)

SetPixel5 (310, 240)

SetPixel5 (325, 240)

SetPixel5 (330, 240)

SetPixel5 (345, 240)

SetPixel5 (350, 240)

SetPixel5 (305, 245)

SetPixel5 (325, 245)

SetPixel5 (330, 245)

SetPixel5 (350, 245)

SetPixel5 (300, 250)

SetPixel5 (305, 250)

SetPixel5 (325, 250)

SetPixel5 (330, 250)

SetPixel5 (350, 250)

SetPixel5 (355, 250)

SetPixel5 (325, 255)

SetPixel5 (330, 255)

SetPixel5 (320, 260)

SetPixel5 (325, 260)

SetPixel5 (330, 260)

SetPixel5 (335, 260)

SetPixel5 (315, 265)

SetPixel5 (320, 265)

SetPixel5 (335, 265)

SetPixel5 (340, 265)

SetPixel5 (315, 270)

SetPixel5 (320, 270)

SetPixel5 (335, 270)

SetPixel5 (340, 270)

SetPixel5 (310, 275)

SetPixel5 (315, 275)

SetPixel5 (340, 275)

SetPixel5 (345, 275)

SetPixel5 (310, 280)

SetPixel5 (315, 280)

SetPixel5 (340, 280)

SetPixel5 (345, 280)

SetPixel5 (310, 285)

SetPixel5 (315, 285)

SetPixel5 (340, 285)

SetPixel5 (345, 285)

SetPixel5 (310, 290)

SetPixel5 (315, 290)

SetPixel5 (340, 290)

SetPixel5 (345, 290)

SetPixel5 (310, 295)

SetPixel5 (315, 295)

SetPixel5 (340, 295)

SetPixel5 (345, 295)

SetPixel5 (305, 300)

SetPixel5 (310, 300)

SetPixel5 (315, 300)

SetPixel5 (340, 300)

SetPixel5 (345, 300)

SetPixel5 (350, 300)

WEnd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...