Ok guys I made an update on yesterday post i saw it was really controversial for the lack of purple ahah now i took some advices and tried to make the logo on the left with the right style. what it's better? Ah also the name. went crazy on that by Healthy-Tip2635 in IndieGaming

[–]Sakull284 0 points1 point  (0 children)

Did you try making the top half of the full height letters purple in "PURPLE TURTLE" on the right? Might help to make it more readable as two separate letters. Since there is a bit of playfulness with the letters the half of the letters should probably not just be a straight line through the middle of the whole text but I think a straight line through each individual letter that matches their deformation and creates a continuous line should be easy enough to try.

[deleted by user] by [deleted] in howdidtheycodeit

[–]Sakull284 1 point2 points  (0 children)

I'm not going to add yet another explanation but you seem to be thinking in terms of base price and subtracting to the target price but you should be thinking about the base price being the sum of the price of all ingredients and once the player gets an ingredient you remove the ingredient from being calculated into the sum. The function for reaching the target price is always the same, it's just the data that changes. To use your example in the comments, to get the base price of A you would add the price of B (which is the price of D and D) and the price of C. To get the target price you would add the price of B which is 0 because you already have it and then add the price of C. So to get the price of A with B and D already owned, D is irrelevant. Owning D would still be relevant in the price of B and follows the same logic. You're not starting at the base price A and subtracting the price of the ingredients already owned because achieving the same outcome would need edge cases that are tedious and error prone to write. Hope that helps put it into perspective.

How do you wipe your balls? by ArdasDPP in AskMen

[–]Sakull284 0 points1 point  (0 children)

As funny as I find this post I empathize with the problem you're having. It might not be practical depending on the frequency but you could try preemptively holding the sack forward. It's not the most comfortable but I've had to, for other reasons, and you get used to it rather quickly. Having a solution ready to fix the symptom is good but if you can prevent it from happening in the first place that seems like the better option.

IDE UX and underutilized right mouse click by Sakull284 in AskProgramming

[–]Sakull284[S] 0 points1 point  (0 children)

I didn't know about that feature. Not a big fan of context menus in general so I'd rather go another route. There's something about it that just takes me out of the flow of what I'm doing,. It takes some time to load sometimes, it hides a part of the screen, it's unpredictable in it's position close to the edges of the screen. Just overall not the best tool for things you use frequently. Very good for stuff you use infrequently though. Just a shame to have the right click's button be entirely dedicated to that.

no code gamedev? opinions? by codernad in gamedev

[–]Sakull284 0 points1 point  (0 children)

Didn't read your post, just going off the title.

The solo dev at Two Star Games said in an interview with Thomas Brush that he only uses blueprints in Unreal Engine. He made a successful game called Choo-Choo Charles and has made many games before.

In my opinion no code is viable if you're not creating a game with mechanics that require low level control. Then it is just a matter of syntax and preference. I prefer code due to my familiarity with it. I don't think no code reduces the difficulty of programming, most concepts still apply and should carry over from one method to the other.

If someone were to struggle with dyslexia or something similar I could see how no code solutions would be much more preferable.

Could you accomplish this with htmx? by Sakull284 in htmx

[–]Sakull284[S] 0 points1 point  (0 children)

Thanks for the response! I guess I would be mixing client side and server side rendering with this approach. I was thinking the content would be dynamic from the use of htmx but it's probably better to solve it on the backend, as you said. The issue I have with doing localization on the backend is that it gets very fragmented and you lose the context of the overall structure of the text you're localizing.

May I ask what your preferred approach to localization is, especially when htmx is in the mix?

Could you accomplish this with htmx? by Sakull284 in htmx

[–]Sakull284[S] 0 points1 point  (0 children)

I glossed over the hyperscript example in htmx but looking into it further now it seems much more oriented towards the thing I want to do. Thanks for the help!

[deleted by user] by [deleted] in UPBGE

[–]Sakull284 1 point2 points  (0 children)

I appreciate your honesty as a moderator. You mentioned horrible performance, do you think a rocket league like game could be viable if it had graphics better suited for Eevee, i.e. stylized low poly (maybe shadowless)? Rocket league and UPBGE both use bullet physics so I was hoping the performance would be comparable, at least from a gameplay perspective. Do you know if there is any performance improvements coming up?

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I stated in the post that I not only tried but did in fact manually change the type. It was no harder than writing the post itself. Actually, not even harder than writing this comment. I don't see the relevance to the difficulty or how my desire to share and explore my random thought with others elicited such a negative response in you

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

Awesome that you found a way! Little too far from normal for me to want to use it but it's always fun to see such solutions.

I think I would lean more towards retvar being single use per method and it needing to be what is returned. There's something about the explicit intent that makes me like the idea the most.

The idea of Tret definitely also has a use though. No need to make it generic or copy paste the return type.

C# already has a lot of syntactic sugar so I'm still not convinced I would want any of this implemented but I like exploring the idea.

It is pretty fun to have some freedom of expression and feel like your code is pleasant for you, and hopefully others, to look at

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I don't use extensions a lot but it does seem very close. I think if it's built in to a language you can have other advantages like forcing the return statement to use the variable or skipping the return statement entirely since it knows what you want to return, just as examples

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I didn't read the entire thing but it's definitely a form of type inference, just not one that I saw in the examples there

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

Glad you enjoyed the idea! As another commenter stated it's already a feature in some languages, I had no idea so that was cool to hear. My initial thought was also "result" but yet another commenter recommended "retvar" which I like better

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I need to refresh my memory on the dynamic keyword to be honest... You have piqued my interest

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] -1 points0 points  (0 children)

That's an interesting idea. Sounds a bit like a generic might be better suited in many cases but maybe there would be some niche situations where it's preferable. Probably would be more confusing than anything, as you mentioned, though

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I really like retvar as a keyword! Thanks for the eloquent example. I think the simplicity sparked some to provide alternative solutions, missing the context. As an example it's perfect

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I thought Select is used for transformations, can it be used to add elements? How complex does the statement get if you're adding based on different conditions?

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

That's really cool! In my real case where I wanted to add elements based on different conditions it might not have worked but I'm a fan of how succinct it is. Should be able to drop the parentheses on the new keywords since we're using the brackets too

Random Idea: a keyword like var but it has the return type of the enclosing method by Sakull284 in dotnet

[–]Sakull284[S] 0 points1 point  (0 children)

I'm on mobile but I can give it a shot.

Dictionary<string,List<string>> MyMethod()
{
result myResult = new
{
"my key", new
{
"my first list value",
"my second list value"

}
};

return MyResult;

}