I think I have both issues resolved!.. The random gen can work now!.. I have to first use load level additive. Then I have to run through and make instances of the rooms in the right spot. Then enable them. After that I go through the entire heiarchy and store each static game object. and then send each through the static batcher!… sound fun right! =P… Well now to get from my test bed back to the room manager.!! more later!
I am once again going to attempt to get my level generater working with Unity. It will just save SO much time…. I have 5 rooms pretty muvh done. I need to add AI to them and the event items… First I need the level generator running so that will be my project for now…More later!
(CLICK ON IMAGES TO ENLARGE)
I still have to go back through the rooms and set up the trigger-able events…. I want to get the story manager done first and I am REALLY hoping that my questions get answered on the random level gen…. I have questions on two forums. Now on to room 5 the final room before we get into the final stretch to a playable testable game. I want to get there and then start testing and evolving the game play with you all on this blog =)… More later!
I am on to room 4 now… I only have 1 after that for the first level to be constructed. I still want to create a room gen so I will look at one issue I thought of last night. That is after I have the assets ready to go. Then I will either get it running or build the level by hand. Aynwho more later… I am working nights again.. It is just hard to find time lately with select baseball and two kids playing baseball and a working wife also. =-)
We had a baseball tourney this weekend that was a complete rain out failure… =/…But it also ate all my time…However tonight I will be right back at it!…
This room has a central pier machine that is delivering a mysterious power source downstairs. The light travels from high above through the room down to below. Lighting the whole room and then letting it grow dark.. I expect some fun battles here =)..
Door in: With the light falling behind..
The energy delivery device:
Looking down the room while the light is not there =)…
Again a good amount of work left! That is for later tonight.
I am creating the prefab rooms I will create the levels with =).. this will allow a lot more creative freedom so the game really will be more fun I believe with a tad bit more work on my side =)..
I need to also write down the story from my head at least in an large arc and then get the smaller arcs started and hopefully integrate some ideas from the blog! =)…
More later! =)
I have officially dumped the room generator. It is still having lots of issues with unity. And I loose so much in being dynamic it just is not worth it. I now see I will have issues with memory that mobile simply will not like at all.
I will work off base rooms I hand make from even smaller parts and then will assemble levels using the rooms I make… I will get a better level of control at the loss of time creating levels. However, being hand made they will be much better at delivering story. I have wasted my last day on this. =)… Unity just does not like dynamically generating levels and it will have to be a trade off. I think all the better with unity I can create the levels a LOT faster! … so this weeks goal is to get 3 more rooms done and start level one with those rooms. =)
I am rebuilding the room manager to work with the solution I found. I have to load a level (room) ASYNC and then make sure it was disabled in its scene file. Then move it, have a frame elapse, then enable it. So a state machine will take care of that… I just have to rewire the loading and storing of rooms etc.. Anywho I am finally working… I needed to do this first!
I chopped the last of my fenders! =) Cheap easy mod and I love it… jeepers unit! =)
It looks like my level gen is going to work!!!… It is batching AND the light-maps are loading. See the shot below..I am excited now.. I can now do all the fun stuff to have a different experience every time you enter a level =)… good stuff!
I got some good work time last night I will try to get some info up here during the day.. The day job has finally let up a little!
Load level additive with a disabled map seems to be the key. However, I will need more testing. I just made a simple script to test. The light maps worked as did everything else… So I will have to do a bit more testing but it did work… It also takes a frame to load so I will have to be creative in my room maker state machine….. So far so good for tonight though I am ready for bed =)… Long day at the day job… The good news is it seems I have a solution to accelerate the development by a TON!
More tomorrow. =)
Update: I am going to do more research on the auto level gen… It was my initial goal and would save a TON of time for me. Having the levels create themselves would save 8-12 weeks of level design… AND my random story generator would be way more fun to make my-side =) Off to the internets….
The ice room is complete! =)… I am going to go ahead and make some more rooms so I can make level one now =)..