[QUOTE=Meatpuppet;37307702]I didn't find it; that's why I made the post[/QUOTE]
Alright, here's a step by step.
You SHOULD already have mingw-get in your MinGW installation's bin folder. If you don't, this won't work.
1. Open up CMD prompt.
2. Enter this without quotes: "mingw-get update" (Might as well update the lists while you're doing this)
3. Enter this without quotes: "mingw-get install msys"
4. Wait for it to download and install, then close the CMD prompt.
5. Go to your mingw installation directory, there should be a folder called "msys" in it. Inside of that is a folder with a version number (1.0 currently), and inside of THAT is "msys.bat". Open that up, and now you have a Unix-ish shell.
There you go. Just CD over to your directory and "make" should do everything you need. After it finishes, you can "make install prefix=(mingw directory)" and it should get copied over. (Obviously, replace that (mingw directory) with your actual mingw directory location, excluding the parentheses.)
I'm following a 4 year Game Development course in the Netherlands where we get the freedom of choosing our own programming language. I've been going on and off with C++ and multiple libraries through this year. And while most programs developed were made in AS3, I've decided to continue with a language I personally find more useful in the industry. I've been contemplating C++ as my language of choice, however I was told that this was something that has never been done by anyone on the course before. Most of the students settle for AS3, seeing as that is the language that we have been taught in the first year, or C#. Do you think it is feasible for me to use C++ for my assignments, given that I have a limited timeframe for assignments, or should I try a more universally used language in this course seeing as that might be faster and wouldn't cause any problems when working in group projects.
I have to add that I favor C++ over any language. It's become a language that I'm very comfortable with, and I have a tough time getting into different programming languages.
I hope my post was at least a bit comprehensible. If it isn't, I will revise it later.
[QUOTE=Asgard;37313571]I'm following a 4 year Game Development course in the Netherlands where we get the freedom of choosing our own programming language. I've been going on and off with C++ and multiple libraries through this year. And while most programs developed were made in AS3, I've decided to continue with a language I personally find more useful in the industry. I've been contemplating C++ as my language of choice, however I was told that this was something that has never been done by anyone on the course before. Most of the students settle for AS3, seeing as that is the language that we have been taught in the first year, or C#. Do you think it is feasible for me to use C++ for my assignments, given that I have a limited timeframe for assignments, or should I try a more universally used language in this course seeing as that might be faster and wouldn't cause any problems when working in group projects.
I have to add that I favor C++ over any language. It's become a language that I'm very comfortable with, and I have a tough time getting into different programming languages.
I hope my post was at least a bit comprehensible. If it isn't, I will revise it later.[/QUOTE]
If you're just trying to get the assignments done, choose a language you're comfortable with using that won't cause you headaches trying to figure out how something should be done. That being said, if you're trying to get useful experience out of the class I would go with C++ or C# since Flash seems to be on its way out (good riddance).
If you [B]can[/B] use C++ and you know you're able to do it, why not.
Otherwise use something else.
[editline]19th August 2012[/editline]
And yeah, Flash is pretty much officially soon-to-be history since Adobe stopped supporting it on mobile devices, which seems to suggest they don't really want people to start using it more.
[QUOTE=Meatpuppet;37307702]I didn't find it; that's why I made the post[/QUOTE]
Make sure you have MinGW\bin folder in your PATH variable
What's the best way to do platforming collision detection? I'm currently placing rectangles around my object and then checking the up/down/left/right collisions with them, but this is a piece of shit when the character is moving more than one pixel per frame.
Where do I place a file to be read by openFileInput on Android? I tried making a folder at the root of the package called maps, and tried to access the map.txt file using openFileInput("maps/map.txt) but it doesn't work.
I realized that I can only open a file, not a file path using openFileInput. I have changed it and put the file map.txt into a folder named files in the root of the project. However, it still doesn't work.
[QUOTE=esalaka;37313721]Adobe stopped supporting it on mobile devices, which seems to suggest they don't really want people to start using it more.[/QUOTE]
While they've stopped supporting it on mobile browsers, they still do update and encourage use of AIR on mobile platforms.
[QUOTE=Mr. Smartass;37315153]What's the best way to do platforming collision detection? I'm currently placing rectangles around my object and then checking the up/down/left/right collisions with them, but this is a piece of shit when the character is moving more than one pixel per frame.[/QUOTE]
Use aabb penetration solving instead, it's much more exact and clean. You would still have to do some nice time stepping or some simple tracers to keep fast moving objects from flying through everything though.
[QUOTE=WTF Nuke;37315433]Where do I place a file to be read by openFileInput on Android? I tried making a folder at the root of the package called maps, and tried to access the map.txt file using openFileInput("maps/map.txt) but it doesn't work.
I realized that I can only open a file, not a file path using openFileInput. I have changed it and put the file map.txt into a folder named files in the root of the project. However, it still doesn't work.[/QUOTE]
openFileInput opens files stored in the private Application specific storage on the phone, it's not related to the files in your project at all. If you want to include a file with your project and read it later, put it in the [i]raw[/i] resource directory and use:
[cpp]InputStream in = getResources().openRawResource(R.raw.filename);[/cpp]
How can I open a resource by using it's name?
NVM Figured it out [url]http://www.anddev.org/tinytut_-_get_resources_by_name__getidentifier_-t460.html[/url]
[QUOTE=BMCHa;37315592]While they've stopped supporting it on mobile browsers, they still do update and encourage use of AIR on mobile platforms.[/QUOTE]
Ah, dangit. I always consider Flash a purely web technology. Thanks for reminding.
How do you link Freetype with code blocks? I've googled it.
[QUOTE=Meatpuppet;37317973]How do you link Freetype with code blocks? I've googled it.[/QUOTE]
Add freetype2 to the libraries
[QUOTE=Amiga OS;37318403]I've just started teaching myself C. I'm having some issues with ANSI escape sequences.
I want to move the cursor position, and the sequence to do this pretty much looks like this
[code]
printf("\033[[B]6[/B];[B]3[/B]H");
[/code]
How would I inject a variable into the escape sequence without breaking it?
I've tried
[code]
printf("\033[%s;%sH",y,x);
[/code]
but it doesn't work.[/QUOTE]
First problem: Are the y and x variables strings? The %s format specifier tells printf to expect a C-string (char*), so if you pass y and x as integers, for example, you'll get weird results if not segfaults. If you want to printf an integer, use the format specifier %d.
Second problem: The sequence "\0" in the context of a string literal in C will insert the NUL character which just so happens to also be the "end of string" flag for C strings. This means that printf("\0 ...") where ... can be anything results in printing nothing. If you want to literally output "\0", you have to escape the backslash:
[cpp]
printf("\\033[%d;%dH", y, x);
[/cpp]
[QUOTE=esalaka;37318445]Add freetype2 to the libraries[/QUOTE]
It can't find it.
[QUOTE=Meatpuppet;37318834]It can't find it.[/QUOTE]
Well, where'd you put it on your HDD?
[QUOTE=Meatpuppet;37318834]It can't find it.[/QUOTE]
Stop programming in Windows if you want to use external libraries. Everything's instantly easier in Linux.
I love to bash Windows for heaps of things, and most of it is just me being bad at using Windows, but they just don't have a centralized way of managing third party libraries like Linux does, and I don't think they will any time soon.
I think it inadvertently leads to reinventing the wheel.
[QUOTE=Jookia;37319118]Stop programming in Windows if you want to use external libraries. Everything's instantly easier in Linux.
I love to bash Windows for heaps of things, and most of it is just me being bad at using Windows, but they just don't have a centralized way of managing third party libraries like Linux does, and I don't think they will any time soon.
I think it inadvertently leads to reinventing the wheel.[/QUOTE]
It's not so bad, really. Mingw and MSYS can deal with libraries without that big of a hassle. Still a pain in the ass compared to Linux, of course...
[QUOTE=Jookia;37319118]Stop programming in Windows if you want to use external libraries. Everything's instantly easier in Linux.
I love to bash Windows for heaps of things, and most of it is just me being bad at using Windows, but they just don't have a centralized way of managing third party libraries like Linux does, and I don't think they will any time soon.
I think it inadvertently leads to reinventing the wheel.[/QUOTE]You have no idea how much I want Linux. But I'm using my dad's pc and he gets all pissy about it even when I mention it to him.
[QUOTE=BAZ;37286383]Am I right in understanding that it's generally a good practise to keep graphics renderers separate from the application so you can switch between an openGL/DX renderer for example?[/QUOTE]
Separating the coupling of implementation from interface is always a good thing. You should look into things like Abstract Factories and Builder patterns to really get the most out of making sure that you can easily interchange things in a program. Or you could just write a Graphics Wrapper that Abstracts OpenGL and DirectX.
[QUOTE=Meatpuppet;37319476]You have no idea how much I want Linux. But I'm using my dad's pc and he gets all pissy about it even when I mention it to him.[/QUOTE]
Virtualbox?
[QUOTE=Jookia;37320055]Virtualbox?[/QUOTE]
He would uninstall it.
your own computer?
Are there any advantages/disadvantages to linking dynamically rather than statically or vice versa?
[editline]20th August 2012[/editline]
Aside from the whole "what if the user deletes the dll"
[QUOTE=Falcqn;37320293]Are there any advantages/disadvantages to linking dynamically rather than statically or vice versa?
[editline]20th August 2012[/editline]
Aside from the whole "what if the user deletes the dll"[/QUOTE]
I find linking dynamically much easier than static; while static doesn't cause as much clutter as dynamic.
It's mainly preference as far as I know, do what you think is best.
i need help understanding how variable array's work something like [code]int nums[6] = {0, 1, 2, 3, 4, 5}[/code] and if i used something like [code]nums[1][/code] what element does this actually reference. I'm sorry for sounding like a complete dumbass I just jumped into learning c++
[editline]20th August 2012[/editline]
the book is saying the second element because numbering starts at 0 so would that mean 1 is the second element?
[editline]20th August 2012[/editline]
it's like 1:30 am aswell so i'm sorry if i am making no sense right now
[QUOTE=confinedUser;37322676]i need help understanding how variable array's work something like [code]int nums[6] = {0, 1, 2, 3, 4, 5}[/code] and if i used something like [code]nums[1][/code] what element does this actually reference. I'm sorry for sounding like a complete dumbass I just jumped into learning c++
[editline]20th August 2012[/editline]
the book is saying the second element because numbering starts at 0 so would that mean 1 is the second element?
[editline]20th August 2012[/editline]
it's like 1:30 am aswell so i'm sorry if i am making no sense right now[/QUOTE]
It would depend on the language but in most arrays are zero based (that I know of) so it would be 1.
[QUOTE=confinedUser;37322676]i need help understanding how variable array's work something like [code]int nums[6] = {0, 1, 2, 3, 4, 5}[/code] and if i used something like [code]nums[1][/code] what element does this actually reference. I'm sorry for sounding like a complete dumbass I just jumped into learning c++
[editline]20th August 2012[/editline]
the book is saying the second element because numbering starts at 0 so would that mean 1 is the second element?
[editline]20th August 2012[/editline]
it's like 1:30 am aswell so i'm sorry if i am making no sense right now[/QUOTE]
It's zero based in C++.
[QUOTE=confinedUser;37322676]i need help understanding how variable array's work something like [code]int nums[6] = {0, 1, 2, 3, 4, 5}[/code] and if i used something like [code]nums[1][/code] what element does this actually reference. I'm sorry for sounding like a complete dumbass I just jumped into learning c++
[editline]20th August 2012[/editline]
the book is saying the second element because numbering starts at 0 so would that mean 1 is the second element?
[editline]20th August 2012[/editline]
it's like 1:30 am aswell so i'm sorry if i am making no sense right now[/QUOTE]
It's easy: imagine yourself array as shelves: you put stuff in them (numbers, strings, chars etc)
[cpp]
int drawer[4] = {10, 20, 30, 40};
[/cpp]
, and when you need something, you just open the shelf at it's index:
[cpp]
/*
-----------
| shelf 0 |
-----------
| shelf 1 |
-----------
| shelf 2 |
-----------
| shelf 3 |
-----------
*/
int a = drawer[1];
[/cpp]
and variable "a" becomes [sp]20[/sp]
Sorry, you need to Log In to post a reply to this thread.