cross platform 2d game questions

This is a discussion on cross platform 2d game questions within the Linux Programming forums, part of the Platform Specific Boards category; im working on a 2d game using sprites and i am currently on debian linux. however i do not know ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    2

    cross platform 2d game questions

    im working on a 2d game using sprites and i am currently on debian linux. however i do not know how to load graphics in linux. the tutorial only covered windows. i want to be able to create a window in linux as well as being able to make it full screen and i need to know how to load images into this window. i have some experiance programing in basic and visual basic. as well as a little experiance in java. but im just now loarning c++. i intend to make some smaller programs of course before the main video game but i need to know how to load the window and how to load images. also i will need to be able to use alpha transparency im sure c++ is capable of that but if you could help me with that it would be quite helpful.

    thanks in advance.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    C++ on its own can't do any of that unless you plan on writing everything from scratch. You need to choose some libraries to use. You need something for creating/magaging the window, something for rendering things to this window, and something for loading images.

    If you want cross platform, try something like SDL. It incorporates all of the things AFAIK.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    2
    i have heard some people talking about SDL but i dont have an include for that. (at least i dont think i do. i was looking over the /usr/include/c++/ are for all the includes but i dont see anything about windows.) how do i envoke SDK?

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    SDL is a library, it is not a standard part of C++.

    try: http://www.libsdl.org/index.php

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2D Game project requires extra C++ programmers, new or experienced
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 05-16-2007, 11:46 AM
  2. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-22-2006, 12:23 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. RPG 2d Game Map Editor?
    By drdroid in forum Game Programming
    Replies: 1
    Last Post: 01-08-2003, 01:17 PM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-25-2002, 12:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21