Jump to content
  • Advertisement
Sign in to follow this  
Puggy

Starting 2D from scratch

This topic is 1326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Edited by Puggy

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

 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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!