mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-10-23 13:30:05 +00:00
changed class -> proto
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Cosmo
|
||||
Cosmo is a portable scripting language loosely based off of Lua. Cosmo easily allows the user to extend the language through the use of Proto objects, which describe the behavior of Objects. For example the following is a simple Vector class which describes behavior for a Vector-like object.
|
||||
Cosmo is a portable scripting language loosely based off of Lua. Cosmo easily allows the user to extend the language through the use of Proto objects, which describe the behavior of Objects. For example the following is a simple Vector Proto which describes behavior for a Vector-like object.
|
||||
|
||||
```
|
||||
class Vector
|
||||
proto Vector
|
||||
function __init(self)
|
||||
self.vector = {}
|
||||
self.x = 0
|
||||
|
||||
Reference in New Issue
Block a user