most useless program in the world made by me

Pages: [1]
General
SRAW
Rocket Man

2007 Nov 6 • 1260
1 ₧
http://www.megaupload.com/?d=DU5DDREF

u can download it from here, and dont worry no viruses
it is basically some really stupid game in which you can control merlin(image from system dir) and click on him

source code included! also has a console!!!(press `)
also is multi-liguile(however you spell it) with up to 10 languages! in fact, the ini file reading takes up 3/4 of the source code!! it could all have been prevented by using arrays!!!
Thus spake SRAW
And y did u highlight this?
    2010 Jan 19
sprinkles

2009 Sep 6 • 950
10 ₧
Well if it comes with source code why not? What language is it written in?


Ahh, Autoit3. At least its not Python.
You should have included the merlin pic in a resource file.
Who wants to send me the Merlin pic thingy...
AutoIt code
if FileExists(@SystemDir & "\oobe\images\merlin.gif") = 0 Then msgbox(0,"Error","Cannot locate @SystemDir & ''\oobe\images\merlin.gif'' -- exiting") Exit Endif
http://www.somethingawful.com/flash/shmorky/babby.swf
using Sprinkles.Math
using Sprinkles.Common
using Sprinkles.Misc
using System.Security.Cryptography
    (Edited 2010 Jan 19)     2010 Jan 19
SRAW
Rocket Man

2007 Nov 6 • 1260
1 ₧


thats the one
Thus spake SRAW
And y did u highlight this?
    2010 Jan 19
sprinkles

2009 Sep 6 • 950
10 ₧
Thank you. I have to work an my av program now, but I will test your program/game out and respond back later.
http://www.somethingawful.com/flash/shmorky/babby.swf
using Sprinkles.Math
using Sprinkles.Common
using Sprinkles.Misc
using System.Security.Cryptography
    2010 Jan 19
SRAW
Rocket Man

2007 Nov 6 • 1260
1 ₧
if the pic doesnt work, its probably cause its to big, it has to be 50x50


sprinkles, i have actually updated it a little, so it draws a line behind it when it moves and has a new functions.. exit!, pen up and pen down..

i do also assume u have the autoit interpreter/compiler/autoit installed anyway
after the includes, add the line
code
$pen = false


then after that
code
func pen() if $console = false Then if $pen = false Then ToolTip("Pen down!") sleep(500) tooltip("") $pen = true Else tooltip("Pen up!") sleep(500) ToolTip("") $pen = False EndIf EndIf EndFunc HotKeySet("+!d","pen") Func drawpix($dc,$x,$y,$color) DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color) EndFunc Func pict($x,$y) $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", "") drawpix($dc,$x+25,$y+25,0x000000FF) DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) EndFunc


Note that pressing alt+shift+d will toggle the pen thing

then look for
code
func ifunc($func)


add in it
code
if $func = "pen down" Then $pen = True _GUICtrlEdit_InsertText($conout,@crlf & "Pen down!") EndIf if $func = "pen up" Then $pen = false _GUICtrlEdit_InsertText($conout,@crlf & "Pen up!") EndIf if $func = "exit" Then Exit EndIf


then move all the way down to the while 1 loop
add at the start
code
if $pen = true Then pict($picpos[0],$picpos[1]) EndIf


that is all to have a turtle graphics clone
Thus spake SRAW
And y did u highlight this?
    (Edited 2010 Jan 20)     2010 Jan 20

Pages: [1]
Forum and design copyright © 2008 SuperJer.com