• What are you working on? v16
    5,004 replies, posted
[QUOTE=Staneh;29380698]Nevermind about all the algorithm stuff guys. It's just confusing you and me.[/QUOTE] An algorithm in a nutshell is a way to do something. For example, a good pathfinding algorithm would be A*.
... what just happened Did anyone else find the above ~10 posts really confusing?
[QUOTE=Staneh;29380698]Nevermind about all the algorithm stuff guys. It's just confusing you and me.[/QUOTE] Well an algorithm is just like a recipe, a set of instructions to get a job done that isn't specific to any programming language. Like, the algorithm for making a cup of tea would be: [code]Boil the kettle Put a tea bag in a cup If the kettle has boiled, pour it in the cup otherwise wait for a bit more Take the tea bag out after a bit of stirring Add milk and sugar[/code] There isn't any special notation or anything, it just has to make sense. There are always many algorithms you can choose from to solve a problem, and you want to choose the one that either is the fastest or uses up the least space (or both, preferably).
[img]http://www.fortfn.co.uk/images/PM/pm01.png[/img] I made a new box texture. Not sure if I like it or not, but I think it's better than the one we had before. The outer bit is transparent, and I am aware there's a gap between the sprite and the geometry. I'm planning to replace all our gameplay entities with this box, except change the middle colour and put a little symbol on it to represent what the entity is (so a little lightning bolt for battery, etc). Also what do you guys think about the header logo thing, keep it or bin it? Additionally, I can't seem to get SFML to give me a window with antialiasing - my graphics card seems to support it though. Any ideas?
I hate that most people compare Algorythmns to recipes, it's such an unncessary simplification.
[QUOTE=SEKCobra;29381029]I hate that most people compare Algorythmns to recipes, it's such an unncessary simplification.[/QUOTE] I wouldn't really call making tea a recipe, a recipe is something like baking a cake.
[QUOTE=thomasfn;29380986][img_thumb]http://www.fortfn.co.uk/images/PM/pm01.png[/img_thumb] I made a new box texture. Not sure if I like it or not, but I think it's better than the one we had before. The outer bit is transparent, and I am aware there's a gap between the sprite and the geometry. I'm planning to replace all our gameplay entities with this box, except change the middle colour and put a little symbol on it to represent what the entity is (so a little lightning bolt for battery, etc). Also what do you guys think about the header logo thing, keep it or bin it? Additionally, I can't seem to get SFML to give me a window with antialiasing - my graphics card seems to support it though. Any ideas?[/QUOTE] You setting the context to have AA? Also, you should let people pick the logo up and put it on the delete box if they don't like it. Same for the delete box, have another delete box under it so people can delete their delete ability.
Yea, but that's exactly what most people do, I know an asshat who actually teaches programming (even though he has no idea, but I guess those jobs are just too easy to get) and he always compares everything to cooking spaghetti.
[QUOTE=SEKCobra;29381029]I hate that most people compare Algorythmns to recipes, it's such an unncessary simplification.[/QUOTE] Pretty much what it is though. A set of instructions with parameters to achieve a specific outcome.
[QUOTE=thomasfn;29381045]I wouldn't really call making tea a recipe, a recipe is something like baking a cake.[/QUOTE] Can we settle for "step of instructions"? Edit: Okay then. :v:
We should all compare cooking to programming. Add two bytes of salt, shit it tastes funny, time to debug.
Who is with me if I say textfiles are not binary files?
[QUOTE=SEKCobra;29381139]Who is with me if I say textfiles are not binary files?[/QUOTE] They are, they just happen to be nicely editable by text editors
[QUOTE=NorthernGate;29381053]You setting the context to have AA? Also, you should let people pick the logo up and put it on the delete box if they don't like it. Same for the delete box, have another delete box under it so people can delete their delete ability.[/QUOTE] [code]wSettings = new WindowSettings(24, 8, (uint)settings.ReadInt("Video", "AntiAliasing", 0));[/code] That's the line that initialising my WindowSettings, the 3rd parameter is the AA parameter. I've debugged it, it's indeed being set to 2. When I check the window.Settings structure after the window was created, AA has set itself to 0 which means it couldn't get a context with AA. But it doesn't tell me why.
[QUOTE=SEKCobra;29381139]Who is with me if I say textfiles are not binary files?[/QUOTE] All files are binary files.
[QUOTE=SEKCobra;29381139]Who is with me if I say textfiles are not binary files?[/QUOTE] I think you're confusing files with formats.
[QUOTE=SEKCobra;29381139]Who is with me if I say textfiles are not binary files?[/QUOTE] Of course they are, ALL files are "binary files". All data on a disk (or in memory, on a flash drive ETC) is stored, at the most basic level, in binary. When you open a file in a text editor, it interprets each byte (or set of bytes, depending on encoding) as ASCII (or whatever) codes - showing the equivalent letter for each.
[QUOTE=thomasfn;29381252][code]wSettings = new WindowSettings(24, 8, (uint)settings.ReadInt("Video", "AntiAliasing", 0));[/code] That's the line that initialising my WindowSettings, the 3rd parameter is the AA parameter. I've debugged it, it's indeed being set to 2. When I check the window.Settings structure after the window was created, AA has set itself to 0 which means it couldn't get a context with AA. But it doesn't tell me why.[/QUOTE] I can't really think of anything, other than your system doesn't support AA. Maybe you're forcing AA off in an nVidia/ATi control panel?
[QUOTE=WeltEnSTurm;29381215]They are, they just happen to be nicely editable by text editors[/QUOTE] And the fact that rows have varying lengths and every byte is a char, unlike binary files.
[QUOTE=SEKCobra;29381371]And the fact that rows have varying lengths and every byte is a char, unlike binary files.[/QUOTE] At the BASE LEVEL, it's all just a bunch of 1s and 0s. Hard drives can't store anything other than 1s and 0s because that's how hard disks work.
What are you working on v(INT_MAX - 2147483630)
Well recently I broke my ATi control panel, I tried to update my drivers but it got scared and stopped running on startup. But it didn't work before either. I remember there were some AA settings, with a slider, (which suggests my card supports AA) but the option was set to "Application preference". Oh well, maybe my card really doesn't support it and my control panel was lying to me all this time.
Who's making v. Next?
[QUOTE=Moustach3;29381404]At the BASE LEVEL, it's all just a bunch of 1s and 0s. Hard drives can't store anything other than 1s and 0s because that's how hard disks work.[/QUOTE] Sir, you figured out the [B]bi[/B]nary system!
[QUOTE=thomasfn;29381446]Well recently I broke my ATi control panel, I tried to update my drivers but it got scared and stopped running on startup. But it didn't work before either. I remember there were some AA settings, with a slider, (which suggests my card supports AA) but the option was set to "Application preference". Oh well, maybe my card really doesn't support it and my control panel was lying to me all this time.[/QUOTE] That's probably why, you should update mang. If you can I mean.
I only just realised that we're near the end of this thread. Don't think I even posted any content. Oh noes.
[QUOTE=SEKCobra;29381371]And the fact that rows have varying lengths and every byte is a char, unlike binary files.[/QUOTE] Rows having varying lengths is purely based on where the linefeed/carriage return characters are in the file. Each byte being a "char" (if you meant that as in a character) is entirely because that's how the editor interprets it.
[QUOTE=SEKCobra;29381371]And the fact that rows have varying lengths and every byte is a char, unlike binary files.[/QUOTE] That 'Varying Length' is an illusion. A '\n' character just tells your text editor to show the following in a new line.
The CR aka Carriage Return Character, which you are representing by it's escape symbol, of course only does that, but it still is a significant difference to any other files.
[QUOTE=SEKCobra;29381582]The CR aka Carriage Return Character, which you are representing by it's escape symbol, of course only does that, but it still is a significant difference to any other files.[/QUOTE] You're comparing apples to oranges; or rather, you're comparing a file format to the binary data that makes up the file format. Or something.
Sorry, you need to Log In to post a reply to this thread.