What must I already know :S

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

What must I already know :S

Post by Pennywise »

Hi.
I want to learn to make games, and was wondering what I must already know until I get into game development.
I mean what things in subjects at school like maths, what should I learn in maths, or science.
Do game developers need to know Calculus? :shock:

I wanna be ready before I get into game making.
Thanks :worship:
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: What must I already know :S

Post by Bakkon »

You can get by in games just using addition, subtraction, multiplication, and division. The rest is just logic and how you go about the steps of updating the game. If you want rotation or minor physics, you'll nee to know trigonometry for sine, cosine, tangent, etc. Only if you want a major physics implementation, then calculus will become necessary. (i.e. writing your own physics engine from scratch)
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: What must I already know :S

Post by Falco Girgis »

Bakkon wrote:You can get by in games just using addition, subtraction, multiplication, and division. The rest is just logic and how you go about the steps of updating the game. If you want rotation or minor physics, you'll nee to know trigonometry for sine, cosine, tangent, etc. Only if you want a major physics implementation, then calculus will become necessary. (i.e. writing your own physics engine from scratch)
Exactly.

You need to know 1st grade arithmetic to start making games.

You need to know trig/calculus/linear algebra to make advanced games.
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: What must I already know :S

Post by Pennywise »

OK
I already know the basics in Maths so I think I'm good for now :)
Thanks and sorry for the late reply.
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: What must I already know :S

Post by Pennywise »

One more thing:
I'm following Lazy Foo's tutorials and I think I installed SDL correctly and I keep getting these errors.

In function `console_main':
[Linker error] undefined reference to `SDL_main'
ld returned 1 exit status
[SDL_Program.exe] Error 1

Here is my code:

Code: Select all

// Inlcude SDL functions and datatypes
#include "SDL/SDL.h"

int main()
{
    // The images
    SDL_Surface* hello = NULL;
    SDL_Surface* screen = NULL;
    
    // Start SDL
    SDL_Init(SDL_INIT_EVERYTHING);
    
    // Set up screen
    screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
    
    // Load image
    hello = SDL_LoadBMP("hello.bmp");
    
    // Apply image to screen
    SDL_BlitSurface(hello, NULL, screen, NULL);
    
    // Update screen
    SDL_Flip(screen);
    
    // Pause
    SDL_Delay(2000);
    
    // Free the loaded image
    SDL_FreeSurface(hello);
    
    // Quit SDL
    SDL_Quit();
    
    return 0;
}
Also I'm using the Dev C++ compiler.

I thought I might ask now then clog up forums with another question :S

Thanks for replies
andrew
Chaos Rift Regular
Chaos Rift Regular
Posts: 121
Joined: Mon Dec 08, 2008 2:12 pm

Re: What must I already know :S

Post by andrew »

SDL requires that you do this:

Code: Select all

int main(int argc, char *argv[]) 
Next time you should search for the answer first. ;)
User avatar
Pennywise
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 55
Joined: Tue Sep 22, 2009 1:36 pm
Favorite Gaming Platforms: Megadrive(Genesis), Dreamcast, SNES, Nintendo 64
Programming Language of Choice: C, C++ and Java
Location: England

Re: What must I already know :S

Post by Pennywise »

LOL
I just figured that out when I done a bit more research.

Thanks anyway.
Post Reply