Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Tetris in <30 minutes?

Author
Message
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd May 2012 01:35
I tried to make Tetris in <30 minutes. This is what I have after an hour

Man I code messy when I'm rushing! Kind of disappointed that I haven't even gotten any controls yet but I'm still going with this.

WARNING: The above comment may contain sarcasm.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd May 2012 02:09
Another half an hour and I have something approaching semi-functional


WARNING: The above comment may contain sarcasm.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd May 2012 02:31 Edited at: 23rd May 2012 02:34
Two hours and it is coming together, you can move and rotate properly but no line clearing yet, and I realise how important the 4x1 block is, I will have to edit how I store the blocks to fit it in.


WARNING: The above comment may contain sarcasm.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd May 2012 03:07 Edited at: 23rd May 2012 03:17
Trying to let the player slide the blocks when they are touching is tricky, I feel I am doing it in a stupid way. Oh well I'm tired now so going to stop.
Here's what I produced in 2 1/2 hours.


WARNING: The above comment may contain sarcasm.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd May 2012 12:09 Edited at: 23rd May 2012 12:11
I knew someone would get caught out by the 4*1 block. It's good practice to code something fast. Someone is also bound to use real rotation instead of 90 deg rotation.

Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd May 2012 22:19 Edited at: 24th May 2012 00:12
Sounds like a challenge! I never tried programming tetris before. I tried OBese's code - the result looks pretty good. I haven't looked at how he did it. I'm gonna try and jump in the tank blind and see what I can come up with. I think I'll need 30 days instead of 30 minutes - but I'll give 30 mins a shot.

Okay, it's taken me 25 mins just to think up and type the data - not having even gotten to the coding. So far this much has been typed:



I got little more than nothin' after 1.5 hours. I've failed this challenge! It's taking me about 30 minutes just to think through the logic for each new task - like displaying the blocks or updating the positions. Then typing and bug fixing? forget about it!

Enjoy your day.
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th May 2012 05:23 Edited at: 24th May 2012 05:33
It's unsettling isn't it. lol
I think I might be able to get it done within four hours at best. But I've had time to think about it now which removes part of the challenge. I hope you finish it Latch!

I tried this because of Diggsey http://forum.thegamecreators.com/?m=forum_view&t=119154&b=5&p=0

WARNING: The above comment may contain sarcasm.
Fluffy Rabbit
User Banned
Posted: 25th May 2012 06:11
What I would do is just lie and say it took me 30 minutes, then be honest with everyone a week later when all of the good press died down.
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 25th May 2012 19:14
I would like to point out that the 30 minutes was just for the programming part: by the time I started I already knew exactly how I was going to implement everything.

[b]
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th May 2012 00:41
@Diggsey - Thank Valhalla for that! Still impressive though. I don't know if I could design and write anything playable in thirty minutes.

WARNING: The above comment may contain sarcasm.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 28th May 2012 20:26
Quote: "I hope you finish it Latch!"

Well, it was a fun challenge with trying to do everything (plan, design, layout, code) in 30 minutes - but moving forward would turn into an exercise and I'm not really into coding tetris as an excercise right now.

Enjoy your day.

Login to post a reply

Server time is: 2024-04-19 03:14:22
Your offset time is: 2024-04-19 03:14:22