Skip to content

Commit

Permalink
Updated "Duck" calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Jul 18, 2017
1 parent 7459b1f commit e0bd8c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
19 changes: 11 additions & 8 deletions Pixelcanvas Client.pb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DeclareModule Main
; ################################################### Prototypes ##################################################

; ################################################### Constants ###################################################
#Version = 0952
#Version = 0953

#Software_Name = "Pixelcanvas.io Custom Client"

Expand Down Expand Up @@ -204,10 +204,10 @@ DeclareModule Main
Declare HTTP_Post_Input(X, Y, Color_Index.a, *Template=#Null, Fingerprint.s="")

EndDeclareModule
XIncludeFile "Includes/Captcha_Requester.pbi"

; ##################################################### Includes ####################################################
XIncludeFile "Includes/About.pbi"

XIncludeFile "Includes/Captcha_Requester.pbi"
XIncludeFile "Includes/Templates.pbi"

Module Main
Expand Down Expand Up @@ -797,8 +797,10 @@ Module Main
Select HTTPProgress(*Chunk_Collection\Asynchronous_Download)
Case #PB_Http_Success
*Memory = FinishHTTP(*Chunk_Collection\Asynchronous_Download) : *Chunk_Collection\Asynchronous_Download = 0
Chunk_Collection_Finish_Handler(*Chunk_Collection, *Memory)
FreeMemory(*Memory)
If *Memory
Chunk_Collection_Finish_Handler(*Chunk_Collection, *Memory)
FreeMemory(*Memory)
EndIf

Case #PB_Http_Failed
*Chunk_Collection\Asynchronous_Download = #False
Expand Down Expand Up @@ -1233,7 +1235,7 @@ Module Main
SetJSONInteger(AddJSONMember(JSON_Object, "x"), X)
SetJSONInteger(AddJSONMember(JSON_Object, "y"), Y)
;SetJSONInteger(AddJSONMember(JSON_Object, Duck), X + Y + 24)
SetJSONInteger(AddJSONMember(JSON_Object, "z"), X + Y + 2)
SetJSONInteger(AddJSONMember(JSON_Object, "a"), X + Y + 8)
SetJSONInteger(AddJSONMember(JSON_Object, "color"), Color_Index)
SetJSONString(AddJSONMember(JSON_Object, "fingerprint"), Fingerprint)
SetJSONNull(AddJSONMember(JSON_Object, "token"))
Expand Down Expand Up @@ -1512,8 +1514,9 @@ Module Main
EndDataSection

EndModule
; IDE Options = PureBasic 5.60 beta 6 (Windows - x64)
; CursorPosition = 22
; IDE Options = PureBasic 5.60 (Windows - x64)
; CursorPosition = 1237
; FirstLine = 1205
; Folding = -----
; EnableThread
; EnableXP
Expand Down
14 changes: 7 additions & 7 deletions Pixelcanvas.io Custom Client.pbp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://www.purebasic.com/namespace" version="1.0" creator="PureBasic 5.60 beta 6 (Windows - x64)">
<project xmlns="http://www.purebasic.com/namespace" version="1.0" creator="PureBasic 5.60 (Windows - x64)">
<section name="config">
<options closefiles="1" openmode="0" name="Pixelcanvas.io Custom Client"/>
</section>
<section name="data">
<explorer view="" pattern="0"/>
<log show="1"/>
<lastopen date="2017-07-17 19:31" user="David Vogel" host="DAVIDS"/>
<lastopen date="2017-07-18 14:09" user="David Vogel" host="DAVIDS_NOTEBOOK"/>
</section>
<section name="files">
<file name="Includes\About.pbi">
Expand Down Expand Up @@ -36,19 +36,19 @@
</file>
<file name="Pixelcanvas Client.pb">
<config load="0" scan="1" panel="1" warn="1" lastopen="1" panelstate="+"/>
<fingerprint md5="ca11a2c32692b040e708b03c742dc53c"/>
<fingerprint md5="96723a0d658bf33b9ec55539a1a2a42f"/>
</file>
</section>
<section name="targets">
<target name="Windows x86" enabled="1" default="1">
<inputfile value="Pixelcanvas Client.pb"/>
<outputfile value="Distribution\Windows x86\Pixelcanvas Client.exe"/>
<compiler version="PureBasic 5.60 beta 6 (Windows - x86)"/>
<compiler version="PureBasic 5.60 Beta 4 (Windows - x86)"/>
<executable value="Distribution\Windows x86\Pixelcanvas Client.exe"/>
<directory value="Distribution\Windows x86\"/>
<options xpskin="1" onerror="1"/>
<compilecount enable="1" value="540"/>
<buildcount enable="1" value="79"/>
<options thread="1" xpskin="1" onerror="1"/>
<compilecount enable="1" value="542"/>
<buildcount enable="1" value="81"/>
</target>
</section>
</project>

0 comments on commit e0bd8c4

Please sign in to comment.