This is just my worklog. It summarizes what I've done. It's not complete as I often leave things out, but this gives you an idea of what I've been working on in the last week since the last update. There will be more things I'll add to the game and update to make it better.
Currently I am in the mids of learning marketing so more people know about this game. I'll do a mixture of both for now on.
You can expect new content in a month. Mainly I'll rework the enemy camps a bit, and create a new way to get upgrades.
Well here is my worklog from the last 7 days:
- nerf - ssd technology buffs the sniper. I nerfed how much it buffs the animation speed as it looked unnatural. It was also stronger than intended. Essentially a no brainer to pick (0.5 = 50% faster)
0.5 -> 0.3 => since its applied twice its 1 -> 0.6
-> I did the same for hte knight 0.5 -> 0.3 => 1 -> 0.6 ALSO the base animationspeed of hte knight was reduced by 0.25
raised prices for character / weapon unlocking. I realized that ya'll get a lot more points that I expected. I don't want it to be difficult to unlock new things, but you shouldn't just get them instantly after playing one level
light inside the base at night got worked over a bit. Ambience beauty raised by +22%
new versions of the game will no more delete save files. This was an old relic made for testing that I forgot to delete. Also it didn't delete my save files somehow? Big mystery to me how mine didn't get deleted. Maybe I didnt notice? Anyways, big thank you to MK for reporting that bug to me!
moved UI around to have space for the minimap -> the score is no more shown. In the future I will add an option to activate it so people who want to get a highscore, can see their score while they are playing the game. But thats for later when the highscore is saved and when other people's scores are shown so you can compete for rank 1
minimap added. Will work over it over time with feedback from ya'll
the player's sniper weapon deals more damage to trees and trees have less health
buff - The scrap costs have been raised, therefore the collector should get more scrap for each kill now
changed default window mode to borderless fullscreen
bugfix - player has a light that should be on when outside at night. It now activates whenever the player is outside the base at night, before it somehow didnt automatically do it. idk why but I gotta code these things into the game it seems
made the "look at me" animation of the tutorial more visible by making it shorter, bigger and have more opacity
adjusted tutorial texts slightly to be easier to understand
renamed "Follow" to "Move". The stance is there to make robots only follow you, not attack, repair, or else. But people assume "follow" is a command that actively makes robots nearby follow you. The rename hopefully makes this clearer
guns have slightly less spray, making it a bit easier to aim at enemies
time is frozen now during second tutorial start. This way you can figure out what to do without loosing time. Since the UI is looking different I also switched some stuff around but that doesn't really make any difference for the player so wont mention everytying here to keep it "short"
made numbers in the upgrade UI bigger so its easier to read/see which level the current upgrade is on
-> also with the UI changes I gave the Upgrade Icons prime time real estate at the bottom of the screen. Therefore they are also bigger now, this is for the same reason. Make the upgrades more readable
changed "select character" to "select commander" because it sounds cooler
tutorial changes here and there so people dont ignore things they are supposed to do. E.g. tower to build menu can't be accessed anymore once a robot is in. That way people can't accidentally put them out again and mess up the tutorial. Same goes for the library. You can get them out once the first upgrade is picked up. Which is 5s after putting a robot in
to open the UI there is a button shown which is needed to be pressed but now it also says that pressing the button opens something. Once the UI is open, it tells you that the same input closes the UI. Also adjusted the position that these are shown, so that the UI that is opened, wont overlap with it...most of the time! It depends on the player and I wont write code just to make it never overlap, thats way to much work for no payoff
When a tower is paid for and a robot is inserted, the "open" text disappears
made level 1 tutorial kick you into level2 instead of the main menu
particle effects of robots being produced is global
move sound is now stopped when the game ends
changed bg of tech icons to be the dark ftl blue full opacity
extra info UI is now bigger again for the game scene, but main menu is the same. That way the text is centered on the bigger extra info blue image which is needed for the options
-> problem with this is that the pause menu's text is now no more centered correctly
-> We want that one to have its own size OR just have the extra space always active
-> actually there is code that just isnt called at start, that makes it alligned correctly. The easier solution would have been to make the text area either 2 different ones which we switch between when more space is needed
OR we just have 1 that is actually bigger than shown. When the text is to big, it automatically moves up to give more space for the text to show. Its top left bound text.
OR we have it just be in place unless a menu / UI needs it ot be bigger. Like the options or Tech UI. But to be honest, it would be best practice to give them their own, since that way we can design them for that exact menu/ui without limitations
removed the outdated tv effect options from the UI as an option
merged the health UI with the character image -> its now the BG of the character image
bugfix - scrapyards enemies are not retreating when player teleports and damages them meanwhile
-> robots now retreat when the player teleports and no more get into combat state when the player is in a different area
made the tutorial manager subscribe to the playerTeleported event -> no need anymore to constantly and directly tell the tutorialManager that hte player teleported
for some reason the livetime of enemy projectiles was 8s. Made it 2.5s, this should be enough to always reach teh player but no more so much that htey fly to the players base if shot at hte right angle
robots no more collide with trees when they are going to dummy's to attack
work over huge dummy enemy particle explosion. Looks weird and to slow and too big
"repair me" no more shown in tutorial when gate broken -> placement was wrong since I've changed the parents placement type
Hover over upgrade items still makes them selected!
-> When using a controller, it doesnt do that!
-> Different UI OR different functionality by changing the value of the "React to hover" thingy.
-> When changing the setting, make sure to have the hoverOff be called too!
=> Actually the best way to change it, is to make it that a non selected object, can only be selected with a click! This way people who want to know what other techs do, just figure it out by clicking. Thats not the best solution usually, but it gets rid of the controller bug which is terrible! And it gets rid of unintuitive keyboard input.
-> People can now select by clicking
-> apparently the order of things is that first on select and then the button function is called therefore we have to create a counter that takes that into consideration
-> That didnt work since the order isnt hte problem, its actually that on click down, the button gets selected. Then on click up the function gets called. To solve this I set a bool to true, to ignore the function call, if the button was selected by the mouse click and wasn't selected before
-> The first click on an upgrade to choose from is only selecting now as one would expect
-> The controller though has the same way to "click" on a button somehow ... meaning you need two clicks with the controller now to pick an upgrade ...
-> to fix this I used "OnPointerClick" but unfortunately its also happening after "OnSelect" ... unity hates me. Sooooo (I really wonder how you actually supposed to do this normally...) to avoid this I set a bool when "OnSelect" happens. After a frame it gets actually called. This way "OnPointerClick" happens before "OnSelect" and every Input user is happy I hope
-> To recap this all only happened because unity decided to always have the mouse hover over the center button. But only at seemingly random times. Since I coudlnt reproduce it I had to find another fix. But hte original issue, having hte mouse center for no reason is still a mystery ... I tried moving it and other things, but as long as the actual mouse wasn't moved, the game didnt care. It would still keep hovering over teh center button. I think the fix I found is way to much work. Another possible fix could have been to put an invis image, that denies hovering, ontop of the center button. In the end there must be a reason why I had this bug in this game and not in others. But when I disabled anything that uses the mouse/cursor, it still happened. Way to weird
-> Yeah doing that didnt work as everything is called before the freaking onPointClick so I had to (timescale is 0) without invoke but instead with counters, have the function calls be delayed by 5 frames. WHy 5? Idk hwy not. At this point whats the meaning of life anymore?
The current system delays the input that picks the tech, or selects it by 5 frames. Some insane people might notice. After those 5 frames, the code executes "normally". It selects the button first, then it uses the button IF the button isnt locked. Its locked when the left mouse button was used to select an unselected button.
-> it still doesnt work. Sb kill unity for me please. THank you
-> I give up. I prefer the controller bug as most people will play this with a mouse and keyboard. Even if htey use a controller, the'll have the mouse next ot them to get rid of the mouse hover bug by themselfs. Ill try to get rid of it too but for now, its in there ... idk how unity can be so frustrating sometimes. This is so basic but just doesnt work as it should.
To recap, unity sucks, the bug of the middle tech always beeing hovered sometimes when using a controller will be back, mouse hovering is back so people can just hover over an upgrade/tech to see what it does. TL;DR mouse back to normal, controller sometimes sucks
======> Yeah I dont like that, so screw it. I made the UI change its properties on runtime whenever you change the input. So currently there is no hover WHEN the player uses a controller. WHEN they use a mouse, the hovering is back.
EnemyManager used to delete the last night list of enemies. Now we instead copy them over to the next wave -> IF you ignore enemies in night 1, they are still there in night 2! Ignoring enemies can be done now, but it has the obvious drawback that the next night they are there additionally and they constantly damage your gates or possibly even the hearth
Since teh cutout character art in hte health UI is now having the same bg, all characters should use a hue that fits that bg color
