Get a graphic library, needless to say this supports 3D sound, opengl and all that, your games will be way faster than MMF (duh) so you'll be able to fill the screen with sprites and stuff:
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.
Yes, we could all use C++. But I'd rather not wrestle with cross-compatibility and be forced to rewrite things already in MMF. One of the wonders of MMF is that it works on everything from 95 to XP...
It also takes a LOT longer to write anything in C++. It could take you an hour or two, even a day, just to get a ball bouncing round the screen. In MMF it's ten seconds' work.
Edited by the Author.
- Tigerworks
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
6th March, 2004 at 06:41:00 -
^ what he said.
i suppose it didn't occur to you, dodgzer, that the majority of us are perfectly happy with MMF despite its limited power?
I will eventually move on to C++. I already know all the basics(cout, cin, headers, function, sorting algorithms, classes, class templates, and the very basics) and I've read an entire book on the subject. Too bad the book didn't tell how to use actual graphics. I'm programming in C++ for computer class.
Recently I made a C++ program that calculates Pi, but I amde it on one of the school's Mac computers.
i agree that Cpp is great and all, but i also know how damned hard it can be to get multiple instances of an object (classes arent my strong point) and i can create games in mmf that would take masses of time and effort in cpp, despite this, i like and use both (if you check my profile you can see a non graphical game i wrote in c when i first started to learn )
Twas brillig, and the slivey toves
Did gyre and gimble in the wabe,
All mimsy were the borogroves,
And the momewraths outgrabe.
Building something complicated in MMF is harder in my opinion, otherwise I'd just make some funtioncs to do all the work, but for graphics, MMF/TGF is the way to go. Just cause C++ is a bitch about graphics.
C++ really isn't as hard as everyone makes it out to be. If I ever get off of my butt and learn some more math stuff, then I just might start using it. Nice resources BTW.
Hey guys, if you want to do hardcore code... dont bother with c++ go right to smalltalk.
You'r right Dogzer! But look at the downloads section... now if people are only willing to put that much effor tinto things that are *eas* what do you think they would do with something that might actually regire them to think? Hahaha just add water and a 200 hundred pound tomato.
cos its almoust impossible to learn the langue. Sure it would be great to know how to make c++, I even visited you links and I dont know what program to download, there is just to much. If you could give me the exact file to download, the files that I must have in order to make a program/game. That would be nice. An also is c++ a langue in it self or does it use htm or anything like that.
To make something in Windows, you have to include Windows.h and use WinMain() instead of main(). Welcome to the nightmare world of Windows programming with handles and structures flying left right and centre.
The beauty of MMF is it's simplicity. You can insert an edit object just by dropping it in the frame. In C++ you have to write some code to create it, keep a handle to it somewhere so you can still read/modify it, write some code to destroy it at the end of the application, and every time you want to test something, you have to compile and fix any errors you've made.
Using an edit object in windows might not be 100% like that, it is easier if you sue dialog boxes, windows programming isn't my thing. It's a darn lot harder than just dropping it in the frame anyway.
learn Java then learn C++ cause java is quiet easy to learn but it can prepare you to learn harder languages such as C++. (I'm learning it at the moment)
Making a game with MMF is like making a building outta wooden planks and instant cement. You can do simple decorations, shacks, houses, even schools. But the bigger it gets, the harder it is to keep up. You can do all sorts of stuff quickly, just as long as you don't try to build a massive factory or a skyscraper.
C++ is more like raw materials. You gotta shape it, modify it, and alloy the damn thing into concrete yourself. But once you've figured out how to do it, it's pretty smooth from there.
Now if only I could be bothered to learn C++.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
I do know 'c++', well 'c' anyway
learnt it a college along with other languages
html
javascript
pascal
forth
assembly
and a little bit of delphi (i think its called that)
and still have all the workbooks and stuff.
yet i choose to use tgf to make games. Its way quicker and easier and less frustrating.
i mean do you want to spend half of your time trying to figure out why the program you've spent an hour on wont even start. and then find out its ONE spelling mistake in 5000 words?
----------------------
struct object {
int field1,field2;
}
object * obj1 = new object;
object * obj2 = new object;
----------------------
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Isn't "struct from C?
C++ uses classes.
Here's a theoretical class that can be used for sprites.
Class Sprite
{
public:
Sprite(int startX, int startY, int spritetype)
{
X=startX;
Y=startY;
type=spritetype;
}
~Sprite()
{
}
int X;
int Y;
int valA;
int valB;
int valC;
int valD;
//...all other MMF alterable values....
bool flag1;
bool falg2;
//....more flags.....
int Type;
bool Visible;
// sprite image thing getter here(I don't know how to call images in C++)
void Draw(int hotspotX, int hotspotY)
{
if(Visible)
{
//whatever code is used to render a sprite's image
}
}
//all other properties of a sprite object...
}
I need to find a book that actually tells how to program graphics...
structs and classes are almost identical. the only difference is that members of structs are public by default
If you wanna draw graphics, you need an API. There are two main choices: GDI (slow, but doesn't need a graphics card) or DirectX (for games). SDL and Allegro are both wrappers for DirectX, so you need to get either one of them (Or you could just code in DirectX, but... just don't go there)
Edited by the Author.
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Kris: Classes give you functions, and you can also use base classes to make different classes with the same function names but work differently. Where do you think C++ got its OOP from?
It's not like iterating through loads of object instances is hard - use a for loop...
I'm coding in DirectX, and I'm also programming ATL. I might just get a gun and shoot various Windows API programmers.
I read an entire long chapter dedicated to static member functions, and I was left confused. Now I read the short tutorial on static functions, and now I know exactly what they are. Arg! Why can't the books on C++ get to the point?!
html is an internet explorer complatible browser type recognition code, basicly limited to a web page... now i could learn C++ but i won't being as im terribly lazy... mmf is easy, anyone ever hack mmfusion.exe though? it sounds illegal... you can 'edit' it though on one computer, according to the lisence agreement thingy
chris, you can have functions in structs as well. dunno about all that base stuff (I dont bother with it) but i'm sure structs can have them too
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G