Advertisement

Starting 2D from scratch

Started by September 21, 2014 04:06 PM
9 comments, last by Serapth 10 years, 3 months ago

So after struggling with Unity 3D games I'm going to start fully from scratch with a simple 2D game. However I am looking to do this without using an existing engine as looking at Unity, this seems to have a large file size for something so simple.

I've ben struggling to find any decent guides on making a 2D game from scratch that isn't a side-scroller. I would like to work on a top-down numbers based game with procedurally generated planets (of sorts). Can somebody point me in the right direction of how to start something like this?

I've been able to find articles on things like creating tile-sets but nothing that links it all together to create your own engine.

Hi Puggy, if you want start from scratch i recomend you to read this blog http://lazyfoo.net/tutorials/SDL/index.php. it's helping me so much.
I hope to helped you!

Advertisement

Hi Puggy, if you want start from scratch i recomend you to read this blog http://lazyfoo.net/tutorials/SDL/index.php. it's helping me so much.
I hope to helped you!

Hey Talisson,

Thanks for the reply, that looks great!

I'm slowly working through this and unfortunately I'm tied to a macbook at the moment so I'm using the xCode method which is a little confusing. Lets get learning! =D

Following the instructions on http://lazyfoo.net/SDL_tutorials/lesson01/mac/xcode/index.php and I seem to be getting two errors.


Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm still fairly new to using xCode as I previously used windows based IDEs while learning. I would guess that a library has been missed however I have followed every step from the guide word for word so nothing should be missing.

Any help would be appreciated.

Firstly i apologize about my english (I still i'm learning tongue.png ).

The mistake seems is in assembly generated, Would you can show me the command used to compile?

I usually uses g++ game.cpp -o game -lSDL -lSDL_image

Not a problem biggrin.png

I'm new to using xCode so it may be something I'm using wrong within there. When I go to test the code I am just clicking the 'Run' button the the top left corner instead of via command line.

Is this something I would need to set up?

Advertisement

Hi, it seems is in xCode same. but i don't have MAC sad.png and i don't knows how to help you. i

But i have been looking for a tutorial teaching how to do it.

Unfortunately i can't help you in this step.

maybe C# with XNA would be an option? there are many great tutorials for that around!

I dont know what platform you are devoloping for , but Unity 3d saves a lot of time for simple indie 2d game. I am developing games for android platform. I made TH?S game with unity.

Its about 14mb. You can compare it with what you want to do. I can share my compiling stats. What I know is 4mb of the size comes from unity dll's.

Good news for you!!! On the last week, The Microsoft releases a Develpemment Games course.

Following the link: http://www.microsoftvirtualacademy.com/training-topics/games

This topic is closed to new replies.

Advertisement