diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-12 16:00:51 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-12 16:00:51 +0200 |
commit | 9af261cd204b999e6b2b5a44d5c5eb768f84c49d (patch) | |
tree | b5465cd344f01329c0d027b5345a23e15e1e2bc7 /not/World.lua | |
parent | 6c6e2fe6ec84ec57f6336fa9d6e4136c0e1c9513 (diff) | |
download | roflnauts-9af261cd204b999e6b2b5a44d5c5eb768f84c49d.zip roflnauts-9af261cd204b999e6b2b5a44d5c5eb768f84c49d.tar.gz roflnauts-9af261cd204b999e6b2b5a44d5c5eb768f84c49d.tar.bz2 |
Created Scene class
extended SceneManager a little bit to support multiple scenes
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/not/World.lua b/not/World.lua index 8108a8a..65ca59e 100644 --- a/not/World.lua +++ b/not/World.lua @@ -1,9 +1,7 @@ -require "not.Object" - --- `World` -- Used to manage physical world and everything inside it: clouds, platforms, nauts, background etc. -- TODO: Possibly move common parts of `World` and `Menu` to abstract class `Scene`. -World = Object:extends() +World = require "not.Scene":extends() World.world =--[[love.physics.newWorld]]nil World.Nauts =--[[{not.Hero}]]nil |