Tobeash
Creating a level class that holds all the data for the game, should the data be private?
Hello, I am currently questioning the idea of encapsulating the level class of my project. What I am thinking is that, the level class will store data for all other classes and methods to use so, it make sense to make the data as assecible as possible by making it public so any other class or method can just access it and modify it by using something like level.data1, level.data2 and so on.
Am I thinking wrong about this? Is really the best decision to encapsulate the whole class and create endless getters and setters and other operations, seems like its just going to bloat the code up and make things less readable
5 replies
Best C# course for intermediate programmer to get employment?
I can solve leetcode problems with c# and have some awareness of mvvm and ppf and winforms as I did some basic projects with them but I would like to get up with current standarts in the language and what it is being used for to achieve employment coding with it as it seems like a cool comfortable language to code in
Looking for a course I could complete that would make me atractive for employment just so I can quickly jump in and do what is required of me, understanding and being able to use current industry trandarts
40 replies
❔ How to play music files from resources/relative paths in wpf c# ?
I have spend good 2 to 3 hours trying to get a sound file played from relative path, it just doesnt work no matter what I try, I have tried mediaplayer, later found on stackoverflow it doesnt work from relative path so i switched to sounplayer, I have tried like 20 different codes lines I dont understand how is this so hard, is there like no support for playing sound?
what i tried
not even once was there a sound, only thing that worked was absolute path straight from c, which i dont know how could i use that for making an app that isnt always going to be in the same place
11 replies