![]() |
Level Loader
1 Attachment(s)
Made this little function that loads a level into an object so everything can be accessible. I hope this will encourage people to get into level editors more, perhaps, or just make it easier for those that are. I've attached the class folder(which is named as it should be named a class).
It works like this: PHP Code:
PHP Code:
Then you can simply echo the information like so... PHP Code:
PHP Code:
PHP Code:
Here are a list of accessible variables... PHP Code:
> a savelevel function, for saving a level to NW format. > a tiles(x,y,z) which will return the tile from coordinates x,y in layer z, from the tiles returned in my function. > loading baddies? I don't quite know if I want to do this, but if people demand it I will add it. Please let me know if you encounter any bugs. |
Nice work man :)
|
Great job :)
|
Very nice !
|
Very nice!
Baddies aren't needed, in my opinion, but your other planned things look nice. |
| All times are GMT +2. The time now is 12:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.