How to make mini game on Scratch ?

scratch

什麼是Scratch?
https://scratch.mit.edu
一種程式語言(Programming Language)
創造互動故事、動畫、遊戲、音樂和藝術等等

Scratch is a drags-and-drops programming language for creating interactive stories, animations, game, music and art.

Creating a program in Scratch does not require any typing at all. Rather, there are blocks of computer instructions that the student drags-and-drops together to create an entire program. The benefit of this approach is it is not possible to create a syntax error (for example a missing semi-colon or parenthesis in the wrong spot), which can be a tremendous hurdle for first time programmers.

小遊戲
例子:
Washabili熊仔食蕉仔

Example for mini game:

Washabili eats banana

washabili game shot

https://scratch.mit.edu/projects/54984288/

MV
例子:
Washabili係旺角唱歌

Scratch MV

Control the sprite to dance with music

https://scratch.mit.edu/projects/56267184/
Cap screen 後放上 YouTube

Choose the backstage picture or design your own one using graphic design software like Adobe Illustrator or PhotoShop.
Backstage size is 480 X 360 pt

Choose your backstage

beach1 background-01  beach2 background-01  helicopter background-01  road background-01 Sakura background-01  milk house background-01

What are sprite?

Sprites are the things in your program that move around. They are the things that the program interacts with. For example the cat that you see in all the examples above is a sprite that all Scratch programs start off with. Any commands that you create in Scratch will affect a sprite. To create a new sprite click on the sprite icon that is shown in the picture on the bottom left.

Sprite movement

sprite move

Washabili:

washa eat  washa left  washa right

 

Lazy harp seal:

seal1   seal2   seal3

Things for your sprite to eat

apple grapegrapefruitorangepineapplestawberry

burger  hotdogcoke egg fries

milk  cheese

scratch map

 

Drag the command from the middle panel contains the various instruction blocks that are available for use. Snapping these together in the right panel allows control of the various characters on the stage on the left.

To delete, drag the command back to the middle panel.

To do multiple commands, drag each command on top of another one to create a chain of commands as shown. Run the code by pressing on the chain!

The eater (Washabili) script:

 

washabili script

The food (banana) script:

banana script

Make the banana sprite move with in X(-200 to 200) and Y(-200 to 200) randomly, the sprite will not be off-screen or hidden.

sprite scale

 

When the colour of banana touches the colour of Washabili’s mouth

 

 

 

Screen Shot 2015-04-24 at 12.20.16 pm

 

Washabili eats banana mini game

I attended Hour of Code at CITYU APPS LAB last weekend, the workshop at the afternoon introduced this user-friendly online programme, Scratch , to create your own interactive stories, games, and animations — and share your creations with others in the online community.

It is very inspiring and I used Scratch to create this mini game! Credit goes to the friendly help from their genius team! Please check out their page: Hour of Code in HK and Facebook for updates.

 

Scratch mini game code

——————————————

This is the mini game I created called <Washabili eats banana>

Tropical breeze at the beach and it’s a great time to catch bananas as much as Washabili can!
Press < spacebar >to open Washabili’s mouth to eat the banana!
See how many you could catch! Oh!! .V. The naughty running banana!

Inspired by the YouTube tutorial of Ghost catching candies.
Watch it and you can make it too!
In the video you will learn how to use variables blocks, sensing blocks, broadcasting and layers to a project.

Lazy Harp Seal

 

cheers harp seal

Harp seal are not just known to be lazy! Tho they are famous with the song Lazy Harp Seal Has No Job…view the song here:

Know more about harp seal:

Do you know harp seal’s coat changes along his life cycle? They are only fluffy white at their young age!

Born in the spring on ice packs, harp seal pups go through 6 life stages:

Yellowjacket: Newborn pups with white fur tinted yellow from placental fluid are born weighing about 24 lbs. and measuring almost 3 feet long.

Whitecoat: After a few days, the yellowish tint disappears, and the pups have a fluffy white fur coat. They nurse on their mothers high-fat milk (containing about 45% fat) and triple their weight to over 75 lbs. in about 12 days. Mothers recognize their pups in the herd by their smell.

Ragged/Raggedy Jacket: After the pups are weaned at about 2 weeks of age, they start to moult in patches, leaving a dense silver-grey fur with black spots. The pups do not eat after being weaned until they begin to swim and find food on their own. This can take six weeks.

Beater: After about 18 days, the harp seal’s white coat is completely moulted. They start to learn how to swim by beating the water with their front flippers, leading to the name ‘beaters’.

Bedlamer: Immature seals were given this name in the 15th or 16th century by the Basque and Breton settlers in the Strait of Belle Isle. The term comes from the French ‘Betes de la mer’ (Animals of the Sea).

Adult: Males reach maturity at about 7-8 years of age. Females reach maturity at about 4-6 years of age.

Harp seals spend relatively little time on land and prefer to swim in the North Atlantic and Arctic Oceans.

They can remain submerged for up to 15 minutes.

Diet:

Polar cod, capelin, herring, halibut, small crabs, shrimp

seal-wiinking

Handmade HK Sunday Market & 王敏德 Michael Wong – Airways Of Love

Washabili blast Discovery Bay with love of new song from Micheal Wong- Airways of Love.

We had a blast at the sunday market hold by Handmade Hong Kong on 8th March 2015.

This video included some footage of that day. I wanted to show you some interesting local startups I found in the sunday market, yet didn’t have enough time to visit every stall to record video. So I only included the local honey producers that I found them cool bringing the real bees to the house. They are ForME HONEY and Bee’s Nest Pure Honey.

You may find yourself in this video. Comment below and say hi!

Music in this video:
Airways of love- Micheal Wong (in X1.5 speed)
https://www.youtube.com/watch?v=1sCEBbnPjSc

Please also see the parody from FACEPALM, which they did a great job and even got credits from Micheal and HK local media Apple Daily.

Airways of love facepalm Micheal wong

 

Poker Face Washabili?

There are friends wanted to know if washabili have different face expression except his normal poker face.

Poker face= A face on a person that shows no emotion, often called poker face because in the game of poker it would be foolish to show any emotional traits that might screw the game for you.

People ask if washabili not feeling satisfied with the happenings around him.

Indeed not, its just his poker face, he don’t like to show exaggerated emotion. You can see his emotional changes if you are good friend of him.

emotions

bear emotions-01

 

From left to right:

1. Feeling speechless that you kissed him!

2. Hehe I’m not going to tell you bad gal

3. Sleepy bear…ZZZ

4. Overjoy. Thanks for the green tea ice cream treat!

Banana Watch? It’s Edible!

眾所周…知,香蕉係馬拉松選手的重要熱量補充品

香蕉水分少,高熱量,好消化,含豐富的鉀,而且吃起來十分方便,宜家重係可穿戴裝置tim!

食品商Dole遂研發「可穿戴香蕉」(wearable banana),為東京馬拉松的選手增添動力

不單可以食還可以偵測選手的速度、心跳,更可以顯示Twitter通知,支持者可透過社交媒體,向跑手傳送鼓勵訊息,甚至通知選手何時該吃蕉!

比賽完還可以把香蕉吃掉補充能量哦~哈哈

拿!這條可食用兼可穿戴的智能香蕉,係勁過蘋果Apple Watch既

不過呢, 其實成件事仲要試驗中亦可能只係一個gag

咁我就試下將想象中的成品畫出泥啦!

1. 香蕉手錶

Banana Watch

banana watch

 

Washabili試載,他發現他沒有手指,不能全面操作這智能香蕉手錶

Washabili trying on the banana watch. Sadly, he got no fingers to tap on the screen..

banana watch-01

 

2. 香蕉裙

真蕉痴係裙上面
跑到咁上下條裙會彈隻蕉上泥
提示你係時侯吃蕉la

Banana Dress

It could a dress. Yes, you run in a banana dress with real banana sticking on top of the banana. He could eat them during the race! The banana would pop up when it sense that you are lack of energy and alert you to eat it. It actually function like the toaster!

 

banana dress-01

 

banana

Source: http://www.dole.co.jp/wearablebanana/en/

Screen Shot 2015-03-03 at 1.17.48 pm

 

You can go to their website and tweet them. I tweeted my name to show my support. haha.

Screen Shot 2015-03-03 at 1.21.39 pm

The next revolution in fruity wearables has arrived, and it’s not the Apple Watch! Here’s my first look at the all-new Dole Wearable_Banana, a fitness tracker that tastes good too!
Japan’s largest city marathon is TOKYO MARATHON.
Dole has been sponsoring this race every year since 2008, supporting the runners with their delicious and nutritious bananas.
And now 2015,
Dole has created an amazing new banana…
The Wearable_Banana !
This is no regular banana!

Some people see this dress as white & gold while others see black & blue

new!!!!-01

 

我睇到藍黑wor
睇到我暈都頭埋!
搞到我成個腦海都係個條裙
重要著埋tim…
Here comes the new topic for argument
I am dizzy after seeing all these blue-black or gold-white dress post
Its definitely blue & black for me
So which color can you see?

The dress that washabili is wearing might be black and blue or white and gold.

It started on this Tumblr page here, where a user posted this dress with the caption, “guys please help me – is this dress white and gold, or blue and black? Me and my friends can’t agree and we are freaking the f**k out”

Ya now you think of the dress keep appearing on social media. The picture went viral after being shared from tumblr and twitter. When you type “Blue B”, google would suggest “blue black dress” for the first search keyword.
blue white dress
When you type “blue bla”, it comes with the whole key words of that picture
Screen Shot 2015-02-27 at 5.48.38 pm

 

Even in the google image search it became the first suggested picture! OMG!!我睇到藍黑wor1-01

Discovery Bay Sunday Market on 8 March

Dear My Friends,

8 March (Sunday) 11am – 6pm at Discovery Bay Plaza, come find us at Discovery Bay Sunday Market!

We will be at STALL 77B!!

Come and say hi!:D

Here is the transport info:
The Discovery Bay Ferry (Central Ferry Pier # 3) is recommended for transporting to the Discovery Bay Plaza. For bus access, take DB03 from Sunny Bay and DB01 from Tung Chung MTR (you would arrive there at the last station)

D Bay Mkt map-01

IMG_6251 IMG_8050 IMG_8068

IMG_8124 IMG_8195 IMG_8169