Advertisement
Guest User

Untitled

a guest
Nov 8th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ### Copyright (C) The Holy Ghost 2017
  2. ###This program is released under the GPL 3.0 and artistic license 2.0.
  3.  
  4. use Box;
  5.  
  6. unit module Sprite;
  7.  
  8. class Sprite is export {
  9. has $.box;
  10.  
  11. method BUILD($x, $y, $w, $h) {
  12. .box = Box($x,$y,$w,$h);
  13. }
  14.  
  15. method draw() {
  16. }
  17.  
  18. method update() {
  19. }
  20.  
  21. }
  22.  
  23. second file :
  24. ### Copyright (C) The Holy Ghost 2017
  25. ###This program is released under the GPL 3.0 and artistic license 2.0.
  26.  
  27. use Sprite;
  28.  
  29. unit module Enemy;
  30.  
  31. class Enemy is Sprite {
  32.  
  33. submethod BUILD() {
  34.  
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement