1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C++ Programming Assignment - Making Tetris

Discussion in 'HTML, Graphics & Programming' started by Saint, 2 May 2006.

  1. Saint

    Wise Guy

    Joined: 5 Apr 2003

    Posts: 1,417

    Basically i have an assignment where i have to make the game Tetris using C++. I'm stuck on where to start with it! It involves code using the GWIN library stuff and i've also got to make a menu and hi score chart with it. Can anyone give me some pointers how to start it?
    Thanks for any replies.
     
  2. MrWhippy

    Wise Guy

    Joined: 15 Sep 2005

    Posts: 1,608

    try asking your tutor. he/she gets paid to help you with just this kind of problem.

    doubt anyone here will want to do your homework for you.
     
  3. adam3223

    Gangster

    Joined: 22 Jul 2004

    Posts: 230

    Location: Nottingham, UK

    Well now,

    Try looking on the VLP under the lectures folder where it gives you examples of how to do the menu, move shapes down, etc. etc.
    All you have todo is put it all together.

    Or failing that, you could always goto the lectures on Mon afternoons.
     
  4. Goksly

    Capodecina

    Joined: 5 Mar 2003

    Posts: 10,623

    Location: Nottingham

    Personally I would start by create a class for each of the objects... get them with their own draw command and you will need co-ordinates for all 4 orientations.
    Then work on finding out if its hit something etc.

    ps you guys go trent? this a paul macdonald assignment?
     
  5. adam3223

    Gangster

    Joined: 22 Jul 2004

    Posts: 230

    Location: Nottingham, UK

    Yeah i do, and i assumed Saint does.
    No one else else would use Gwin.

    It is a Paul Macdonald assignment.

    The 1st years haven't done classes yet, they're just using structs really.
     
  6. Goksly

    Capodecina

    Joined: 5 Mar 2003

    Posts: 10,623

    Location: Nottingham

    struct and class are virtually the same from a coding point of view -> pretty sure he did classes with us (robot Gwin thingy).
     
  7. adam3223

    Gangster

    Joined: 22 Jul 2004

    Posts: 230

    Location: Nottingham, UK

    I don't think this years assignment is as hard as the previous years.
    He's given everyone examples on how to do virtually everything, and they have to just put it together.

    He mentioned classes very briefly in one lecture, and has never mentioned pointers or inheritance etc.
     
  8. LazyManc

    Wise Guy

    Joined: 21 May 2003

    Posts: 1,365

    If the tutor hasn't specifically asked for Structs or said "don't use classes" then perhaps it's an opportunity to receive a higher mark.