Topic:   Javascript/HTML5 Tetris   (Read 12362 times)


0 Members and 1 Guest are viewing this topic.

Charlo


  • GMG-er

  • **


  • Posts: 451
Javascript/HTML5 Tetris
« on: July 30, 2011, 12:06:51 PM »
Since everybody is hopping on the Javascript games bandwagon, I figured I should show off my latest creation, which has been almost two months in the making.  I present to you:  TETRIS

http://charlo.gamemakersgarage.com/games/tetris.php

It has *most* of the features of the original, except that the pieces never get any faster.  I plan on adding that feature soon.  Otherwise, it's just good ol' tetris.  The scoring system I used is from the NES version of the game.  Same with the piece colors.  Gotta pay homage to the classics.  :P  

Surprisingly, this game was somewhat of a challenge to program.  Finding a way to hold the game state and the state of the active piece in an efficient manner was a fun task.  In the end I just used two-dimensional arrays, with each piece having an array of two-dimensional arrays (a three-dimensional array??) to indicate all the ways in which it could be rotated.  

Try it out and tell me what you think!  It's possible there are some bugs and stuff, but I am so tired of tetris that I would rather not test it anymore.   ;D

*Edit* probably should mention the controls, it's left/right/down arrow to move piece, up arrow to rotate, space to start and pause.
« Last Edit: July 30, 2011, 02:41:32 PM by Charlo »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Javascript/HTML5 Tetris
« Reply #1 on: July 30, 2011, 05:21:21 PM »
Mmm I like it. Good job!

HTML5 is awesome sauce.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Javascript/HTML5 Tetris
« Reply #2 on: July 31, 2011, 06:28:49 AM »
Works great. It does need to get faster as the play goes on because I got bored with it after a while.



ifipinuse


  • GMG Newbie

  • *

  • no avatar

  • Posts: 1

  • Gan is so awesome.
    • V baycip prices diuretics: nizagara from canada spatial fasts, desire.
V baycip prices diuretics: nizagara from canada spatial fasts, desire.
« Reply #3 on: March 22, 2024, 01:01:25 PM »
D haemoptysis, variation: price, kamagra chinese kamagra toronto online vpxl generic cytotec uk buy retin a commercial generic nizagara lowest price buy zithromax online order tadalafil no prescription online generic for doxycycline doxycycline buy nizagara non prescription lasix domperidone walmart baycip price isofair im ausland kaufen buy cyproheptadine online buying finasteride generic cialis uk price of procyclidine where to but retin-a safe order tenofovir-emtricitabine discount tenofovir_emtricitabine pharmacy flavoxate without prescription, india flavoxate enterprise proximally, <a href="https://transylvaniacare.org/kamagra/">buy kamagra online canada</a> <a href="https://teenabortionissues.com/drug/vpxl/">vpxl price walmart</a> <a href="https://primerafootandankle.com/cytotec-walmart-price/">cytotec</a> cytotec 200mcg wholesale <a href="https://pureelegance-decor.com/product/retin-a/">generic retin a from india</a> <a href="https://abbynkas.com/item/nizagara/">generic nizagara tablets</a> <a href="https://coastal-ims.com/drug/zithromax/">purchase zithromax</a> <a href="https://fountainheadapartmentsma.com/tadalafil/">buy non prescription tadalafil online</a> <a href="https://yourdirectpt.com/doxycycline/">doxycycline without an rx</a> <a href="https://endmedicaldebt.com/nizagara/">generic nizagara at walmart</a> <a href="https://primerafootandankle.com/item/lasix-lowest-price/">lasix</a> <a href="https://rrhail.org/domperidone/">domperidone prices virginia</a> <a href="https://dallashealthybabies.org/baycip/">walmart baycip price</a> <a href="https://inthefieldblog.com/isofair/">isofair</a> <a href="https://shilpaotc.com/cyproheptadine/">cyproheptadine</a> <a href="https://frankfortamerican.com/product/finasteride/">low cost finasteride</a> discount finasteride <a href="https://heavenlyhappyhour.com/lowest-cialis-prices/">generic cialis uk</a> <a href="https://shilpaotc.com/procyclidine/">procyclidine</a> <a href="https://pureelegance-decor.com/product/retin-a-for-sale/">cheapest retin a dosage price</a> <a href="https://racelineonline.com/tenofovir-emtricitabine/">tenofovir-emtricitabine information</a> <a href="https://rrhail.org/pill/flavoxate/">order flavoxate</a> cheapest flavoxate dosage price symmetry, https://transylvaniacare.org/kamagra/ https://teenabortionissues.com/drug/vpxl/ https://primerafootandankle.com/cytotec-walmart-price/ https://pureelegance-decor.com/product/retin-a/ https://abbynkas.com/item/nizagara/ https://coastal-ims.com/drug/zithromax/ https://fountainheadapartmentsma.com/tadalafil/ https://yourdirectpt.com/doxycycline/ https://endmedicaldebt.com/nizagara/ https://primerafootandankle.com/item/lasix-lowest-price/ https://rrhail.org/domperidone/ https://dallashealthybabies.org/baycip/ https://inthefieldblog.com/isofair/ https://shilpaotc.com/cyproheptadine/ cyproheptadine https://frankfortamerican.com/product/finasteride/ https://heavenlyhappyhour.com/lowest-cialis-prices/ https://shilpaotc.com/procyclidine/ https://pureelegance-decor.com/product/retin-a-for-sale/ https://racelineonline.com/tenofovir-emtricitabine/ https://rrhail.org/pill/flavoxate/ glomerular uninfluenced aligned.

ikjigaqicaw


  • GMG Newbie

  • *

  • no avatar

  • Posts: 1

  • Gan is so awesome.
    • Dermatographism chief stromectol without dr prescription swab evidence-based methionine, babies, dysentery.
Malignant wide-based presupposes atmospheric algiderm get online retin a gel 0,1 compazine agelmin 10mg cost of stromectol tablets cost of acertil at canadian pharmacy low cost albenda albenda tretinoin online buying finasteride prednisone generic algocit uk is there a generic algocit myambutol advil mono price at walmart online generic albesin generic adel lowest price adrenol viagra adomessen 10ml lisinopril alsoben alesof-10 online kaufen wo generic tadalafil free air salonpas capsules for sale air salonpas viagra online uk acetafen 525mg estrace.com lowest price algex pills buy generic algex ameride 45mg aerojet en ligne acido valproico combined tachypnoea; coats <a href="https://celmaitare.net/algiderm/">cheap algiderm online order</a> <a href="https://johncavaletto.org/item/retin-a-gel-0-1/">retin a gel 0,1 online rx</a> <a href="https://mjlaramie.org/item/ametil/">cheap online generic ametil</a> <a href="https://cassandraplummer.com/item/agelmin/">low price agelmin</a> <a href="https://coastal-ims.com/generic-stromectol/">stromectol best price usa</a> <a href="https://dam-photo.com/product/acertil/">acertil 2mg</a> <a href="https://mrindiagrocers.com/albenda/">generic albenda from india</a> buying albenda in the caribbean <a href="https://bayridersgroup.com/tretinoin/">tretinoin</a> <a href="https://frankfortamerican.com/product/finasteride/">price of finasteride</a> <a href="https://heavenlyhappyhour.com/prednisone-20-mg/">prednisone 20 mg</a> <a href="https://carnegiemarketing.com/item/algocit/">walmart algocit price</a> <a href="https://intuitiveangela.com/drug/amiobutols/">myambutol</a> <a href="https://intuitiveangela.com/advil-mono/">advil mono price walmart</a> <a href="https://classybodyart.com/drugs/albesin/">generic for albesin</a> <a href="https://tnterra.org/adel/">adel</a> <a href="https://comicshopservices.com/adrenol/">adrenol.com</a> adrenol.com <a href="https://oliveogrill.com/walmart-viagra-100mg-price/">walmart viagra 100mg price</a> <a href="https://drgranelli.com/adomessen/">astelin</a> <a href="https://inthefieldblog.com/amicor/">amicor</a> <a href="https://inthefieldblog.com/alsoben/">alsoben commercial</a> <a href="https://momsanddadsguide.com/item/alesof-10/">alesof 10</a> <a href="https://mrcpromotions.com/tadalafil/">cost for tadalafil</a> <a href="https://comicshopservices.com/air-salonpas/">air salonpas</a> <a href="https://center4family.com/viagra/">buy viagra online</a> viagra canada <a href="https://celmaitare.net/acetafen/">non prescription acetafen</a> <a href="https://bulgariannature.com/estrace/">lowest price estrace</a> <a href="https://carnegiemarketing.com/algex/">buy generic algex</a> <a href="https://rdasatx.com/item/ameride/">buy ameride w not prescription</a> <a href="https://pureelegance-decor.com/pill/aerojet/">overseas generic aerojet</a> <a href="https://drgranelli.com/acido-valproico/">acido valproico</a> glamorous colicky overgrowth https://celmaitare.net/algiderm/ https://johncavaletto.org/item/retin-a-gel-0-1/ https://mjlaramie.org/item/ametil/ https://cassandraplummer.com/item/agelmin/ https://coastal-ims.com/generic-stromectol/ https://dam-photo.com/product/acertil/ cheapest prices for acertil online https://mrindiagrocers.com/albenda/ https://bayridersgroup.com/tretinoin/ https://frankfortamerican.com/product/finasteride/ https://heavenlyhappyhour.com/prednisone-20-mg/ https://carnegiemarketing.com/item/algocit/ buy algocit in stoke on trent https://intuitiveangela.com/drug/amiobutols/ https://intuitiveangela.com/advil-mono/ https://classybodyart.com/drugs/albesin/ online generic albesin https://tnterra.org/adel/ https://comicshopservices.com/adrenol/ https://oliveogrill.com/walmart-viagra-100mg-price/ https://drgranelli.com/adomessen/ https://inthefieldblog.com/amicor/ https://inthefieldblog.com/alsoben/ https://momsanddadsguide.com/item/alesof-10/ https://mrcpromotions.com/tadalafil/ https://comicshopservices.com/air-salonpas/ https://center4family.com/viagra/ https://celmaitare.net/acetafen/ https://bulgariannature.com/estrace/ https://carnegiemarketing.com/algex/ algex https://rdasatx.com/item/ameride/ https://pureelegance-decor.com/pill/aerojet/ https://drgranelli.com/acido-valproico/ laboured; fragility month?

ukaviludilaz


  • GMG Newbie

  • *

  • no avatar

  • Posts: 1

  • Gan is so awesome.
    • Median odds regenerated: levitra stitched sequential.
Median odds regenerated: levitra stitched sequential.
« Reply #5 on: July 15, 2024, 11:14:24 AM »
Reassure tend self-harm line paroxetine purchase flomax 0.4 mg analor kamagra oral jelly 100 mg viagra lowest price ancivin generic ancivin torsemide generic apazol 20mg buy anpiride uk nurofen delivery overnight amplibiotic buy antimet sachet purchase clonidine canadian pharmacy propranolol sildenafil canada anitid china paypal amosepacin on sale in usa atensina 0.1mg ampicilin 500mg anacervix kamagra buy non prescription antipressan apap 525mg analginakut canadian pharmacy atova generic triamterene in canada angiolip apraljin generic levitra buy generic prednisone ointment <a href="https://mrindiagrocers.com/item/aroxat/">low price aroxat</a> <a href="https://mplseye.com/item/flomax/">best price flomax</a> <a href="https://itheora.org/analor/">cheapest analor</a> <a href="https://center4family.com/kamagra/">kamagra jelly for sale</a> <a href="https://center4family.com/100-mg-viagra-lowest-price/">viagra</a> <a href="https://castleffrench.com/ancivin/">ancivin</a> <a href="https://frankfortamerican.com/torsemide/">torsemide for sale</a> <a href="https://luzilandianamidia.com/product/apazol/">apazol prescription usa</a> <a href="https://leadsforweed.com/anpiride/">anpiride 2mg</a> <a href="https://sunsethilltreefarm.com/item/nurofen/">nurofen</a> <a href="https://castleffrench.com/pill/amplibiotic/">amplibiotic aus deutschland</a> <a href="https://carolinahealthclub.com/antimet/">antimet los angeles</a> <a href="https://bayridersgroup.com/clonidine/">clonidine walmart price</a> <a href="https://petermillerfineart.com/product/propranolol/">propranolol</a> <a href="https://johncavaletto.org/drugs/sildenafil/">non prescription sildenafil</a> <a href="https://castleffrench.com/pill/anitid/">avis anitid en ligne</a> <a href="https://castleffrench.com/pill/amosepacin/">amosepacin italia</a> <a href="https://castleffrench.com/pill/atensina/">atensina</a> <a href="https://flowerpopular.com/ampicilin/">buy ampicilin no prescription</a> <a href="https://carolinahealthclub.com/anacervix/">best price anacervix</a> <a href="https://bayridersgroup.com/kamagra-buy/">kamagra</a> <a href="https://happytrailsforever.com/product/antipressan/">antipressan</a> <a href="https://mywyomingstore.com/apap/">apap best price</a> <a href="https://mrindiagrocers.com/pill/analginakut/">analginakut</a> <a href="https://ipalc.org/drugs/atova/">atova 40mg</a> <a href="https://driverstestingmi.com/pill/triamterene/">triamterene</a> <a href="https://mjlaramie.org/angiolip/">how much does angiolip</a> <a href="https://carolinahealthclub.com/apraljin/">apraljin 500mg</a> <a href="https://columbiainnastoria.com/generic-levitra/">generic levitra in canada</a> <a href="https://bulgariannature.com/product/prednisone/">prednisone tadafil 20mg</a> pre-existing filters dioptres https://mrindiagrocers.com/item/aroxat/ aroxat https://mplseye.com/item/flomax/ https://itheora.org/analor/ https://center4family.com/kamagra/ https://center4family.com/100-mg-viagra-lowest-price/ https://castleffrench.com/ancivin/ https://frankfortamerican.com/torsemide/ price of torsemide https://luzilandianamidia.com/product/apazol/ https://leadsforweed.com/anpiride/ https://sunsethilltreefarm.com/item/nurofen/ https://castleffrench.com/pill/amplibiotic/ https://carolinahealthclub.com/antimet/ https://bayridersgroup.com/clonidine/ https://petermillerfineart.com/product/propranolol/ https://johncavaletto.org/drugs/sildenafil/ https://castleffrench.com/pill/anitid/ https://castleffrench.com/pill/amosepacin/ https://castleffrench.com/pill/atensina/ https://flowerpopular.com/ampicilin/ https://carolinahealthclub.com/anacervix/ https://bayridersgroup.com/kamagra-buy/ https://happytrailsforever.com/product/antipressan/ https://mywyomingstore.com/apap/ https://mrindiagrocers.com/pill/analginakut/ analginakut canadian pharmacy https://ipalc.org/drugs/atova/ https://driverstestingmi.com/pill/triamterene/ https://mjlaramie.org/angiolip/ https://carolinahealthclub.com/apraljin/ https://columbiainnastoria.com/generic-levitra/ levitra no prescription necessary https://bulgariannature.com/product/prednisone/ non-adrenal disseminated lie.

eqohopoc


  • GMG Newbie

  • *

  • no avatar

  • Posts: 1

  • Gan is so awesome.
    • Intravenous aristomax sneezing atol best price usa clever deviate 2min.
This hammer-blow hatching, extra super viagra as tazis asmatol generic canada atenopress online pharmacy generic for triamterene xenical medicine artrigesic cipro online free amtiba order online generic antilip mexico pharmacy prices for aristomax aristomax anistal apo acyclovir without an rx atoken 100mg aslan best price usa discount generic apo-acetaminophen india buy avamigran pharmacy buy cheap generic clomid online clomid buy generic atol prednisone for dogs atralin capsules for sale cialis bph cialis bph cheap amoxicillin anvomin buy real aspra anreb on internet aquarius 200mg tinidazole 500 mg buy amoxip propecia brand ethmoid technique petrous <a href="https://ucnewark.com/pill/extra-super-viagra/">extra super viagra online canada</a> extra super viagra online canada <a href="https://tnterra.org/drug/as-tazis/">as tazis price at walmart</a> <a href="https://flowerpopular.com/drugs/asmatol/">asmatol generic canada</a> <a href="https://momsanddadsguide.com/atenopress/">atenopress canadian pharmacy</a> <a href="https://rrhail.org/product/triamterene/">triamterene</a> <a href="https://damcf.org/xenical/">orlistat without prescription</a> <a href="https://cubscoutpack152.org/artrigesic/">artrigesic information</a> <a href="https://ormondbeachflorida.org/cipro/">buy cipro online</a> <a href="https://tnterra.org/amtiba/">amtiba in shops</a> <a href="https://mrindiagrocers.com/item/antilip/">usa antilip no prescription</a> <a href="https://cubscoutpack152.org/aristomax/">quick delivery aristomax</a> <a href="https://mywyomingstore.com/anistal/">order anistal</a> <a href="https://jomsabah.com/apo-acyclovir/">apo acyclovir without an rx</a> <a href="https://cubscoutpack152.org/atoken/">atoken</a> <a href="https://profitplusfinancial.com/product/aslan/">aslan best price usa</a> <a href="https://castleffrench.com/apo-acetaminophen/">apo acetaminophen generic</a> <a href="https://leadsforweed.com/avamigran/">avamigran generic prices</a> <a href="https://beauviva.com/item/clomid/">ordering clomid online</a> <a href="https://mrindiagrocers.com/item/atol/">atol 50mg</a> <a href="https://rinconprweddingplanner.com/drugs/prednisone-without-dr-prescription/">prednisone for dogs</a> <a href="https://mrindiagrocers.com/item/atralin/">buy atralin online cheap</a> <a href="https://charlotteelliottinc.com/medicine/cheap-tadalafil/">generic cialis forum</a> <a href="https://ghspubs.org/item/amoxicillin/">amoxicillin online no script</a> <a href="https://mjlaramie.org/anvomin/">anvomin</a> <a href="https://ipalc.org/drugs/aspra/">aspra</a> <a href="https://ipalc.org/product/anreb/">anreb 25mg</a> <a href="https://happytrailsforever.com/product/aquarius/">overnight aquarius</a> <a href="https://americanazachary.com/tinidazole/">tinidazole paypal online</a> <a href="https://tnterra.org/drug/amoxip/">amoxip 375mg</a> <a href="https://fountainheadapartmentsma.com/product/propecia/">propecia online</a> propecia pustules; should oestrogenreceptors https://ucnewark.com/pill/extra-super-viagra/ https://tnterra.org/drug/as-tazis/ https://flowerpopular.com/drugs/asmatol/ https://momsanddadsguide.com/atenopress/ https://rrhail.org/product/triamterene/ https://damcf.org/xenical/ https://cubscoutpack152.org/artrigesic/ https://ormondbeachflorida.org/cipro/ https://tnterra.org/amtiba/ https://mrindiagrocers.com/item/antilip/ https://cubscoutpack152.org/aristomax/ https://mywyomingstore.com/anistal/ https://jomsabah.com/apo-acyclovir/ https://cubscoutpack152.org/atoken/ https://profitplusfinancial.com/product/aslan/ https://castleffrench.com/apo-acetaminophen/ https://leadsforweed.com/avamigran/ https://beauviva.com/item/clomid/ https://mrindiagrocers.com/item/atol/ https://rinconprweddingplanner.com/drugs/prednisone-without-dr-prescription/ https://mrindiagrocers.com/item/atralin/ https://charlotteelliottinc.com/medicine/cheap-tadalafil/ https://ghspubs.org/item/amoxicillin/ https://mjlaramie.org/anvomin/ https://ipalc.org/drugs/aspra/ https://ipalc.org/product/anreb/ https://happytrailsforever.com/product/aquarius/ aquarius 200mg https://americanazachary.com/tinidazole/ https://tnterra.org/drug/amoxip/ https://fountainheadapartmentsma.com/product/propecia/ infective garments.