Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 26 Sep 2011
Offline Last Active Dec 07 2014 12:18 AM

Topics I've Started

SDL Setup in VS 2013

30 November 2014 - 04:22 PM

Hey all,


I'm relatively new to C++ and VS 2013, so bear with me. A majority of my experience in programming has been in Java.


My end goal here is to make a very rough Missile Command clone just to get a feel for how things work in C++ and SDL.


I've been following along with this tutorial to get things set up, since I know nothing about how C++ compilers function and so on (I'm working on learning it).


The problem is, I'm having some difficulties with the linker. Copied below is the error output when I go to build.


1>------ Build started: Project: MissileCommand, Configuration: Debug x64 ------
1>MissileCommand.obj : error LNK2019: unresolved external symbol SDL_GetError referenced in function SDL_main
1>MissileCommand.obj : error LNK2019: unresolved external symbol SDL_Init referenced in function SDL_main
1>MissileCommand.obj : error LNK2019: unresolved external symbol SDL_Quit referenced in function SDL_main
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup
1>F:\GameDev\MissileCommand\x64\Debug\MissileCommand.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

And here is the little test code (provided in the tutorial link) that I used:


#include <iostream>
#include <SDL.h>

int main(int argc, char **argv){
		std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl;
		return 1;

	return 0;

I'm guessing I missed something in the tutorial, but I'm not quite sure what. I'll continuing tinkering and post back if I find the solution.





Storing Map Data

26 January 2012 - 06:17 PM

So I'm working on my own engine. I have all the rendering going fairly well so now I'm working on a basic world editor.

To create maps using the editor, I would like to save the coordinates of each object in to a file so that I might be able to redundantly use the 3D objects to lower the overall size of the game and to provide a better way for my rendering system to work (through prefabs)

Here's the problem: I don't know how to effectively store the data in a readable format at run time and load time. Should I use XML or try and figure how to make my own file type?

Opinions and discussion? Well aware that parsers are no fun in writing, but I expect this to be the most effective way. (Unless you has an alternative :) )

Any links to resources (specifically for this application) would be appreciated!


Where to start.

11 January 2012 - 08:01 PM

Well hello there.

I've been the programmer for games for quite some time now, but I would really like to get more in tithe visuals of it all. I've messed with Maya, Blender, Zbrush and all that wonderful stuff, but the programs are so complex I shut down at the thought of trying to learn any one system/UI. I'd like to start with Blender since it is free and has a larger community.

But I need a starting point! Some small goal or point to work towards and (possibly) some one to be a mentor to me.

Can anyone suggest where I might start?

I should be getting my new PC soon, so I can't start with modeling just yet, but I might need sketching work...

In the meantime, words of encouragement and places to star?

Thank you commooooooonity.


11 January 2012 - 11:03 AM

I've never really understood why constructors are necessary. Could someone explain to me why they are needed and what EXACTLY do they do?



[C#] Converting a smidge of Code

15 October 2011 - 08:03 PM

I'm trying to convert the following bit of code to try and visualize what this kind of 2D bone system might look like in C#, and, frankly, I'm new to C++ and I really dont understand what a bit of it is doing.

struct _Bone *child[MAX_CHCOUNT], /*Pointers to children */
			*parent; /*Parent bone*/

the bit i'm having trouble with here is this part of the code that can be found here under the 2D section:
how do i create children of an object in the way it is doing, like it does here. Again, the link to this tut can be found here

Thanks in advance!