Skip to content

Commit 92ffe07

Browse files
authored
Update build-a-conversational-game-in-p5js.mdx
1 parent 57037b2 commit 92ffe07

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

projects/build-a-conversational-game-in-p5js/build-a-conversational-game-in-p5js.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ description: Learn how to make a game of Pong that takes the form of two charact
88
header: https://firebasestorage.googleapis.com/v0/b/codedex-io.appspot.com/o/assets%2Findex%2FCopy%20of%20Codedex%20Project%20Headers%20(Twitter%20Post).gif?alt=media&token=f1a5a667-5967-4e50-ad37-ec63f09535eb
99
bannerImage: https://firebasestorage.googleapis.com/v0/b/codedex-io.appspot.com/o/assets%2Findex%2FCopy%20of%20Codedex%20Project%20Headers%20(Twitter%20Post).gif?alt=media&token=f1a5a667-5967-4e50-ad37-ec63f09535eb
1010
readTime: 30
11-
prerequisites: p5.js, JavaScript
11+
prerequisites: JavaScript, p5.js
1212
versions: p5 1.11.2
1313
tags:
1414
- intermediate
1515
- javascript
16+
courses:
17+
- javascript
18+
- p5js
1619
---
1720

1821
## Introduction
@@ -25,7 +28,9 @@ tags:
2528
allowFullScreen
2629
></iframe>
2730

28-
Hi, my name is ✨Julien✨, and I’m the new Senior Curriculum Developer here at Codédex! I love zines, games, indie comics, park hangs, and experimental baking (holiday cookie box loading…). I’m based in Brooklyn, and am originally from Los Angeles! I’ve always made art, and didn’t consider myself a technical person until my coding journey unexpectedly began about a decade ago.
31+
Hi, my name is ✨Julien✨, and I’m the new Senior Curriculum Developer here at Codédex!
32+
33+
I love zines, games, indie comics, park hangs, and experimental baking (holiday cookie box loading…). I’m based in Brooklyn, and am originally from Los Angeles! I’ve always made art, and didn’t consider myself a technical person until my coding journey unexpectedly began about a decade ago.
2934

3035
<div>
3136
<div
@@ -151,7 +156,7 @@ function preload() {
151156
Then, we’ll loop the soundtrack in the setup function.
152157

153158
```js
154-
function setup(){
159+
function setup() {
155160
156161
//loop the game soundtrack
157162
gameSoundtrack.loop();
@@ -200,7 +205,7 @@ function preload() {
200205
I replaced the paddle rectangles with images in the `showPaddle()` function.
201206

202207
```js
203-
function showPaddle(playerNumber){
208+
function showPaddle(playerNumber) {
204209
...
205210
push();
206211
imageMode(CENTER);

0 commit comments

Comments
 (0)