mirror of
https://github.com/Relintai/gdnative_python_sample.git
synced 2024-11-14 10:27:27 +01:00
24 lines
463 B
Python
24 lines
463 B
Python
from pandemonium import exposed, export
|
|
from pandemonium import *
|
|
|
|
|
|
@exposed
|
|
class TestSprite(Sprite):
|
|
|
|
# member variables here, example:
|
|
#a = export(int)
|
|
#b = export(str, default='foo')
|
|
|
|
adelta = 0.0
|
|
|
|
def _ready(self):
|
|
"""
|
|
Called every time the node is added to the scene.
|
|
Initialization here.
|
|
"""
|
|
pass
|
|
|
|
def _process(self, delta):
|
|
self.adelta += delta * 10
|
|
self.position = Vector2(PMath.sin(self.adelta) * 40, PMath.cos(self.adelta) * 40)
|