No, FTP and HTT are different. But DBP had HTTP commands also.
Speed is dependent on your webserver and connection. But don't expect to run a realtime fast-action game with it.
For high scores, it is perfect. Your users will hardly know it is happening. Make an asynchronous HTTP call (there is a command for this), fade out to your High Score screen and you'll be ready to grab the data, disguised as a screen transition.
I posted this earlier for someone. It isn't a standalone piece of code, but it gives you a good starting point
http = CreateHTTPConnection()
SetHTTPTimeout(http, 5000)
SetHTTPHost(http,"www.mysite.co.uk",0)
SendHTTPRequestASync(http, lUrl)
//Show a "waiting" Sprite and wait for response
imgWait=loadimage("waiting.png")
sprWait = CreateSprite(imgWait)
SetSpritePositionByOffset(sprWait, GetVirtualWidth() / 2, GetVirtualHeight() / 2)
while GetHTTPResponseReady(http) = 0
SetSpriteAngle(sprWait, GetSpriteAngle(sprWait) + (120.0 * GetFrameTime()))
UpdateGame()
endwhile
DeleteSprite(sprWait)
deleteImage(imgWait)
UpdateGame()
if GetHTTPResponseReady(http) = -1
displayMessage("Router connection to Internet failed",0,3)
else
msg$ = GetHTTPResponse(http)
log("Message Received : " + msg$)
//Do stuff here with the response
endif
endif
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt