Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Copyright (C) The Holy Ghost 2017
- ###This program is released under the GPL 3.0 and artistic license 2.0.
- use Box;
- unit module Sprite;
- class Sprite is export {
- has $.box;
- method BUILD($x, $y, $w, $h) {
- .box = Box($x,$y,$w,$h);
- }
- method draw() {
- }
- method update() {
- }
- }
- second file :
- ### Copyright (C) The Holy Ghost 2017
- ###This program is released under the GPL 3.0 and artistic license 2.0.
- use Sprite;
- unit module Enemy;
- class Enemy is Sprite {
- submethod BUILD() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement