diff --git a/run_server.sh b/run_server.sh new file mode 100644 index 0000000..8711815 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/static/js/index.js b/static/js/index.js index 04b6f78..b046663 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -70,7 +70,6 @@ function resumeSimulation(){ function animateLoop(){ animateFrameReqId = requestAnimationFrame(animateLoop); - ctx.clearRect(0,0,canvas.width, canvas.height); running = true; // Draw the entities @@ -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(); }