Talk:The Petit Computer Code Generation Project/@comment-14304715-20130923052339

OKAY happy to announce the command line of spofs works.

This petit computer hybrid playbasic code also works!

mov=0

do

x=mousex

y=mousey

print x

print y

sync

cls rgb(0,0,0)

//display_sprite_table

if mov=0

spset(1, 1, 0, 0, 0, 0)

spofs(1, 120, 120, 0)

spset(2, 2, 0, 0, 0, 0)

spofs(2, 120+16, 120, 0)

spset(3, 3, 0, 0, 0, 0)

spofs(3, 120, 120+16, 0)

spset(4, 4, 0, 0, 0, 0)

spofs(4, 120+16, 120+16, 0)

mov=1

w=500

endif

w=w-1

if w<=0

mov2=1

endif

if mov2=1

spofs(1, 50, 50, 0)

spofs(2, 55, 100, 0)

spofs(3, 100, 100, 0)

spofs(4, 25, 25, 0)

move2=0

endif

I've realized I can hope to achieve ports of petit computer games directly to pc, and integrate the power of playbasic's processing to increase their frame rate, make them lag less, and among other things add stuff.. Unfortunately MML may not be possible in this context nor will the toned/beeps or most of PTCS sound resources, EXCEPT some of it's default sound effects and SOME of it's other things... though I may be able to port the beep command since it only plays sounds anyways we'll see. :/ BUT YEAH! I GOT SPOFS WORKING IN THE COMMAND LINE. Will post a video shortly. and compile with the current code.. but it's still limited and in EARLY versions. I'll post a screenshot for you all. The square smay not look like much but they are SPRITES ok ? They can be ANY image. They are 16X16.