Probably this one will work, it is used with cocos2d, but i think it will work here as well.
http://slick.cokeandcode.com/demos/hiero.jnlp
Cheers,
Jespar.
http://slick.cokeandcode.com/demos/hiero.jnlp
Cheers,
Jespar.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
// PROTOTYPE SOME FUNCTIONS AND PROPERTYS //
PROTOTYPE sInit: x, y, filename$
PROTOTYPE sShow:
TYPE TPlayer
x
y
spriteid
Init AS sInit = InitPlayer
Show AS sShow = ShowPlayer
ENDTYPE
// INIT TPLAYER / GAME LOADING ETC //
GLOBAL player AS TPlayer
player.Init(0,0,"Media/grossini.png")
// MAIN LOOP //
WHILE TRUE
player.x = 0
player.y = 100
player.Show()
SHOWSCREEN
WEND
// END MAINLOOP //
// PROTOTYPE FUNCTIONS / METHODS //
FUNCTION InitPlayer: px, py, filename$
sprnum% = GENSPRITE()
LOADSPRITE filename$,sprnum%
player.spriteid = sprnum%
ENDFUNCTION // INITPLAYER
FUNCTION ShowPlayer:
DRAWSPRITE [ thisobject.spriteid],[thisobject.x],[thisobject.y]
ENDFUNCTION