[bmx] Xbox 360 avatar loader by BlitzSupport [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:41

Previous topic - Next topic

BlitzBot

Title : Xbox 360 avatar loader
Author : BlitzSupport
Posted : 1+ years ago

Description : There's no point to this, other than I just discovered that avatar images on the Xbox Live page are just simple PNG links! I can't believe M$ didn't overcomplicate this like they do everything else!

Here's a single-line change to RockOut:



Code :
Code (blitzmax) Select
' Amazing Xbox360 avatar thing...

av$ = "AVATAR_NAME_HERE" ' INSERT YOUR AVATAR NAME HERE! Or anyone else's...

Graphics 640, 480

SetClsColor 80, 32, 120
SetBlend ALPHABLEND
AutoMidHandle True

image:TImage = LoadImage (LoadBank ("http::avatar.xboxlive.com/avatar/" + av$ + "/avatar-body.png"))

xs = 4
ys = 4

Repeat

Cls

x = x + xs; y = y + ys; ang# = ang + 2
If x < 0 Or x > GraphicsWidth () Then xs = -xs
If y < 0 Or y > GraphicsHeight () Then ys = -ys

SetRotation ang
DrawImage image, x, y

Flip

Until KeyHit (KEY_ESCAPE)

End


Comments :


Warpy(Posted 1+ years ago)

 haha, that's pretty fun. Can't think when you'd want to actually do this though.


BlitzSupport(Posted 1+ years ago)

 No, neither can I.


Blitzplotter(Posted 1+ years ago)

 This is pretty neat, I can think of a few things.....


Ked(Posted 1+ years ago)

 Cool!