Jump to content

  • Log In with Google      Sign In   
  • Create Account

Willy The Vinyl Frog

Member Since 11 May 2012
Offline Last Active Oct 30 2012 11:12 AM

Posts I've Made

In Topic: How are APIs made, and how do they work with programming languages?

14 May 2012 - 12:21 AM

A simple API function call (or in this case a constructor) to initialize a window may be:

programWindow myWindow(800, 600, 32);
Passing in just those parameters.


I understand, but what do you mean by "(or in this case a constructor)"?

Being very unfriendly with C++'s OOP, I can't say for sure that I get that.

Although most of what you say clarifies it, I still wish to understand how exactly it does it for Windows API.

In Topic: Knowledge of instance positioning, memory of positioning, etc.?

13 May 2012 - 10:07 PM

Yes, exactly what you said.

Line-of-sight would be good considering I know of no ways to implement any "useful" AI in games, nearly anything AI related, including examples with code, will help me get around AI basics.

In Topic: Is getting an image to the screen in SDL an accomplishment?

13 May 2012 - 10:05 PM

Well, thanks again jbadams.

You've been a great help. Way better than most of the other answers(no offense).

But I want to know if it's normal to be put off by 3-D programming as a beginner to game programming as a whole(in terms of accomplishment, not actually trial and error).

I've been put off terribly by a desire to create advanced games and inability to comprehend every from code to syntax, maths used, etc.

So I should best stick to the little information I know and move forward slowly?

I want to know some specifics on this - should I work up as slow as possible keeping my learning pace good rather than trying to tackle bigger things faster, like artificial intelligence?

Or would me completing a simple object moving through walls with collision be a good accomplishment?

I've set forth a goal to make a 20x20 pixel block slide between several bigger block objects that are 40x40s and reach checkpoints.

Later on I can add levels, saves, etc(but that would be WAY later on).

I don't want to actually "get down" with doing it yet because I'd like to know the ins and outs of many things before muddling in to possibly more confusion and such.

In Topic: What level of C++ needed for game development?

13 May 2012 - 09:51 PM

You need to learn many things before making a game.

Even an apparently simple 'Mario' game, takes a lot of work to be made.


Yes, but no one in their right mind begins software development and jumps in to a major task(which not really major to a professional at all, but major to a beginner)you have to question their reasoning.

No one starts off with a Mario game. In fact most people start off with a picture on the screen and slide it around.

After that you can add two pictures to the screen and slide them around ... then three!

Then you can add event handlers for input, add sophisticated functions that work together and handle operations efficiently, add garbage collectors, add drawing/animation functionality, and then finally implement some artificial intelligence.

That, to me at least, is how absolute beginners should start out. There would be no discouragement if you start small and work bigger over time.

I'm currently working on a game with a square block that moves through walls to reach a checkpoint, and learning slowly how to implement collision on a 2-D basis.

It may sound dumb to some, but this is progress for me, and you don't need to have years of experience to code games like this, and even more complicated ones as well.

Lastly, even the simplest things in game programming and graphics is things like sliding images being handled by functions, etc.

I realized that these are the building blocks for everything, yet people think it's dumb and/or nothing of a success to do simple things(people have told me it's no big deal to blit images, use Windows API without documentation, etc.).

Many people discourage you by overthrowing a massive set of code, libraries, utilities, functions, data types, syntax, etc.

I recommend anyone with some decent C++ skill(possibly the OP)to try: http://www.lazyfoo.net

It's helped me get back up strong so far in programming since my last downfall from discouragement.

In Topic: How are APIs made, and how do they work with programming languages?

13 May 2012 - 09:41 PM

Yes, thanks heaps!

Very clear.

But can I ask something else?

How, or specifically under what circumstances of implementation, are lower level functions, codes, etc. applied?

I am a bit cloudy there.

Like how SDL works with WinAPI ... how does it do it? I mean to add, I understand VERY little Windows API programming, but what I don't understand is how it exactly works beneath just typing in things, and I really want to know how, but reading the header files is like Hieroglyphics, and doesn't help me.

I just feel that by knowing this it would help me get the bigger picture of API use, specifically the only one I have managed to use correctly and have succeeded in(SDL).

This is, to also add, why I feel that learning some lower-level codes, how they work, how they work with each other, and how they work in general, would help me a bunch as I finally start stepping up in programming, designing and completing my first ever game program, etc.

So if you could wire this together in some sense, any sense, I'd appreciate your efforts.

PARTNERS