Thread: In less than an hour.

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    In less than an hour.

    I challanged my self to make a game in less than an hour, and this is what I came up with:
    http://queatrix.awardspace.com/programs/rinkee.com


    Script here:
    http://queatrix.awardspace.com/programs/rinkee.cpp

    What do you think of it for being made in less than an hour and FillRect() for the only graphic drawing function? (Other than TextOut(), but that is not used for the actuall game play.)

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Wow... looks like hell on my system...

    I will post a screeny in a sec

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Wraithan, why do you have invisible on? (Look below)

    Hiding from someone?

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Don't mind the bottom download complete thing from FF... anyway... the screen is updating so slow that it looks horrid, but I can't get that in a SS. I can see it updating though.


    Ahh... I disabled my second monitor and it worked fine... seems it is spreading accross to my other screen, just enough to mess it up but not enough for me to see much other than a sliver on it.
    Last edited by Wraithan; 10-15-2006 at 05:31 PM.

  5. #5
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    You have a larger screen than me, which is why there is so much pick and empty space, and it seems that you have a slower computer.

    What's an SS?

  6. #6
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Screen shot, and my comptuer is a Intel 2.8ghz, vid card is 96meg intel onboard.

    It can run WoW with most of the settings maxed out, it is something is wrong with your app.

    Also I can still see the screen updating it is mostly flashes of black. Are you double buffering? (don't feel like diggin in your source code).

  7. #7
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    No I'm not, that's the problem, when I do double buffer (which is allmost always) there is no flashed or streaks, but it takes longer to program.

  8. #8
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    Yeah, I got a whole bunch of flashing (almost had a siezure ). It's pretty awesome for 1 hour though.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  9. #9
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    shouldn't take longer... all you have to do is add a flip buffer at the end of your render function/loop

  10. #10
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Hmm, I never thought of that, I DB like in here:

    http://www.fortunecity.com/rivendell...es/Forgers.htm

    EDIT:

    Ineresting, when I add SwapBuffers(hdc); to the end of my rendering code, the refresh rate goes way down and there is a LOT more flashing.
    Last edited by Queatrix; 10-15-2006 at 06:00 PM.

  11. #11
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Loading bricks is taking some time, that makes it flicker.

    Quite good game!
    Maybe some more round shapes or something, but in an hour, that's great
    I tried to get rid of the flickering, by not clearing the whole area, so everything clears it's previous states. Some things still look strange...
    Last edited by maxorator; 10-16-2006 at 07:15 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  12. #12
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    I think I've played that game before. It's called "Breakout". Came for free on the 2600.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  13. #13
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    That game is soooo popular. There are thousands of different versions of it.
    I don't think anyone knows who invented it first.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  14. #14
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267
    Quote Originally Posted by http://en.wikipedia.org/wiki/Breakout
    Breakout is a Pong-like arcade game introduced by Atari in 1976
    this post is too short and i have to add more text to post it...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Entry Level Help.
    By alex1067 in forum C Programming
    Replies: 21
    Last Post: 03-11-2008, 05:13 PM
  2. Entry Level help.
    By alex1067 in forum C++ Programming
    Replies: 8
    Last Post: 03-10-2008, 09:26 PM
  3. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 06:02 AM
  4. Roidian: Final Hour (72 hour gd compo results)
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 12-29-2004, 10:27 PM
  5. Rush Hour II
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 08-15-2001, 11:59 PM