Skip to content

Commit 7d6330e

Browse files
committed
Codeblocks
1 parent 9b099a7 commit 7d6330e

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

Boids.html

+27-8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
1313
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js"></script>
1414

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+
1519
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
1620
<link href="/SimulationLabs/Stylesheets/Default.css" rel="stylesheet">
1721

@@ -40,17 +44,32 @@ <h2> What you'll create </h2>
4044

4145
<h2> Prereqs </h2>
4246

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>
4951

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>
5162

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>
5371

72+
5473
<h2> Autonomous Agents Intro </h2>
5574

5675
<p> Applying forces, basic goals </p>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Simulation Labs
22

3-
Init
3+
44

55
# Developing
66

Stylesheets/Default.css

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.headerStyle {
22

33
}
4+
5+
/* pre {
6+
background-color: black;
7+
} */

0 commit comments

Comments
 (0)