Advertisement

First Game - Tetris or Pong

Started by April 17, 2002 04:54 PM
14 comments, last by sanguineraven 22 years, 7 months ago
well i mean I've done basic stuff in Qbasic and pascal but now in c++ i hope to start a 'proper' graphical game as such, and i figured that pong and tetris were suggested many MANY times nad it seemed sensible.
I am so start with the win gdi and then learn OpenGL as opposed to directX, thats where im heading i think

What about me? What about Raven?

[edited by - sanguineraven on April 19, 2002 10:20:47 AM]
I _was_ going to write Pong b4 I got grounded. I was rather surprised to find myself writing a 2D Side Scroller Final Fantasy 3 style RPG instead of Pong when I got back to my computer, but It''s happening and the thing works well. So I don''t know...

but I''d suggest Pong from my meager knowledge.

____________________________________________________________
Direct3D vs. OpenGL
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Advertisement
Would it be a good idea to write my program in pseudocode first?
quote: Original post by sanguineraven
Would it be a good idea to write my program in pseudocode first?


The best approach is to write your program in plain text, convince yourself of the logic of the game :-), it is much easier to think in normal terms than in programming terms, don´t you think? (well, except your´re a natural in thinking in programming terms, then I have said nothing)
Ciro Durán :: My site :: gamedev.net :: AGS Forums
anyone tried using the code provided by TOTWGPG to make tetris?

so,
do u think in terms of 4bobs a game piece, or 1bob alone?

but if u use 4bobs a game piece, checking for the 2d array is
rather ok, but what about if it is in terms of 1bob?


[edited by - edwinnie on April 21, 2002 10:48:57 PM]
My first game was tetris in text mode, and yes, the data representation is the hardest part. I had no idea how to store the pieces, so I ended up making each piece a 4x4 array, and since this was before I knew what the word algorithm meant, I wrote a block of code to rotate each piece, for each angle that it was currently in. The final thing ended up being like 1500 lines of code or so, 1000 of them being my piece rotation. Later (waaay later) I rewrote tetris a lot quicker, and made an actual algorithm to rotate any piece.

Then my second game was a pong clone called Ping. It was actually really cool for my second game ever. I''m talkin a beautiful 320x240x8 resolution. But really it was nice because I had this scrolling stars background and the stars moved in the opposite direction as the ball, and you got score depending on where on the paddle you hit the ball, and every 30 score a random powerup flew across the screen and if you caught it you got an extra life or a bigger paddle or a smaller paddle or you spead up or slowed down the ball. And I made some computer AI. Looking back at the code, it''s really horrible, but it was still something I was really proud of. Yeah, that''s my little story.

I''d go with Pong. Or maybe make a clone of my game Blox. That shouldn''t be too hard for a beginner, I don''t think.


- f l u c k y p o o
- the geek inside
- f l u c k y p o o

This topic is closed to new replies.

Advertisement