|
12 | 12 | <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity=" sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin=" anonymous" ></script>
|
13 | 13 | <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js"></script>
|
14 | 14 |
|
| 15 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js" integrity="sha512-UOoJElONeUNzQbbKQbjldDf9MwOHqxNz49NNJJ1d90yp+X9edsHyJoAs6O4K19CZGaIdjI5ohK+O2y5lBTW6uQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| 16 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/components/prism-javascript.min.js" integrity="sha512-yvw5BDA/GQu8umskpIOBhX2pDLrdOiriaK4kVxtD28QEGLV5rscmCfDjkrx52tIgzLgwzs1FsALV6eYDpGnEkQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
| 17 | + <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/themes/prism-twilight.min.css" integrity="sha512-6rkEt5SymQMcnlRz1dHwAMSfMnDaFX28qdr3wyaa+XRCR8dTSWE4U6vjiTVuB6Mq9FgYOLVOTk0lrOeCnodcgA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> --> |
| 18 | + |
15 | 19 | <link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel=" stylesheet" >
|
16 | 20 | <link href="/SimulationLabs/Stylesheets/Default.css" rel="stylesheet">
|
17 | 21 |
|
@@ -40,17 +44,32 @@ <h2> What you'll create </h2>
|
40 | 44 |
|
41 | 45 | <h2> Prereqs </h2>
|
42 | 46 |
|
43 |
| - <ul> |
44 |
| - <p> Know how to code </p> |
45 |
| - </ul> |
46 |
| - <ul> |
47 |
| - <p> Basic OOP </p> |
48 |
| - </ul> |
| 47 | + <ul> Know how to program using a procedural language e.g. Python, Java, C#, JavaScript etc. </ul> |
| 48 | + <ul> Basic OOP i.e. you know what a class is </ul> |
| 49 | + |
| 50 | + <p> We will be coding in JavaScript but don't worry about knowing the ins and outs of the language; you should be able to pick it up as we go! </p> |
49 | 51 |
|
50 |
| - <h2> Processing/JavaScript Intro </h1> |
| 52 | + <h2> Introduction to p5.js </h2> |
| 53 | + |
| 54 | + We will be using JavaScript and a library called <strong> p5.js</strong>, made by the lovely <a href="https://processingfoundation.org/"> Processing Foundation</a>. |
| 55 | + |
| 56 | + <ol> |
| 57 | + <li> <p>To get started, create an account for the <a href="https://editor.p5js.org/signup">web editor</a>. </p> </li> |
| 58 | + <li> <p> Open a new sketch (File->New) </p> </li> |
| 59 | + </ol> |
| 60 | + |
| 61 | + <p> Your new sketch should have 2 functions: </p> |
51 | 62 |
|
52 |
| - <p> This should be an intro to basic programming but in JavaScript, taught using basic simulations <emph>(such as the random stepper displayed on the page instead of the actual boids simulation)</emph> </p> |
| 63 | + |
| 64 | + <pre> |
| 65 | + <code class="language-js"> |
| 66 | + console.log('hello world'); |
| 67 | + </code> |
| 68 | + </pre> |
| 69 | + |
| 70 | + <h3> Task </h3> |
53 | 71 |
|
| 72 | + |
54 | 73 | <h2> Autonomous Agents Intro </h2>
|
55 | 74 |
|
56 | 75 | <p> Applying forces, basic goals </p>
|
|
0 commit comments