2D engine

making 2D engine

Page 1 of 1

7 Replies - 1955 Views - Last Post: 07 December 2009 - 03:23 PM Rate Topic: -----

#1 7sedam7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-December 09

2D engine

Post icon  Posted 04 December 2009 - 02:17 PM

I would like to start makeing a 2D engine for a game, and I would like to know something about that, what I should do and how it's done...
Is This A Good Question/Topic? 0
  • +

Replies To: 2D engine

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3102
  • View blog
  • Posts: 19,142
  • Joined: 14-September 07

Re: 2D engine

Posted 04 December 2009 - 02:22 PM

1. Learn a language. Based on the location of this post, C or C++ wouldn't be a bad bet.
2. Learn about how video games are structured. This typically includes a constantly running loop. On each iteration you get all appropriate data from your entities, update data, draw frame, repeat.
3. Learn how C or C++ could be utilized for #2
4. Learn about sprites.
5. Practice drawing some sprites.
6. Implement a small program that uses a sprite sheet to "animate" a character.
7. Begin assembling engine functionality, one module at a time, based on research and experimentation from the things you learned in #2



At any point after learning how to program: check out DirectX, Open GL, Direct2D, etc... [graphics libraries]

This post has been edited by KYA: 04 December 2009 - 02:22 PM

Was This Post Helpful? 0
  • +
  • -

#3 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: 2D engine

Posted 04 December 2009 - 02:22 PM

Off to Game Programming you will more than likely get a better response there.
Was This Post Helpful? 0
  • +
  • -

#4 GenHornet18  Icon User is offline

  • Darken the Radar

Reputation: 36
  • View blog
  • Posts: 629
  • Joined: 19-October 09

Re: 2D engine

Posted 04 December 2009 - 02:32 PM

To add on to KYA's post, because you said game engine, you will need a way to easily modify the parameters or overall flow of the game. This also includes finding and creating the restrictions that will be the limit of how far your engine is able to be used.

I have used XML libraries in the past and simple text files do just fine, but there are better ways.
Was This Post Helpful? 0
  • +
  • -

#5 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,178
  • Joined: 14-February 08

Re: 2D engine

Posted 04 December 2009 - 03:24 PM

You could try to look at XNA/C# to start learning how to make some 2D games, you should check out the Game Programming Tutorials section of DIC.

I recommend SixOfEleven' C#/XNA tutorials if you want to go down the C# route, or my SDL tutorials for getting started with SDL and C++, there are also excellent tutorials by WolfCoder about creating games using linux.

Hope this helps :)
Was This Post Helpful? 0
  • +
  • -

#6 Aazor  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 29
  • Joined: 23-November 09

Re: 2D engine

Posted 04 December 2009 - 03:49 PM

View Poststayscrisp, on 4 Dec, 2009 - 02:24 PM, said:

or my SDL tutorials for getting started with SDL and C++


@staycisp your tutorials on SDL and C++ are invaluable when going down that route.

@7sedam7 i would suggest reading those to start yourself off in c++. c# is easier to program in but you will be limited to windows computers only since both xna and c# are microsoft.
Was This Post Helpful? 0
  • +
  • -

#7 7sedam7  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-December 09

Re: 2D engine

Posted 05 December 2009 - 05:55 PM

thanks all for help :DDD
Was This Post Helpful? 0
  • +
  • -

#8 Lucas Kell  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 21
  • Joined: 24-November 09

Re: 2D engine

Posted 07 December 2009 - 03:23 PM

An engine is a massive task. You need to know exactly what you want from your engine. You'll probably do well to create simple games to give you an idea of what you will be wanting your engine to do before you build it. And design is absolutely key. If you don't heavily design how your engine will run, how the parts of it will fit together, and how to interface with it, then you will end up having to pick it apart at a later date which can be pretty tough.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1