3 Replies - 26897 Views - Last Post: 02 January 2011 - 03:50 AM Rate Topic: -----

#1 Guest_jin0616*


Reputation:

creating a simple 2d graphic game in c++ help

Posted 01 January 2011 - 11:55 PM

Hi,
i am trying to learn how to make a 2d graphic game in C++.
I learnt java in university.
while i was there, i made a game involving some squares, circles and dots (i am explaining this coz i don't know how to insert a image). its not a text based. its like pacman moving around.
in java i can use drawOval or fillOval, to move i can use something like y += DISTANCE_TO_MOVE.
can i do that in c++?
i heard that i have to use some kind of graphic application or something.
is java and c++ that much different?

Is This A Good Question/Topic? 0

Replies To: creating a simple 2d graphic game in c++ help

#2 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: creating a simple 2d graphic game in c++ help

Posted 02 January 2011 - 12:18 AM

View Postjin0616, on 02 January 2011 - 03:55 PM, said:

is java and c++ that much different?


Yes. Java has the idea of graphics, effectively, "built in".
C++ does not.

You will need to choose a graphics library.
There are many many options.

This is just one you might want to consider
http://gpwiki.org/in...p/SDL:Tutorials
Was This Post Helpful? 0
  • +
  • -

#3 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: creating a simple 2d graphic game in c++ help

Posted 02 January 2011 - 02:14 AM

There are many graphics API that you can use via C++. OpenGL and Direct3D are probably the most famous, although you may want to start with SDL.
lazyfoo's sdl tutotials.
Was This Post Helpful? 0
  • +
  • -

#4 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 291
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: creating a simple 2d graphic game in c++ help

Posted 02 January 2011 - 03:50 AM

SFML (Simple Fast Multimedia Library) is also a good C++ graphics API for developing simple games
http://www.sfml-dev.org/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1