認(rèn)識(shí)Scratch-教學(xué)講解課件_第1頁(yè)
認(rèn)識(shí)Scratch-教學(xué)講解課件_第2頁(yè)
認(rèn)識(shí)Scratch-教學(xué)講解課件_第3頁(yè)
認(rèn)識(shí)Scratch-教學(xué)講解課件_第4頁(yè)
認(rèn)識(shí)Scratch-教學(xué)講解課件_第5頁(yè)
已閱讀5頁(yè),還剩131頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

認(rèn)識(shí)Scratch!DongJun

Feb20171ppt課件認(rèn)識(shí)Scratch!DongJun

Feb20171p舞臺(tái)區(qū)2ppt課件舞臺(tái)區(qū)2ppt課件我來(lái)試一試1-1在舞臺(tái)上移動(dòng)鼠標(biāo),觀察(x,y)坐標(biāo)值的。如果鼠標(biāo)超出了舞臺(tái)的邊緣,數(shù)值發(fā)生什么變化?3ppt課件我來(lái)試一試1-1在舞臺(tái)上移動(dòng)鼠標(biāo),觀察(x,y)坐標(biāo)值的。3我來(lái)試一試1-24ppt課件我來(lái)試一試1-24ppt課件舞臺(tái)背景區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)背景自己繪制一個(gè)背景打開(kāi)一個(gè)文件作為背景利用攝像頭拍一張圖片作為背景5ppt課件舞臺(tái)背景區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)背景5ppt課件角色區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)角色自己繪制一個(gè)角色打開(kāi)一個(gè)文件作為角色利用攝像頭拍一張圖片作為角色6ppt課件角色區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)角色6ppt課件探索積木區(qū)動(dòng)作區(qū)外觀區(qū)偵測(cè)區(qū)聲音區(qū)事件區(qū)控制區(qū)畫筆區(qū)7ppt課件探索積木區(qū)動(dòng)作區(qū)7ppt課件外觀顏色1-28ppt課件外觀顏色1-28ppt課件乒乓游戲第一步:準(zhǔn)備背景第二步:加入乒乓和球板第三步:讓角色動(dòng)起來(lái)乒乓球(角度方向,隨機(jī)值(向下(-45,45)向上(135,225)))球板(跟隨鼠標(biāo)的x)9ppt課件乒乓游戲第一步:準(zhǔn)備背景9ppt課件10ppt課件10ppt課件WhatisScratch?Scratchisafreeprogrammabletoolkitthatenableskidstocreatetheirowngames,animatedstories,andinteractiveartandsharetheircreationswithoneanotherovertheInternet.11ppt課件WhatisScratch?ScratchisafWhatisScratch?ScratchbuildsonthelongtraditionofLogoandLEGO/Logo,buttakesadvantageofnewcomputationalideasandcapabilitiestomakeiteasierforkidstogetstartedwithprogramming(loweringthefloor)andtoextendtherangeofwhatkidscancreateandlearn(raisingtheceiling).12ppt課件WhatisScratch?ScratchbuildsWhatisScratch?Theultimategoalistohelpkidsbecomefluentwithdigitalmedia,empoweringthemtoexpressthemselvescreativelyandmakeconnectionstopowerfulideas.13ppt課件WhatisScratch?TheultimategWhatisScratch?ScratchisbuiltontopoftheSqueakenvironmentdevelopedbyAlanKayandcolleagues.14ppt課件WhatisScratch?ScratchisbuiWhatisScratch?ScratchisbeingdevelopedbytheLifelongKindergartenresearchgroupattheMITMediaLab,incollaborationwithKIDSresearchgroupattheUCLAGraduateSchoolofEducation&InformationStudies.15ppt課件WhatisScratch?ScratchisbeiLet’sGetStarted!ToOpenScratch,double-clickontheScratch(cat)iconorclickonScratch.exe16ppt課件Let’sGetStarted!ToOpenScraGettingStartedWithScratchOnceyou’veopenedScratch,youshouldseethisdefaultscreen:17ppt課件GettingStartedWithScratchOnWatchaQuickIntroductiontoScratch!18ppt課件WatchaQuickIntroductiontoLet’sLookAtSomeScratchExamplesGotoOpen>ProjectsandchoosethecategoryAnimationLookthroughthemandseewhatyouwillbeabletodoinScratch!(Someofthesehavesound.Pleasebeconsiderateofyourneighborsandturnthesounddownonyourcomputers!Askyourteachertohelpyouifyoudon’tknowhow.)19ppt課件Let’sLookAtSomeScratchExaChooseYourSprite!Youwillnoticethatthedefaultspriteisanorangecat.(Aspriteisasmallgraphicthatcanbemovedindependentlyaroundthescreen,producinganimatedeffects.)YoucanchooseadifferentspritetoprogramfromalibraryinScratch,oryoucandrawyourown!Youwillcreateyourownspritelater.20ppt課件ChooseYourSprite!YouwillnoChooseYourSprite!TochooseaspritefromtheScratchlibrary,clickontheFolderwithaStaricon.Whenyouhoveryourmouseoverit,itwillsay“Choosenewspritefromfile”.21ppt課件ChooseYourSprite!TochooseaChooseYourSprite!Openthefoldersofthedifferentcategoriesofsprites.Chooseonethatyou’dliketoexperimentwithbydoubleclickingonit.Youcanhavemorethanonespriteinyouranimation!22ppt課件ChooseYourSprite!OpenthChooseYourSprite!Onceyouhaveaspritethatyou’dliketoprogram,youcandeletetheorangecatspritebyclickingthescissoriconandclickingonthecat!Makesurethatyouclickonthearrowiconbeforeyoudoanythingelse–otherwise,you’lldeletesomethingthatyoureallywanted!Youcanalsorightclickontheicontodeletethatsprite23ppt課件ChooseYourSprite!OnceyouhaResizeYourSprite!Youcanmakeyourspritelargerorsmallerbyusingthe“growsprite”or“shrinksprite”icons.Youclickononeoftheseicons,thenclickonyourspriteuntilitisthesizeyou’dlike.24ppt課件ResizeYourSprite!YoucanmakChooseYourBackground!Rightnow,youhaveaplain,whitebackground–boring!YoucanalsochangeyourbackgroundbychoosingonefromtheScratchlibraryorcreatingyourown!25ppt課件ChooseYourBackground!RightnChooseYourBackground!ClickontheStage:Now,selectthe“Backgrounds”tab!26ppt課件ChooseYourBackground!ClickoChangeYourBackground!Youcanexperimentwithcreatingorimportingyourownbackgroundlater,but,forrightnow–chooseonefromthelibrarybyselectingImport.27ppt課件ChangeYourBackground!YoucanChangeTheBackground!

Fromthisscreen,youcanchooseoneofthecategoryfolders,andselectabackgroundthatyoulikebydoubleclickingonit!28ppt課件ChangeTheBackground!FromNow,We’reReadytoProgram!Now,youshouldhaveaspriteandabackgroundthatyou’dliketoworkwith!29ppt課件Now,We’reReadytoProgram!NoProgrammingInScratch!Thefirstthingyouneedtodoistoclickonthespriteyouwanttoprogram,andselectthe“Scripts”tab.Sinceyourspriteistheonlythingthatcanbeanimated,makesureyouhaveitselected.TheScriptsareaiswhereyou“build”yourprogrambyusingtheprogrammingblocks.30ppt課件ProgrammingInScratch!ThefirProgrammingInScratch!Intheupper,left-handcornerofyourScratchwindow,youwillsee8buttons.Eachofthesebuttonshaveprogrammingblocksinthoseparticularareas.WewillfirstexperimentwiththeMotionblocks.31ppt課件ProgrammingInScratch!IntheMotion!Whenyouclickonthemotionbutton,youwillseetheprogrammingblocksthatcanbeusedwithyoursprite.Let’sallprogramourspriteswiththesamecodefirst,andthenyou’llbeallowedtoexperimentonyourown!32ppt課件Motion!WhenyouclickonthemMotion!Dragoutthe“move10steps”block.Changethe“10”to“50”byclickingintheblockandtypingin50.Toseeyourspritemove50pixelstotheright,doubleclickontheblockintheScriptarea.Cool,isn’tit?!33ppt課件Motion!Dragoutthe“move10sMotionYoucanalsosetthemotionblocktomoveanegativenumberofpixelsbytypinganegativenumberintheblock.Thiswillmoveyourspritethatnumberofpixelsintheoppositedirection.34ppt課件MotionYoucanalsosetthemotWhatIsAPixel?We’vebeentalkingaboutpixels–whatisapixel?Apixelisoneofthesmallunitsthatmakeupanimageonacomputerortelevisionscreen.Itisderivedfromthewordspictureandelementtomakepixel!

35ppt課件WhatIsAPixel?We’vebeentalTheScratchStageTheScratchstageis480pixelswideand360pixelshigh.-240240180-18036ppt課件TheScratchStageTheScratchsMoreMotion!Now,addthe“turn15degrees”blocktotheotherblockofcode.Whenyouseethewhitebarbetweenthe2blocksofcode,youcanreleaseyourmouse.Thatwhitebarmeansthatthe2blockswill“snap”ontotheotherblock.37ppt課件MoreMotion!Now,addthe“turnMoreMotion!Again,youcanchangethenumberofdegreesbydoubleclickinginthatareaandtypinginthenumberofdegreesyou’dlikeyourspritetorotate.Doubleclickontheblockstoseeyourspritemoveandrotate!38ppt課件MoreMotion!Again,youcanchaExperimentWithMotion!We’veonlyused2oftheblocksintheMotioncategory.Forthenextfewminutes,IwantyoutoexperimentwithalloftheotherblocksintheMotioncategory.Ifyou’dliketoseewhatablockdoes,rightclickontheblockandthenclickonhelp.YoucandeletecodeeasilybyjustdraggingitfromtheScriptarea!Havefun!39ppt課件ExperimentWithMotion!We’veoControl!ThenextcategoryofprogrammingbuttonswewillexperimentwithistheControlcategory.Thisisaveryimportantcategorybecauseitcontrolshowmanytimesaneventhappens,howlonganeventhappens,orwhenaneventhappens.40ppt課件Control!ThenextcategoryofpControl!ThefirstblockI’dlikeustouseisthe“whenflagclicked”block:Dragthisblockout,andsnapitontopoftheblocksyoualreadyhaveinyourscript.41ppt課件Control!ThefirstblockI’dliControl!Now,insteadofhavingtodoubleclickonyourblockofcode,youcanjustclickontheflagicontoplayyouranimation!Clickheretostart42ppt課件Control!Now,insteadofhavingPresentationModeWhenyouclickonthepresentationmodebutton,youranimationwillfillthewholescreen!Toexitpresentationmode,clickthearrowinthetopleftofthescreen,orjustpresstheEsckey.43ppt課件PresentationModeWhenyouclicBacktoControl!OtherpowerfulblocksintheControlcategoryaretheblocksthathandleconditionalstatements.Conditionalstatementsarecommonlycalled“ifstatements”or“if-elsestatements”.44ppt課件BacktoControl!OtherpowerfulConditionalStatementsThiscodemeansthatiftheuserpressestheSpacekeyonthekeyboard,thespritewillmove10steps.45ppt課件ConditionalStatementsThiscodSensing!Theconditionalstatementsmustbeusedalongwiththesensingblocks.(Noticetheshapeofsomeofthesensingblocks.Theyaretheonesthatwillfitinsidethe“condition”sincetheyhave6sides)46ppt課件Sensing!TheconditionalstatemBacktoControl!Forthenextfewminutes,experimentwiththeblocksinMotion,Control,andSensing.Rightclickonablockandselecthelptogetinformationaboutablock.Whenyougetsomethingcool,I’dliketoseeit!47ppt課件BacktoControl!ForthenextfSound!Now,let’saddsomesoundtoouranimation!Therearemanydifferentwaystogetsoundinyouranimation.Thefirstwaywe’regoingtoexperimentwithisbyimportingasoundfromtheScratchsoundlibrary.48ppt課件Sound!Now,let’saddsomesounImportingSoundFromTheScratchSoundLibraryClickonthespriteyouwanttohavesound.ClickontheSoundstabandselectImport.49ppt課件ImportingSoundFromTheScratScratchSoundLibraryYouwillseedifferentcategoriesofsoundsthatyoucanuseinyouranimationthatareavailableforyouintheScratchlibrary.50ppt課件ScratchSoundLibraryYouwillInsertingSoundOnceyoufindasoundthatyoulike,selectitandclickonOK.Youwillseethesoundyoujustselectedshowupunder“NewSound”.51ppt課件InsertingSoundOnceyoufindaPlayYourSoundIfyouclickonthe“Play”button,youcanpreviewyoursound.52ppt課件PlayYourSoundIfyouclickonAddingTheSoundToYourAnimationNow,you’rereadytoaddthesoundtoyouranimation!ClickontheScripttab.Selectthespriteyouwanttohavesound.NowselecttheSoundbutton.53ppt課件AddingTheSoundToYourAnimaAddingSoundNow,selectoneoftheblocksthatsays,“playsound…”Selectyoursoundfromthedrop-downmenubyclickingonthetrianglenextto“pop”.54ppt課件AddingSoundNow,selectoneofRecordingaSoundClickontherecordbuttontorecordasoundClickontheredbuttontostartrecordingClickonthesquaretostopYoucanrenamethesoundbytypingoverthename55ppt課件RecordingaSoundClickontheIncorporateSoundIntoYourAnimation!WhenIclicktheflag,mybeewillmoveandbuzz.56ppt課件IncorporateSoundIntoYourAnTimeToPlay!Forthenextfewminutes,experimentwithMotion,Control,Sensing,andSound!Whenyougetsomethingcool,letmeseeit!57ppt課件TimeToPlay!ForthenextfewUsingThePen!WhenusingthePentools,yourspriteactuallybecomesyourwritinginstrument!YoucanchangethePen’scolor,itsshade,anditssize.58ppt課件UsingThePen!WhenusingthePUsingthePen!YourfirstPenchallengeistowriteyourinitialsusingthePentools.Itmaysoundeasy,but,youhavetoremembertoliftyourpenwhennecessaryandalsotoputitbackdown!59ppt課件UsingthePen!YourfirstPencPenChallenge#2GreatjobwithPenChallenge#1!YoursecondPenChallengeistousethetoolstocreateaninterestingdesign.RememberthatyoucanchangePencolorandshade!60ppt課件PenChallenge#2GreatjobwithNumbers!TherearemanyanimationeffectsyoucancreateusingNumbersinScratch.Oneeffectisrandommovementofasprite!61ppt課件Numbers!TherearemanyanimatiRandomMovementRememberthattheScratchanimationareais480pixelswideand360pixelshigh.Thatmeansthattherangeonthehorizontalaxisisfrom-240to240.Therangeontheverticalaxisis

-180to180.62ppt課件RandomMovementRememberthattRandomMovementThisistheblockofcodeIwoulduseifIwantedmyspritetorandomlyglidetheentirehorizontalandverticaldistanceofmyScratchanimationarea:63ppt課件RandomMovementThisisthebloNumbers!Forthenextfewminutes,experimentwiththetoolsinMotion,Control,Sensing,Sound,andNumbers.Clickrightonablockandselecthelptoseewhatitdoes.Whenyougetsomethingcool,letmeseeit!64ppt課件Numbers!ForthenextfewminutVariables!Variablesareusedmainlyinthedevelopmentofgames.OpensomeoftheexamplesinProjects>Gamestoseehowvariablesareusedtokeepscoreinagame.65ppt課件Variables!VariablesareusedmTimeToHaveFun!Nowit’stimeforyoutocreateyourownoriginalanimationsorgames!Eachtablehasasetof12laminatedcardswithdifferentprojectsthatyoucantry,togiveyouideasforyourownanimation.66ppt課件TimeToHaveFun!Nowit’stimeLearnHowTo:Whileyou’recreatingyourownScratchanimation,Iwantyoutodiscoverhowto:Createyourownsprite;Createyourownbackground;67ppt課件LearnHowTo:Whileyou’recreaLastSlide!Rememberto:Beappropriate;Becreative;Havefun!YouwillalsobegivenaScratchHelpGuide,completewithscreenshotstohelpyougetstarted.68ppt課件LastSlide!Rememberto:68ppt課件認(rèn)識(shí)Scratch!DongJun

Feb201769ppt課件認(rèn)識(shí)Scratch!DongJun

Feb20171p舞臺(tái)區(qū)70ppt課件舞臺(tái)區(qū)2ppt課件我來(lái)試一試1-1在舞臺(tái)上移動(dòng)鼠標(biāo),觀察(x,y)坐標(biāo)值的。如果鼠標(biāo)超出了舞臺(tái)的邊緣,數(shù)值發(fā)生什么變化?71ppt課件我來(lái)試一試1-1在舞臺(tái)上移動(dòng)鼠標(biāo),觀察(x,y)坐標(biāo)值的。3我來(lái)試一試1-272ppt課件我來(lái)試一試1-24ppt課件舞臺(tái)背景區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)背景自己繪制一個(gè)背景打開(kāi)一個(gè)文件作為背景利用攝像頭拍一張圖片作為背景73ppt課件舞臺(tái)背景區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)背景5ppt課件角色區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)角色自己繪制一個(gè)角色打開(kāi)一個(gè)文件作為角色利用攝像頭拍一張圖片作為角色74ppt課件角色區(qū)-試一試嘗試使用圖庫(kù)新建一個(gè)角色6ppt課件探索積木區(qū)動(dòng)作區(qū)外觀區(qū)偵測(cè)區(qū)聲音區(qū)事件區(qū)控制區(qū)畫筆區(qū)75ppt課件探索積木區(qū)動(dòng)作區(qū)7ppt課件外觀顏色1-276ppt課件外觀顏色1-28ppt課件乒乓游戲第一步:準(zhǔn)備背景第二步:加入乒乓和球板第三步:讓角色動(dòng)起來(lái)乒乓球(角度方向,隨機(jī)值(向下(-45,45)向上(135,225)))球板(跟隨鼠標(biāo)的x)77ppt課件乒乓游戲第一步:準(zhǔn)備背景9ppt課件78ppt課件10ppt課件WhatisScratch?Scratchisafreeprogrammabletoolkitthatenableskidstocreatetheirowngames,animatedstories,andinteractiveartandsharetheircreationswithoneanotherovertheInternet.79ppt課件WhatisScratch?ScratchisafWhatisScratch?ScratchbuildsonthelongtraditionofLogoandLEGO/Logo,buttakesadvantageofnewcomputationalideasandcapabilitiestomakeiteasierforkidstogetstartedwithprogramming(loweringthefloor)andtoextendtherangeofwhatkidscancreateandlearn(raisingtheceiling).80ppt課件WhatisScratch?ScratchbuildsWhatisScratch?Theultimategoalistohelpkidsbecomefluentwithdigitalmedia,empoweringthemtoexpressthemselvescreativelyandmakeconnectionstopowerfulideas.81ppt課件WhatisScratch?TheultimategWhatisScratch?ScratchisbuiltontopoftheSqueakenvironmentdevelopedbyAlanKayandcolleagues.82ppt課件WhatisScratch?ScratchisbuiWhatisScratch?ScratchisbeingdevelopedbytheLifelongKindergartenresearchgroupattheMITMediaLab,incollaborationwithKIDSresearchgroupattheUCLAGraduateSchoolofEducation&InformationStudies.83ppt課件WhatisScratch?ScratchisbeiLet’sGetStarted!ToOpenScratch,double-clickontheScratch(cat)iconorclickonScratch.exe84ppt課件Let’sGetStarted!ToOpenScraGettingStartedWithScratchOnceyou’veopenedScratch,youshouldseethisdefaultscreen:85ppt課件GettingStartedWithScratchOnWatchaQuickIntroductiontoScratch!86ppt課件WatchaQuickIntroductiontoLet’sLookAtSomeScratchExamplesGotoOpen>ProjectsandchoosethecategoryAnimationLookthroughthemandseewhatyouwillbeabletodoinScratch!(Someofthesehavesound.Pleasebeconsiderateofyourneighborsandturnthesounddownonyourcomputers!Askyourteachertohelpyouifyoudon’tknowhow.)87ppt課件Let’sLookAtSomeScratchExaChooseYourSprite!Youwillnoticethatthedefaultspriteisanorangecat.(Aspriteisasmallgraphicthatcanbemovedindependentlyaroundthescreen,producinganimatedeffects.)YoucanchooseadifferentspritetoprogramfromalibraryinScratch,oryoucandrawyourown!Youwillcreateyourownspritelater.88ppt課件ChooseYourSprite!YouwillnoChooseYourSprite!TochooseaspritefromtheScratchlibrary,clickontheFolderwithaStaricon.Whenyouhoveryourmouseoverit,itwillsay“Choosenewspritefromfile”.89ppt課件ChooseYourSprite!TochooseaChooseYourSprite!Openthefoldersofthedifferentcategoriesofsprites.Chooseonethatyou’dliketoexperimentwithbydoubleclickingonit.Youcanhavemorethanonespriteinyouranimation!90ppt課件ChooseYourSprite!OpenthChooseYourSprite!Onceyouhaveaspritethatyou’dliketoprogram,youcandeletetheorangecatspritebyclickingthescissoriconandclickingonthecat!Makesurethatyouclickonthearrowiconbeforeyoudoanythingelse–otherwise,you’lldeletesomethingthatyoureallywanted!Youcanalsorightclickontheicontodeletethatsprite91ppt課件ChooseYourSprite!OnceyouhaResizeYourSprite!Youcanmakeyourspritelargerorsmallerbyusingthe“growsprite”or“shrinksprite”icons.Youclickononeoftheseicons,thenclickonyourspriteuntilitisthesizeyou’dlike.92ppt課件ResizeYourSprite!YoucanmakChooseYourBackground!Rightnow,youhaveaplain,whitebackground–boring!YoucanalsochangeyourbackgroundbychoosingonefromtheScratchlibraryorcreatingyourown!93ppt課件ChooseYourBackground!RightnChooseYourBackground!ClickontheStage:Now,selectthe“Backgrounds”tab!94ppt課件ChooseYourBackground!ClickoChangeYourBackground!Youcanexperimentwithcreatingorimportingyourownbackgroundlater,but,forrightnow–chooseonefromthelibrarybyselectingImport.95ppt課件ChangeYourBackground!YoucanChangeTheBackground!

Fromthisscreen,youcanchooseoneofthecategoryfolders,andselectabackgroundthatyoulikebydoubleclickingonit!96ppt課件ChangeTheBackground!FromNow,We’reReadytoProgram!Now,youshouldhaveaspriteandabackgroundthatyou’dliketoworkwith!97ppt課件Now,We’reReadytoProgram!NoProgrammingInScratch!Thefirstthingyouneedtodoistoclickonthespriteyouwanttoprogram,andselectthe“Scripts”tab.Sinceyourspriteistheonlythingthatcanbeanimated,makesureyouhaveitselected.TheScriptsareaiswhereyou“build”yourprogrambyusingtheprogrammingblocks.98ppt課件ProgrammingInScratch!ThefirProgrammingInScratch!Intheupper,left-handcornerofyourScratchwindow,youwillsee8buttons.Eachofthesebuttonshaveprogrammingblocksinthoseparticularareas.WewillfirstexperimentwiththeMotionblocks.99ppt課件ProgrammingInScratch!IntheMotion!Whenyouclickonthemotionbutton,youwillseetheprogrammingblocksthatcanbeusedwithyoursprite.Let’sallprogramourspriteswiththesamecodefirst,andthenyou’llbeallowedtoexperimentonyourown!100ppt課件Motion!WhenyouclickonthemMotion!Dragoutthe“move10steps”block.Changethe“10”to“50”byclickingintheblockandtypingin50.Toseeyourspritemove50pixelstotheright,doubleclickontheblockintheScriptarea.Cool,isn’tit?!101ppt課件Motion!Dragoutthe“move10sMotionYoucanalsosetthemotionblocktomoveanegativenumberofpixelsbytypinganegativenumberintheblock.Thiswillmoveyourspritethatnumberofpixelsintheoppositedirection.102ppt課件MotionYoucanalsosetthemotWhatIsAPixel?We’vebeentalkingaboutpixels–whatisapixel?Apixelisoneofthesmallunitsthatmakeupanimageonacomputerortelevisionscreen.Itisderivedfromthewordspictureandelementtomakepixel!

103ppt課件WhatIsAPixel?We’vebeentalTheScratchStageTheScratchstageis480pixelswideand360pixelshigh.-240240180-180104ppt課件TheScratchStageTheScratchsMoreMotion!Now,addthe“turn15degrees”blocktotheotherblockofcode.Whenyouseethewhitebarbetweenthe2blocksofcode,youcanreleaseyourmouse.Thatwhitebarmeansthatthe2blockswill“snap”ontotheotherblock.105ppt課件MoreMotion!Now,addthe“turnMoreMotion!Again,youcanchangethenumberofdegreesbydoubleclickinginthatareaandtypinginthenumberofdegreesyou’dlikeyourspritetorotate.Doubleclickontheblockstoseeyourspritemoveandrotate!106ppt課件MoreMotion!Again,youcanchaExperimentWithMotion!We’veonlyused2oftheblocksintheMotioncategory.Forthenextfewminutes,IwantyoutoexperimentwithalloftheotherblocksintheMotioncategory.Ifyou’dliketoseewhatablockdoes,rightclickontheblockandthenclickonhelp.YoucandeletecodeeasilybyjustdraggingitfromtheScriptarea!Havefun!107ppt課件ExperimentWithMotion!We’veoControl!ThenextcategoryofprogrammingbuttonswewillexperimentwithistheControlcategory.Thisisaveryimportantcategorybecauseitcontrolshowmanytimesaneventhappens,howlonganeventhappens,orwhenaneventhappens.108ppt課件Control!ThenextcategoryofpControl!ThefirstblockI’dlikeustouseisthe“whenflagclicked”block:Dragthisblockout,andsnapitontopoftheblocksyoualreadyhaveinyourscript.109ppt課件Control!ThefirstblockI’dliControl!Now,insteadofhavingtodoubleclickonyourblockofcode,youcanjustclickontheflagicontoplayyouranimation!Clickheretostart110ppt課件Control!Now,insteadofhavingPresentationModeWhenyouclickonthepresentationmodebutton,youranimationwillfillthewholescreen!Toexitpresentationmode,clickthearrowinthetopleftofthescreen,orjustpresstheEsckey.111ppt課件PresentationModeWhenyouclicBacktoControl!OtherpowerfulblocksintheControlcategoryaretheblocksthathandleconditionalstatements.Conditionalstatementsarecommonlycalled“ifstatements”or“if-elsestatements”.112ppt課件BacktoControl!OtherpowerfulConditionalStatementsThiscodemeansthatiftheuserpressestheSpacekeyonthekeyboard,thespritewillmove10steps.113ppt課件ConditionalStatementsThiscodSensing!Theconditionalstatementsmustbeusedalongwiththesensingblocks.(Noticetheshapeofsomeofthesensingblocks.Theyaretheonesthatwillfitinsidethe“condition”sincetheyhave6sides)114ppt課件Sensing!TheconditionalstatemBacktoControl!Forthenextfewminutes,experimentwiththeblocksinMotion,Control,andSensing.Rightclickonablockandselecthelptogetinformationaboutablock.Whenyougetsomethingcool,I’dliketoseeit!115ppt課件BacktoControl!ForthenextfSound!Now,let’saddsomesoundtoouranimation!Therearemanydifferentwaystogetsoundinyouranimation.Thefirstwaywe’regoingtoexperimentwithisbyimportingasoundfromtheScratchsoundlibrary.116ppt課件Sound!Now,let’saddsomesounImportingSoundFromTheScratchSoundLibraryClickonthespriteyouwanttohavesound.ClickontheSoundstabandselectImport.117ppt課件ImportingSoundFromTheScratScratchSoundLibraryYouwillseedifferentcategoriesofsoundsthatyoucanuseinyouranimationthatareavailableforyouintheScratchlibrary.118ppt課件ScratchSoundLibraryYouwillInsertingSoundOnceyoufindasoundthatyoulike,selectitandclickonOK.Youwillseethesoundyoujustselectedshowupunder“NewSound”.119ppt課件InsertingSoundOnceyoufindaPlayYourSoundIfyouclickonthe“Play”button,youcanpreviewyoursound.120ppt課件PlayYourSoundIfyouclickonAddingTheSoundToYourAnimationNow,you’rereadytoaddthesoundtoyouranimation!ClickontheScripttab.Selectthespriteyouwanttohavesound.NowselecttheSoundbutton.121ppt課件AddingTheSoundToYourAnimaAddingSoundNow,selectoneoftheblocksthatsays,“playsound…”Selectyoursoundfromthedrop-downmenubyclickingonthetrianglenextto“pop”.122ppt課件AddingSoundNow,selectoneofRecordingaSoundClickontherecordbuttontorecordasoundClickontheredbuttontostartrecordingClickonthesquaretostopYoucanrenamethesoundbytypingoverthename123ppt課件

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論