Mirage Source
http://web.miragesource.net/forums/

A Challenge!
http://web.miragesource.net/forums/viewtopic.php?f=201&t=417
Page 1 of 13

Author:  Lea [ Tue Aug 22, 2006 11:57 pm ]
Post subject:  A Challenge!

I've been noting a people saying their programming a game around here, I myself am guilty of that... But are we really programming a game if we're copying and pasting a bunch of tutorials into a already functioning and stable source code that was provided for us? Generally, that's what's happening.

But what do we REALLY know of creating games?

Do we know the process? What do we think about? How do you decide what to do?

I have no idea.

So this is where my challenge comes to you. I hope to help you learn the answers for the questions that aren't thought about. I want you to learn to program, for real.


So here's the first of my challenges: Create a tetris game from scratch. Post it here for us to play. Make it good enough for an arcade :) You do not need to include the source code, and if you do please offer a download with it and without it.

You do not need to use Visual Basic, but I think most of you will :)
If you want extra props, use a different language like C++ :)

I trust you all enough to assume that you're not going to download an example tetris game and copy it, be honest. There's no reward except the knowledge you gain in doing it.

Author:  grimsk8ter11 [ Wed Aug 23, 2006 2:44 am ]
Post subject: 

So in response to daves challenge, ill offer a little help.

This is what im using for the image handling in my C++ Tetris, feel free to try to figure it out till my example is done.

http://www.kingdomofcryshall.com/CImg.h

yes, indent = 2 spaces, blame verr for getting me in the habit.

Author:  Misunderstood [ Wed Aug 23, 2006 4:43 am ]
Post subject: 

grimsk8ter11 wrote:
So in response to daves challenge, ill offer a little help.

This is what im using for the image handling in my C++ Tetris, feel free to try to figure it out till my example is done.

http://www.kingdomofcryshall.com/CImg.h

yes, indent = 2 spaces, blame verr for getting me in the habit.


He did the same to me!!!

Author:  William [ Wed Aug 23, 2006 9:32 am ]
Post subject: 

How many pieces should it have ?

Author:  grimsk8ter11 [ Wed Aug 23, 2006 10:47 am ]
Post subject: 

mine is random, i am using CImg to generate blocks in random shapes with certain limits (ie. no more then 5 squares, no less then 2).

Author:  William [ Wed Aug 23, 2006 11:46 am ]
Post subject: 

Okay.. Willyou do it so you can flip them 90degrees?

Author:  Lea [ Wed Aug 23, 2006 11:48 am ]
Post subject: 

You can design it yourself, William, do what you want :)

Author:  William [ Wed Aug 23, 2006 12:03 pm ]
Post subject: 

Okay.. well I will probably dosome kind of entry .. meantime you can check my old game bouncing ball which is somehow related to tetris:

hmm.. cant find the url... I will post it when i get home..

Author:  grimsk8ter11 [ Wed Aug 23, 2006 1:01 pm ]
Post subject: 

CImg has a function for rotating images, so the up and down keys will rotate. I'll try to find an example code using CImg for people who want to learn C++ a little better, but it is rather complicated.

Author:  Joost [ Wed Aug 23, 2006 5:06 pm ]
Post subject: 

Is this a contest?

Author:  Verrigan [ Wed Aug 23, 2006 5:23 pm ]
Post subject: 

Joost wrote:
Is this a contest?

It's a challenge.. To get people to challenge themselves to try to develop something 'new' on their own.. And he made it easy by giving you what type of something to create. :)

Author:  William [ Wed Aug 23, 2006 6:00 pm ]
Post subject: 

Yeah, well I will do my thing in VB, so i'll figure something out.

Author:  Coke [ Wed Aug 23, 2006 8:41 pm ]
Post subject: 

can we make it crude and use picturebox's/ simple collision detection?

Author:  Lea [ Wed Aug 23, 2006 9:05 pm ]
Post subject: 

It's your game, do it however you want. If you can only manage that, and think it's a challenge, do it. If you can challenge yourself further, draw it entirely using DD, and use not a single control :)

Author:  Coke [ Wed Aug 23, 2006 9:18 pm ]
Post subject: 

I dont know the first thing about direct draw -embarassed-

Author:  William [ Thu Aug 24, 2006 3:12 pm ]
Post subject: 

Well you can basicly just use "shape" objects, thats the easiest way. I might blit images.. not sure yet..

Author:  Dragoons Master [ Thu Aug 24, 2006 3:15 pm ]
Post subject: 

I just got into winxp(I was using 2k) so I'll do this later, but I will! I think DD will look better and I'll use VB couse I never worked w/ GFX in C++(but I can make a text Tetris, like a DOS Tetris xD).

Author:  Krloz [ Thu Aug 24, 2006 8:28 pm ]
Post subject: 

Thats why I rarely come here now because I was just copy-pasting so I decided to make my game from scratch... and .. its hard xD

Author:  halla [ Thu Aug 24, 2006 11:46 pm ]
Post subject: 

from scratch is hard but its way more rewarding. Also doing so you really learn the language and you can actually add stuff in and make a real good game. I will give this a shot if I can but I will need to look at some vb tutorials first cause i Know this is above what I know.

Author:  Joost [ Fri Aug 25, 2006 11:11 am ]
Post subject: 

Working on it right now, but I'm having a bit of trouble thinking about how I'm going to do the blocks. I was thinking of generating 4 random 32*32 blocks and linking them up together randomly, but aren't there any better ways?

Author:  William [ Fri Aug 25, 2006 12:30 pm ]
Post subject: 

Well at the moment Im only using squares and rectangles, the thing Im having trouble with is to remove the bottom line, and removing a row of a shape and leaving the other part there. hehe

.. so Im in big troubles, I think I will investigate another way to fix this..

Author:  Joost [ Fri Aug 25, 2006 3:05 pm ]
Post subject: 

Tetris is actually pretty hard, compared to pong/asteroids/frogger/any oldtime game.

Author:  William [ Fri Aug 25, 2006 11:04 pm ]
Post subject: 

Not working as it should... try it... I tryed and failed coding it =/

Download Source: http://www.filesend.net/download.php?f= ... b53bcec61e

Image:
Image
http://img182.imageshack.us/img182/8448/tetrisfu3.png

Author:  Robin [ Fri Aug 25, 2006 11:19 pm ]
Post subject: 

Basically all it is is having a Type per shape, creating the different shapes before hand. Then, have code checking if the different lines are completed, if they are, go through all the shape's that partake in that line and edit some of the type accrdingly. You can then use BitBlt or BltFast to create the shapes depending on what bits are missing and so forth.

Of course, it is probably much harder in practise... but I don't have time to do the challenge :( Damn Math's revision...

Grrr... damn GCSE's *growl*

Author:  Shannara [ Fri Aug 25, 2006 11:19 pm ]
Post subject: 

Awesome, I guess I'll try a tetris clone tonight as well.. Sounds like a cool challenge!

Page 1 of 13 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/