123456789101112131415161718192021222324252627282930313233343536 |
- # main world
- struct world_main : dd_world {
- # test sprite
- struct dd_sprite my_sprite;
- # init sprite
- override void init() {
- # first sprite is at the top
- this.my_sprite.x = 100;
- this.my_sprite.y = 100;
- this.my_sprite.load("dd_logo.png");
- };
- # update sprite's position
- override void update() {
- myfunc2(x, z);
- }; # update
- # draw sprite
- override void draw() {
- this.my_sprite.draw();
- };
- void myfunc(int z, int b) {
- };
- }; # world_main
- void myfunc2(int v, int y) {};
|