You are on page 1of 3

MarybellePanlilio

Period3
1/27/16

IndividualProgrammingReflection

TheprogramIusedtocreatemygamewasScratch.Scratchcanbefoundon
https://scratch.mit.edu/
,andisfreetouse.Itrequiresapersontosignupforanaccountinorder
toutilizeit.Scratchisavisualprogramminglanguage,inwhichthatonecanmanipulate
programmingelementsvisuallyinsteadofusingtexttochangetheseelements.Scratchcanbe
definedasablendofprogramminglanguages,asthereareelementsfromeachlanguagefound
inScratch.Duetothis,theskillslearnedinScratchcanbeappliedtootherprogramming
languages.

Thepurposeformyindividuallydevelopedprogramwastotrytoentertainpeople.Iwantedto
makeagamethatwassimilarto
ZeldaII:TheAdventureofLink
,whereitwouldbea
sidescrollinggamewithRPGelements.Userswouldcontroltheplayerandjumpacrossthe
onlylevelIputinthegame.Inthelevel,thereisonly1enemythattheplayercaninteractwith.
Iftheplayerdoesnotdefeattheenemy,theytakedamage,andifenoughdamageistaken,
thentheydie.IalsoaddedSpadesbestfriend,Lilac,asawaytohavethebackdropstransition,
andrestartthegame,andseeiftheycandoanycoolglitches.Overall,Ifeltthatpeopleplaying
mygamecouldenjoythelittlequirksthatoccurhereandthere,andImyselfcouldseehow
frustrating(butsuccessful)itfeelstodevelopagame.

GameLink:
https://scratch.mit.edu/projects/95919723/


Thisispartofthecodeformygamefortheplayersprite,Spade.Whenthegreenflagis
clicked,itbeginstoexecutetheprogramwritten.TheSpeedvariableissetto7,asthatallows
forallofSpadesspritestobemanaged,andcontrolwhichonehedisplays.TheStance
variablecorrespondstooneofthecostumesinhissprite.Spadecanmoverightiftheplayer
pressestherightarrowkey,andifthehittestoftherighthitboxisequaltozero.Thesamegoes
forwhentheplayerpressestheleftarrowkey,exceptthatSpademovesleft.Inboth,they
containthevariablexVel,whichallowshimtomovefasterandsmootherwhilemovingina
directiononthexaxis.HisyVelwhentouchingeithergrassorgrass2allowshimtostayonthe
ground,butwhentheuparrowispressed,hejumpsintheair,andcomesbackdown.


ThispictureinparticularwasoneofthethingsfrustratingmethemostwhileIwasmakingmy
game.Originally,Spadewouldflipupsidedownwhentheleftarrowkeywaspressed.Idouble
checkedmycodetomakesureIdidntdoanythingwrongwhenmakingit.Afteracoupledays
offrustration,Iclickedontheiicontolookattheinformationaboutthesprite.Itturnsoutthat
therotationstyleforSpadesspritewassetatflipratherthanlateral.

You might also like