Shopping Basket
Your Basket is Empty
Quantity:
Subtotal
Taxes
Delivery
Total
There was an error with PayPalClick here to try again
CelebrateThank you for your business!You should receive an order confirmation from Paypal shortly.Exit Shopping Basket

Blog

January 21 2019

Posted on 23 February, 2019 at 10:10

Today, Ive completed the base of the program state engine. This script is designed to not get destroyed on scene change and controls how all the scenes change. Depending on the GameType enum variable, determines which level is loaded. all play buttons set the GameType to which game the user clicked and then saves the data to disk with 2 variables, a number for build index number and a string for the GameType as you cannot save anything but a string int or float by default. Then the function attached to the button, calls the level load function and auto loads loading scene. This way in the update method (that checks every frame) checks what GameType is set to via the two variables, if scene is the loading scene by the build index number (always constant), first it checks what the string is set too,and if the string changes on a frame this is a signal for the script to change state, whatever the string is set to (always equals one of the GameTypes varables) sets the state and loads the levelInt that was just set by the button seconds before, and load that build index number scene. if the game is set to none, it always auto loads Scene "1" [home scene].

*Note: in the build index though, this really is scene 6 as mentioned in a previous post

-》 the order of scenes completed

 

if a scene is locked it sets it to load home scene at this time. I may change this soon to display error message instead of load a scene, as the user may want to pick another game and not have to loop back like current.

 

Reasons a level would be locked:

- paid for game (not FreeToPlay).

- Game isn't complete or ready.

- Game scene does't exist in build settings.

 

when in editor mode (building game in unity) all scenes are unlocked, only locks scenes on test builds and final releases.

 

set up 4 music players instead of 3. loading scene now has its own player and game music gets turned off on loading scene only.

 

-Music player on first 4 scenes loop same song set in the play list as first 4 songs, any other scene the list starts at 5 (if it gets to the end of the play list) otherwise it contunues to play what ever song is currently set in the musicPlayer, and auto change to next song in list when song clip ends.

 

-Loading player has a list of random Erie music that's sort of soft and quiet like ambient noise and randomly picks a number between 0 and list count and plays that clip number out of the array list, and loops it until scene loads. All clips are 3 min long and should never loop as loading should only take seconds.

 

-Sfx player is always active and not on loop, this way we can use it for sounds played by UI aka scene buttons and actions,

 

-Ambient noise player, disabled everywhere except options panel, and actual game scenes (not menu's.)

 

Script on start of each instance (1 time at start of game as it doesn't destroy) auto fills the play lists for each player from a saved resource asset. these assets were created so a developer (aka me ) can make an editor window for me to change and edit the song lists when working in unity.

 

Since I'll be making my own editor window I can make it do anything I want really, I can auto fill the lists from folders in resources I make and set up, I can rename song file names, I can rearrange the lists alphabetically a-z or z-a, song length longest to shortest or shortest to longest or manually set list to a specific order, make a play button to play the songs in the editor window to see if i like it and a delete button to remove it from list if i dont.

 

Goals for tomorrow:

Hoping to get google play login working, to test this ill have to build a test build and put it on web and try it out. if it works ill add a link in a new post. anything else is a bonus extra :).

 

That's all for now,

 

Thamas bell @ ZG

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

2925 Comments

Reply golden goose sneakers
13:49 on 9 December, 2022 
Thanks so much for providing individuals with such a pleasant possiblity to read articles and blog posts from this website. It's usually so terrific and full of a great time for me and my office co-workers to search the blog on the least three times in one week to see the new guidance you will have. Of course, we're certainly fascinated with your extraordinary strategies you give. Some 4 points in this post are in truth the most impressive I've ever had.
golden goose sneakers http://www.goldengooseonsale.com
Reply supreme clothing
13:48 on 9 December, 2022 
I definitely wanted to write a quick note to appreciate you for the lovely techniques you are giving out at this site. My prolonged internet search has finally been compensated with incredibly good insight to talk about with my colleagues. I would express that many of us website visitors are quite fortunate to be in a useful place with very many outstanding people with very helpful basics. I feel somewhat privileged to have used your entire weblog and look forward to tons of more amazing times reading here. Thanks once more for all the details.
supreme clothing http://www.supremeshoodie.com
Reply off white
13:47 on 9 December, 2022 
I just wanted to compose a simple remark so as to appreciate you for those fabulous pointers you are giving on this site. My time-consuming internet research has at the end of the day been recognized with high-quality strategies to go over with my contacts. I 'd point out that we readers are extremely fortunate to be in a fabulous website with very many brilliant professionals with helpful secrets. I feel pretty happy to have discovered the weblog and look forward to really more amazing minutes reading here. Thanks a lot once more for all the details.
off white http://www.offwhiteoutlet.us.org
Reply YonduM
20:24 on 8 December, 2022 
buy citalopram 40 mg
Reply Miclleple
8:09 on 8 December, 2022 
arimidex pills buy
Reply bape hoodie
4:41 on 8 December, 2022 
My husband and i ended up being so joyous Albert could conclude his inquiry through the entire ideas he discovered from your own weblog. It is now and again perplexing to just continually be handing out points some people may have been trying to sell. And we also take into account we have the writer to give thanks to for that. The specific explanations you've made, the simple website menu, the relationships you will help promote - it is many astounding, and it is helping our son and the family reckon that this situation is entertaining, which is tremendously mandatory. Many thanks for everything!
bape hoodie http://www.bapesonline.com
Reply kyrie shoes
4:40 on 8 December, 2022 
I am just commenting to let you know of the amazing discovery my daughter developed reading through your blog. She realized a wide variety of issues, not to mention what it's like to possess an excellent giving mood to let men and women very easily understand selected advanced matters. You undoubtedly exceeded our expected results. Many thanks for supplying the powerful, healthy, explanatory and even easy thoughts on your topic to Mary.
kyrie shoes http://www.kyrie9.com
Reply golden goose sneakers
3:46 on 8 December, 2022 
I as well as my pals were going through the excellent information on the website and then suddenly I had an awful suspicion I never thanked the site owner for those secrets. Most of the young men were so passionate to see them and have in effect in fact been enjoying those things. Appreciate your genuinely very accommodating and also for going for this kind of notable things most people are really needing to understand about. My very own sincere regret for not expressing gratitude to you sooner.
golden goose sneakers http://www.golden-goose.us
Reply westbrook shoes
3:46 on 8 December, 2022 
Needed to post you that bit of remark to help say thanks once again just for the wonderful principles you've provided on this site. It is so incredibly open-handed with you to make unreservedly all that many people could possibly have supplied for an e book to generate some dough on their own, specifically now that you might have tried it in case you considered necessary. These good ideas as well worked to be the good way to be certain that other people online have the same interest really like mine to know a good deal more in regard to this matter. I am sure there are thousands of more pleasant occasions up front for those who browse through your blog.
westbrook shoes http://www.russellwestbrookshoes.us
Reply kyrie 5 spongebob
22:00 on 6 December, 2022 
I happen to be commenting to let you know of the helpful discovery our child went through checking your web site. She mastered such a lot of pieces, which include what it's like to possess an incredible giving heart to make certain people really easily master a number of complicated matters. You really surpassed our expected results. I appreciate you for distributing these useful, healthy, revealing and as well as fun tips on your topic to Emily.
kyrie 5 spongebob http://www.kyrie5spongebob.us
Reply yeezy boost 350
21:09 on 6 December, 2022 
Thanks for your own work on this web page. Kate enjoys doing research and it is obvious why. We know all regarding the dynamic means you provide valuable solutions through your web site and in addition attract participation from other people on that area of interest and our own girl is without a doubt discovering a lot of things. Take pleasure in the rest of the year. You're the one carrying out a very good job.
yeezy boost 350 http://www.yeezy350boost.us.com
Reply adidas yeezy
21:08 on 6 December, 2022 
I want to voice my affection for your generosity giving support to individuals that must have help with that issue. Your special dedication to getting the solution around came to be exceedingly beneficial and have in every case empowered guys and women much like me to arrive at their dreams. Your entire helpful report signifies much to me and a whole lot more to my peers. Regards; from each one of us.
adidas yeezy http://www.adidasyeezyboost350.us.com
Reply EvaduM
14:02 on 6 December, 2022 
10 mg fluoxetine
Reply JudyduM
11:48 on 3 December, 2022 
allopurinol cost canada
Reply Yeezy Slides Moncler Outlet Moncler Jackets
23:56 on 30 November, 2022 
https://www.yeezyshoes.us.com/ Yeezy Shoes
https://www.yeezyshoes.us.com/ Yeezy
https://www.yeezyshoes.us.com/ Adidas Yeezy
https://www.yeezy-supply.net/ Yeezy Supply
https://www.yeezy-slidess.com/ Yeezy Slides
https://www.yeezyslides.shop/ Yeezy Slides
https://www.yeezyslides.store/ Yeezy Slides
https://www.yeezyslidess.org/ Yeezy Slides
https://www.yeezyslidess.net/ Yeezy Slides
https://www.yeezyslides.sale/ Yeezy Slides
https://www.louis-vuitton-outlet.us/ louis vuitton outlet
https://www.louboutins.us/ Louboutin
https://www.christian-louboutin-shoes.us/ Christian Louboutin Shoes
https://www.christian-louboutins.us/ Christian Louboutin
https://www.omegaswatches.net/ Omega Watches
https://www.omegaswatches.us/ Omega Watches
https://www.omega-watchess.us.com/ Omega Watches
https://www.yeezy-slidesus.us/ Yeezy Slides
https://www.yeezy-slides-us.us/ Yeezy Slides
https://www.yeezy-slidesus.com/ Yeezy Slides
https://www.yeezyslidesus.net/ Yeezy Slides
https://www.yeezy-slidess.com/ Yeezy Slides
https://www.yeezy-supply.net/ Yeezy Supply
https://www.nikesshoes.us/ Nike Shoes
https://www.nikeoutletuk.uk.com/ Nike UK
https://www.nikeoutletuk.uk.com/ Nike outlet
https://www.nike-s.us/ Nike
https://www.nikeoutlet-s.us.com/ Nike Outlet
https://www.nikeoutlet-store.us/ Nike Outlet
https://www.nikestore-s.us/ Nike Store
https://www.nikestore-s.us.com/ Nike Store
https://www.louissvuitton.de/ Louis Vuitton
https://www.louissvuitton.de/ Louis Vuitton Online Shop
https://www.adidasyeezysshoes.com/ Adidas Yeezy
https://www.adidasyeezysshoes.com/ Yeezy Shoes
https://www.adidas-yeezys.com/ Adidas Yeezy
https://www.yeezys-slides.com/ Yeezy Slides
https://www.yeezyssupply.us.com/ Yeezy Supply
https://www.goldengoosesneakerss.com/ Golden Goose
https://www.goldengoosesneakerss.com/ Golden Goose Sneakers
https://www.airjordans1.us/ Air Jordan 1
https://www.airjordans1.us/ Jordan 1
https://www.jordan-shoes.co/ Jordan Shoes
https://www.jordan1.co/ Jordan 1
https://www.airjordan1.co/ Air Jordan 1
https://www.airjordan1.co/ Jordan 1
https://www.raybansunglassess.com/ Ray Ban Sunglasses
https://www.raybansglasses.us.com/ Ray Ban Glasses
Reply bape
15:39 on 30 November, 2022 
That is the correct weblog for anybody who wants to seek out out about this topic. You realize a lot its almost exhausting to argue with you (not that I truly would need´┐ŻHaHa). You positively put a brand new spin on a topic thats been written about for years. Nice stuff, just nice!
bape http://www.bapehoodie.us
Reply golden goose
9:34 on 29 November, 2022 
very nice submit, i actually love this website, keep on it
golden goose http://www.goldengoose.us.org
Reply Curtispoere
7:53 on 29 November, 2022 
fildena 120 mg
Reply EyeduM
5:30 on 29 November, 2022 
clindamycin price south africa fluoxetine drug clopidogrel 300 mg tablet modafinil uk zoloft buy india
Reply AmyduM
5:29 on 27 November, 2022 
malegra 100 from india