Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About fartocci

  • Rank
  1. fartocci

    Difficulty compiling Engines

    I pulled down the latest version of Irrlicht last night on my MBP with subversion and got the static library to compile. However, when I try to build the examples or create my own by following a tutorial I found, I always get link errors. Has anybody else had this problem with Irrlicht on OSX?
  2. fartocci

    What IDE are you using?

    Visual C++ EE on Windows, none on Linux (just vim, gcc, and gdb), XCode 2.4 on OSX
  3. fartocci

    [4E5] Roll call!

    I think I may have a go at it this year... although somehow I've overlooked it until today. Thats one month down... 5 to go
  4. fartocci

    I Made Tetris!

    # How did you go about it, did you start and work though it or did you use tutorials to help along the way? I was messing with windows programming and input over winter break when I was in college. Eventually, this lead to making a Tetris clone. I did it all myself without the help of other code or tutorials. # How did you implement it, most notably how did you store the board and the pieces and how did you handle those interactions? The board was actually an array of pointers to "basic blocks." Each piece was made out of 4 of these basic blocks. When a collision was detected, the pointers were set in the board to the blocks making up the piece that had fallen. Not the best way to go, but this project didn't start out to be Tetris to begin with so by the time I got to the board part... # How long did it take? Actual programming time was probably a few days. Time from start to finish, several months with 2-3 months between days of working. Heh, College! # Would you reccommend beginner game programmers that are just starting out to make this game? Sure. It was my first game so I was a beginner at game programming. You should probably be pretty comfortable programming however. Here is a link to where screenshots of my Tetris clone can be seen or the program can be downloaded.
  5. fartocci

    Best OO Design books...

    Thanks everybody... I actually picked up Design Patterns yesterday before anybody had replied since it was 30% off at Barnes and Noble with a membership (20% off without). I will check out the other books and suggestions as well. Thanks again
  6. Over the last couple years I've been purchasing various books on different programming languages. I realized I don't have many books that specifically discuss design processes and patterns. I was wondering if anybody here could offer suggestions on some great books that can fill this gap in my "desktop library." I've heard that "Design Patterns: Elements of Reusable Object-Oriented Software" is a good place to start. Is this correct or are there other books that you can suggest? Thanks
  7. fartocci

    C++ knowledge ratings...

    Thanks everybody... I always hate the self rating questions and just wanted some input on what others thought.
  8. fartocci

    C++ knowledge ratings...

    Quote:Original post by flangazor Of interest. There are no markers for knowing a language apart from how competently you can write a program that you intend to write. The only way I know of doing that is by trying to do it and seeing how well you do. For example, you could write a text editor. I suppose a better question may be: What topics in c++ programming can be considered novice, intermediate, and advance? Which subgroup would namespaces, templates, polymorphism, inheritance, overloaded functions, overridden functions, overloaded operators, virtual and pure virtual functions, abstract classes, concrete classes, etc etc be considered? Thats what I'm wondering. That was an interesting article...
  9. I was recently asked to rate my C++ skill level from 1 to 10 with 10 being the highest. I've been programming in C++ for a little over 4 years now with most of that coming from my undergrad education at VT. I was just curious what you all thought you should know at certain levels. level 1 - you should know this level 2 - you should know that . . . level 10 - you're a c++ guru [Edited by - fartocci on April 25, 2005 6:05:35 PM]
  10. QT and the parts of KDE 3.1 I wanted under linux definitely rank up there for me...
  11. No problem... if you'd like to see the code for either just let me know.
  12. I have some simple network code I could post if you'd like as well. Both use the Berkeley sockets API. Two different versions... 1. Just simple helper functions for starting a passive socket, connecting to an address, sending and receiving ints, some number of bytes, or std strings. Just for Windows but easily ported for linux... just need to include the appropriate headers and get rid of the WSAStartup/WSACleanup function calls 2. Server and a Client class that inherit from a base class. Compiles under windows and linux. This is what I used in my last small project. Neither are great but they suited my needs for their respective projects. Header for #1: #ifndef NETWORKHELPER_H #define NETWORKHELPER_H #include <winsock2.h> #include <string> // Winsock startup and shutdown functions bool StartWinSock(); // Sets up WinSock bool StopWinSock(); // Shutdown WinSock bool SetupServerForListening(SOCKET& socket_fd, struct sockaddr_in* sockAddr); // sets up a socket for the server to listen for connections bool ConnectTo(SOCKET& socket_fd, struct sockaddr_in* sockAddr); // sets up a connection and returns the socket // Setup the sockaddr_in struct using appropriate arguments bool SetupSockAddrInStruct(const unsigned short port, const char* const address, struct sockaddr_in& sockAddr); // Sending Functions bool SendInt(const int toSend, SOCKET to); // Send an int (handles host to net order) bool SendBytes(const char* const toSend, int num, SOCKET to); // Send num bytes from an array bool SendString(const std::string toSend, SOCKET to); // Send a string over a socket // Receiving Functions bool RecvInt(int& toRecv, SOCKET from); // Receive an int (handles net to host order) int RecvBytes(char* const toRecv, int num, SOCKET from); // Receives num of bytes and stores in char array bool RecvString(std::string& toRecv, SOCKET from); // Receives a string over a socket #endif Header for #2: #ifndef SAS_NETWORK_H #define SAS_NETWORK_H #ifdef WIN32 #include <winsock2.h> #else typedef int SOCKET; #endif namespace sas { // network base class class sasNetwork { public: sasNetwork(); virtual ~sasNetwork(); // Setup and shutdown functions... abstract so derived must implement these virtual bool Setup(unsigned short port, const char* const connectTo = NULL) = 0; virtual short CheckSocket() = 0; // uses the select function to poll the socket(s) to see if ready virtual bool Shutdown() = 0; // base class will take care of these short NetSndLong(long number); // send an int short NetRcvLong(long& number); // receive an int short NetSndShort(short number); short NetRcvShort(short& number); short NetSndNumBytes(const char* bytes, long num); short NetRcvNumBytes(char* const bytes, long num); static bool GetLocalIP(); protected: bool SetupSockAddrInStruct(unsigned short port, const char* address, struct sockaddr_in& sockAddr); fd_set m_AllFD; fd_set m_ReadFD; int m_MaxFD; bool m_Connected; // is there an active connection SOCKET m_CommSock; // main socket file descriptor... server // will have a listen socket as well }; // Server class class sasServer : public sasNetwork { public: sasServer(); // constructor ~sasServer(); // deconstructor bool Setup(unsigned short port, const char* const connectTo = NULL); // set up server to listen on a certain port // the connectTo should always be null short CheckSocket(); bool Shutdown(); // shutdown server protected: bool AcceptClient(); SOCKET m_ListenSocket; // server listening for connections on this socket }; // Client class class sasClient : public sasNetwork { public: sasClient(); // constructor ~sasClient(); // deconstructor bool Setup(unsigned short port, const char* const serverName); // connect to a server short CheckSocket(); bool Shutdown(); // shutdown the client }; } #endif
  13. I need some help finding information regarding Win32 mutex and threads (I can't seem to find what I'm looking for. I don't want MFC, .NET, etc... just plain old Win32). I've only used posix threads and mutex under linux and was wondering what the equivalent was on the Windows OS to pthread_create, pthread_mutex, pthread_join, etc. Thanks
  14. I've been messing around lately making a multiplayer battleship game. I had my girlfriend testing it with me and she ended up using the X close button on the secondary window (the one I don't display my graphics on) instead of the primary graphics window and it gives an error. Any way around this?
  15. fartocci

    Half Life 2: Depends

    Quote:Original post by Samith You can't kill your friends in HL2. I seem to remember shooting scientists in HL1... But noooo, in HL2, I try to shoot Alyx in the face and, well, it turns out she's made entirely out of metal. The hardest metal in the world, Invinciblium (Atomic No. 512, for those that don't know about Invinciblium). Haven't played HL2 yet... it's in the mail somewhere in VA. But I had to comment on the shooting scientists in HL1. I remember attaching the trip mines to their faces and having hilarious results... :) Who else did this?
  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!