Yeah, I get that. But maybe I'm ignorant, but is there an engine out there that forces Vulkan with no opengl or other renderers?
You're right, they could choose a different API. But Vulcan is more cross-platform and it makes sense to stick to one API across the board for the sake of consistency across devices.
Vulcan is also better for potato devices because it lowers CPU usage.
Vulkan reduces load on CPUs through the use of batching and other low-level optimizations, therefore reducing CPU workloads and leaving the CPU free to do more computation or rendering than would otherwise be possible.
The only reason not to use it is if the device doesn't support it. It's more or less the successor to OpenGL and I figure OpenGL will slowly fade away as people increasingly choose Vulkan instead.
Why does your Text Adventure game need Vulkan as its backend?
This at least is just down to people using game engines. There's no good reason to do it from scratch most of the time and it makes it automatically cross-platform.
Why is your 2D Pixel art game demo 2.75GB? (Yeah, I know Steam sometimes reports different sizes in the dialogue, but I have installed it and confirmed indeed, it does take up 2.75GB on the disk)
Voiced characters, high-def art and high bit rate soundtracks are increasingly common. Most of the time it's not really pixel art, it's emulating the pixel art look and the resolution is definitely higher. There's no reason to limit ourselves to 8-bit color, 32x32 (or smaller) sprites and chip tunes unless we're going all on the retro aesthetic.
They go after anything if it gets popular enough or asks for money. It's not that they allow it, it's that there are so many that they can't keep up. So they pick and choose where to spend those limited resources.
There's the soft approach, you can suggest rule changes to the whole team.
Require unit and integration tests with a tool like SonarQube enforcing test coverage %. This will hopefully catch some of those issues early.
Suggest that the master, release and development branches be protected so people can't bypass rules.
The in-between step would be get the team lead on board with those changes above in a 1-on-1. But again, frame it as team wide rules and you're suggesting it because those are the standards you're used to.
The nuclear option is to go above his head and see if management can coax the team into using these best practices or confront the team lead on the team's behalf.
How is the main menu loading that scene? We need to see actual code. There's nothing "wrong" with the approach, it's about reproducing what happens when you click the button and load a level and we need more info to do that.
To be fair to him, he isn't spamming the sub. He's doing 1 post per day and each was in a different sub. You just happen to be subscribed to the ones he decided to post in. His last post here was 4 days ago.
It depends. Not all applications rely on the OS fonts, they can bundle their own for exactly that reason. If it's a messenger application or something that uses emojis very heavily it will often implement its own. Windows unfortunately only updates that sort of thing during the major feature updates that happen once per year and bump up the OS version.
I know all this because I worked on a messenger-like app and cross-platform compatibility means you have to take matters into your own hands.
Emojis have been part of standard fonts for some time now. They are not a separate implementation. This should work practically anywhere you can type letters unless the developer went out of their way to stop it or override the behaviour (e.g. custom emojis).
//ServiceLocator (via autoload)
private services = {};
func register(service):
services[service.get_class()] = service
func get(class_name):
return services[class_name]
// UiManagementService (this should be a node in your main scene)
extends Node
@export parentUiNode : Node
void _enter_tree():
ServiceLocator.register(self)
// do stuff with parentUiNode
//In any other script....
private UiManagementService uiManagementService
void _ready():
uiManagementService = ServiceLocator.get("UiManagementService")
Using signals is fine. You're just relying on them a little too much.
But the answer is "services" and the service locator pattern. You have a UiManagementService that knows all about the UI nodes that you can call from anywhere.
All you need is a Dictionary<string,object> in a global autoload script called ServiceLocator with the class name as the key and the service object as the value.
//Service locator (via autoload)
private Dictionary<string,object> services;
func register(service):
services[service.get_class()] = service
func get(class_name):
return services[class_name]
//in UiManagementService (this should be a node in your main scene)
extends Node
@export parentUiNode : Node
void _enter_tree():
ServiceLocator.register(this);
// do stuff with parentUiNode
//In any other script....
private UiManagementService uiManagementService
void _ready():
uiManagementService = ServiceLocator.get("UiManagementService")
This is what you would use services for e.g. A prefab factory or object pool. Services are a step below global scripts in that you can depend on them to exist. But because they are part of the scene you can hook a bunch of prefabs and other things via @export.
You're right, they could choose a different API. But Vulcan is more cross-platform and it makes sense to stick to one API across the board for the sake of consistency across devices.
Vulcan is also better for potato devices because it lowers CPU usage.
The only reason not to use it is if the device doesn't support it. It's more or less the successor to OpenGL and I figure OpenGL will slowly fade away as people increasingly choose Vulkan instead.
This at least is just down to people using game engines. There's no good reason to do it from scratch most of the time and it makes it automatically cross-platform.
Voiced characters, high-def art and high bit rate soundtracks are increasingly common. Most of the time it's not really pixel art, it's emulating the pixel art look and the resolution is definitely higher. There's no reason to limit ourselves to 8-bit color, 32x32 (or smaller) sprites and chip tunes unless we're going all on the retro aesthetic.
I see this problem with many FOSS platforms. They are incredibly averse to gathering stats or moderating. It will likely never happen.
They go after anything if it gets popular enough or asks for money. It's not that they allow it, it's that there are so many that they can't keep up. So they pick and choose where to spend those limited resources.
Godot Project apk Causing Black Screen in Android
Maybe that's the reason?
The point is to not single anyone out. So you suggest an improvement in best practices across the board and solve the issue that way.
There's the soft approach, you can suggest rule changes to the whole team.
The in-between step would be get the team lead on board with those changes above in a 1-on-1. But again, frame it as team wide rules and you're suggesting it because those are the standards you're used to.
The nuclear option is to go above his head and see if management can coax the team into using these best practices or confront the team lead on the team's behalf.
I think you can fix it by creating a new intermiiary variable.
How is the main menu loading that scene? We need to see actual code. There's nothing "wrong" with the approach, it's about reproducing what happens when you click the button and load a level and we need more info to do that.
How is your game loading the levels? All our answers are assuming that you are reloading the entire scene.
However, if what you're actually doing is loading in a child scene while the main scene persists forever then you need to use a different approach.
Add a field to your JSON that contains the file path of the scene.
Then when you load you have to load the scene before you do anything else.
I'm guessing the size is the issue? I would just break it up into multiple sprite sheets.
FWIW I never touch the voting arrows.
He's not doing anything wrong by cross-posting to different communities. He'd be well within the rules to post to all 3 subs in 1 day.
Your front page isn't his problem.
To be fair to him, he isn't spamming the sub. He's doing 1 post per day and each was in a different sub. You just happen to be subscribed to the ones he decided to post in. His last post here was 4 days ago.
It depends. Not all applications rely on the OS fonts, they can bundle their own for exactly that reason. If it's a messenger application or something that uses emojis very heavily it will often implement its own. Windows unfortunately only updates that sort of thing during the major feature updates that happen once per year and bump up the OS version.
I know all this because I worked on a messenger-like app and cross-platform compatibility means you have to take matters into your own hands.
Emojis have been part of standard fonts for some time now. They are not a separate implementation. This should work practically anywhere you can type letters unless the developer went out of their way to stop it or override the behaviour (e.g. custom emojis).
No, fan games generally aren't legal. I know of only 1 exception (Touhou) where the IP holders give explicit permission.
Try
Booleaninstead which allows nullable types.I think you can do something like....
They are different variable types and will never be equal. You have to cast them both to booleans first before comparing.
When you want to wire in things via
@export, which autoload scripts cannot do or if being constructed after autoloaded scripts is useful in some way.Also, since it's just an object in a dictionary a service does not need to be a Node. You can add regular objects to it.
See also Service Locator.
Using signals is fine. You're just relying on them a little too much.
But the answer is "services" and the service locator pattern. You have a UiManagementService that knows all about the UI nodes that you can call from anywhere.
All you need is a
Dictionary<string,object>in a global autoload script calledServiceLocatorwith the class name as the key and the service object as the value.Now you can access UI functions from anywhere.
You might be right, I primarily use C#.
This is what you would use services for e.g. A prefab factory or object pool. Services are a step below global scripts in that you can depend on them to exist. But because they are part of the scene you can hook a bunch of prefabs and other things via
@export.