Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jeb16157 committed Mar 23, 2021
2 parents d341abb + 63a30e2 commit 2263093
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions run_server.sh
@@ -0,0 +1,8 @@
#!/bin/bash

export FLASK_APP=pserver
export FLASK_ENV=development
mkdir logs
mkdir summaries
mkdir plots
flask run
2 changes: 1 addition & 1 deletion static/js/index.js
Expand Up @@ -70,7 +70,6 @@ function resumeSimulation(){

function animateLoop(){
animateFrameReqId = requestAnimationFrame(animateLoop);
ctx.clearRect(0,0,canvas.width, canvas.height);
running = true;

// Draw the entities
Expand Down Expand Up @@ -167,6 +166,7 @@ function animateLoop(){

function drawEntities(entities){
// Draws a list of entities to the canvas
ctx.clearRect(0,0,canvas.width, canvas.height);
for(let entity of entities){
entity.draw();
}
Expand Down

0 comments on commit 2263093

Please sign in to comment.