Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

00-Weather: no sound #208

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions tutorial/00-Weather/Jaime.spx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
onMsg "1", => {
say "I come from England.", 2
broadcast "2"
}

onMsg "3", => {
say "It's mild, but it's not always pleasant.", 4
nextCostume
say "The weather's often cold in the North and windy in the East.", 5.5
say "It's often wet in the West and sometimes warm in the South.", 5
broadcast "4"
}

onMsg "5", => {
nextCostume
say "I like spring and summer.", 2
say "The days are long and the nights are short.", 3
say "The sun rises early and sets late. ", 3
nextCostume
say "I don't like autumn and winter.", 3
say "The days are short and the nights are long.", 4
say "The sun rises late and sets early.", 4
nextCostume
say "Our climate is not very good, but it's certainly interesting.", 5
say "It's our favourite subject of conversation.", 4
broadcast "6"
}

onMsg "7", => {
say "Bye!", 2
nextCostume
}
21 changes: 21 additions & 0 deletions tutorial/00-Weather/Kai.spx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
onStart => {
setCostume "kai-a"
say "Where do you come from?", 2
broadcast "1"
}

onMsg "2", => {
say "What's the climate like in your country?", 3
broadcast "3"
}

onMsg "4", => {
say "Which seasons do you like best?", 3
broadcast "5"
}

onMsg "6", => {
say "Thanks. Bye!", 2
nextCostume
broadcast "7"
}
Binary file added tutorial/00-Weather/assets/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions tutorial/00-Weather/assets/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"costumes": [
{
"bitmapResolution": 2,
"name": "urban1",
"path": "6.png",
"x": 480,
"y": 360
}
],
"currentCostumeIndex": 0,
"zorder": [
"Jaime",
"Kai"
]
}
Binary file added tutorial/00-Weather/assets/sprites/Jaime/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/00-Weather/assets/sprites/Jaime/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions tutorial/00-Weather/assets/sprites/Jaime/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"costumes": [
{
"bitmapResolution": 2,
"name": "jaime-a",
"path": "1.png",
"x": 76,
"y": 154
},
{
"bitmapResolution": 2,
"name": "jaime-b",
"path": "2.png",
"x": 68,
"y": 154
}
],
"currentCostumeIndex": 1,
"heading": 90,
"isDraggable": false,
"rotationStyle": "normal",
"size": 0.95,
"visible": true,
"x": -45,
"y": -67
}
Binary file added tutorial/00-Weather/assets/sprites/Kai/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/00-Weather/assets/sprites/Kai/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions tutorial/00-Weather/assets/sprites/Kai/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"costumes": [
{
"bitmapResolution": 2,
"name": "kai-a",
"path": "3.png",
"x": 68,
"y": 160
},
{
"bitmapResolution": 2,
"name": "kai-b",
"path": "4.png",
"x": 82,
"y": 158
}
],
"currentCostumeIndex": 1,
"heading": 90,
"isDraggable": false,
"rotationStyle": "normal",
"size": 0.95,
"visible": true,
"x": 88,
"y": -76
}
6 changes: 6 additions & 0 deletions tutorial/00-Weather/index.gmx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var (
Jaime Jaime
Kai Kai
)

run "assets", {Title: "Weather (by Go+)"}