0% found this document useful (0 votes)
12 views2 pages

Hex No

This document describes a script for the RSDK project related to Sonic 1/Sonic 2, authored by Christian Whitehead and Simon Thomley. It includes events for drawing objects, initializing sprite sheets, and loading graphics. The script utilizes various functions to manipulate and display sprites on the screen.

Uploaded by

Jogatina animal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Hex No

This document describes a script for the RSDK project related to Sonic 1/Sonic 2, authored by Christian Whitehead and Simon Thomley. It includes events for drawing objects, initializing sprite sheets, and loading graphics. The script utilizes various functions to manipulate and display sprites on the screen.

Uploaded by

Jogatina animal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

// ----------------------------------

// RSDK Project: Sonic 1/Sonic 2


// Script Description: Hex No Object
// Script Author: Christian Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

//-------Aliases-------//
private alias 3 : TYPE_HEXNO

// Static Values

// Tables

event ObjectDraw
temp0 = object.value0
temp0 >>= 4
temp0 += object.value1
temp1 = object.xpos
DrawSpriteScreenXY(temp0, temp1, object.ypos)
temp1 += 8
temp0 = object.value0
temp0 &= 15
temp0 += object.value1
DrawSpriteScreenXY(temp0, temp1, object.ypos)
end event

event ObjectStartup
LoadSpriteSheet("LevelSelect/Text.gif")
temp0 = 0
while temp0 < 80
SpriteFrame(0, 0, 8, 8, temp0, 24)
temp0 += 8
loop
temp0 = 8
while temp0 < 56
SpriteFrame(0, 0, 8, 8, temp0, 32)
temp0 += 8
loop
temp0 = 0
while temp0 < 80
SpriteFrame(0, 0, 8, 8, temp0, 152)
temp0 += 8
loop
temp0 = 8
while temp0 < 56
SpriteFrame(0, 0, 8, 8, temp0, 160)
temp0 += 8
loop
end event

event RSDKDraw
DrawSprite(0)
end event

event RSDKLoad
LoadSpriteSheet("Global/Display.gif")
SpriteFrame(-16, -16, 32, 32, 1, 143)
end event

You might also like