Mirage Source

Free ORPG making software.
It is currently Mon Oct 07, 2024 6:30 pm

All times are UTC




Post new topic Reply to topic  [ 327 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next
Author Message
 Post subject: A Challenge!
PostPosted: Tue Aug 22, 2006 11:57 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 2:44 am 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
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.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 4:43 am 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 9:32 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
How many pieces should it have ?

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 10:47 am 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
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).

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 11:46 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Okay.. Willyou do it so you can flip them 90degrees?

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 11:48 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
You can design it yourself, William, do what you want :)

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 12:03 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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..

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 1:01 pm 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
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.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 5:06 pm 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
Is this a contest?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 5:23 pm 
Offline
Knowledgeable
User avatar

Joined: Sun May 28, 2006 10:07 pm
Posts: 327
Location: Washington
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. :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 6:00 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Yeah, well I will do my thing in VB, so i'll figure something out.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 8:41 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
can we make it crude and use picturebox's/ simple collision detection?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 9:05 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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 :)

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 9:18 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
I dont know the first thing about direct draw -embarassed-


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 3:12 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Well you can basicly just use "shape" objects, thats the easiest way. I might blit images.. not sure yet..

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 3:15 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 8:28 pm 
Offline
Knowledgeable
User avatar

Joined: Thu Jun 29, 2006 12:11 am
Posts: 120
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

_________________
©Krloz 2004-2006. all rights, lefts and other directions reserved
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 11:46 pm 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 11:11 am 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 12:30 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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..

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 3:05 pm 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
Tetris is actually pretty hard, compared to pong/asteroids/frogger/any oldtime game.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 11:04 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Last edited by William on Sat Aug 26, 2006 12:03 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 11:19 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
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*

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 11:19 pm 
Offline
Knowledgeable
User avatar

Joined: Sun May 28, 2006 7:22 pm
Posts: 101
Awesome, I guess I'll try a tetris clone tonight as well.. Sounds like a cool challenge!

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 327 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next

All times are UTC


Who is online

Users browsing this forum: wanai and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group