This code has been declared by its author to be Public Domain code.
Download source code | Xbox 360 avatar loader by BlitzSupport | 2010 |
| |
|
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:
|
' 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 |
haha, that's pretty fun. Can't think when you'd want to actually do this though.
|
|
This is pretty neat, I can think of a few things.....
|
Code Archives Forum