Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type item_base
- positionX as integer
- positionY as integer
- sprite as any ptr
- name as string
- end type
- type potion_type extends item_base
- health_val as integer
- str_val as integer
- end type
- type weapon_type extends item_base
- head_val as integer
- chest_val as integer
- end type
- dim potion as potion_type
- potion.name = "Beer"
- dim weapon as weapon_type
- weapon.name = "Broad sword"
- 'notice how they are different types, but they both have everything in the item_base type :)
- print potion.name
- print weapon.name
- sleep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement