summaryrefslogtreecommitdiffstats
path: root/tags
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-09-29 04:17:58 +0300
committerGalin Simeonov <gts@volconst.com>2021-09-29 04:17:58 +0300
commitd4c75508509eb46c2647488f8d111373abd80a22 (patch)
treec1a2be2f5f22746fccc62cc116063a56fc39e81c /tags
parent20c04c8dec132112fdef2356a22890df8e064e91 (diff)
downloadsnek-d4c75508509eb46c2647488f8d111373abd80a22.tar.gz
basic game functionality
Diffstat (limited to 'tags')
-rw-r--r--tags30
1 files changed, 24 insertions, 6 deletions
diff --git a/tags b/tags
index 4015e44..f9a03ad 100644
--- a/tags
+++ b/tags
@@ -7,24 +7,42 @@
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 0.0.0 //
-#canvas2 snek.css /^#canvas2 {$/;" i
+animation snek.js /^ let ret={ 'mouse': mouse, 'animation':0, 'particles':[] };$/;" p class:makeExplosion.ret
canvas snek.js /^let canvas;$/;" v
canvas1 snek.html /^ <canvas id="canvas1"><\/canvas>$/;" I
-canvas2 snek.html /^ <canvas id="canvas2"><\/canvas>$/;" I
+cleanUpBlood snek.js /^function cleanUpBlood()$/;" f signature:()
+cleanUpMice snek.js /^function cleanUpMice()$/;" f signature:()
context snek.js /^let context;$/;" v
createMouse snek.js /^function createMouse(x,y,direction,speed,size)$/;" f signature:(x,y,direction,speed,size)
+cursor snek.js /^let cursor = {$/;" c
draw snek.js /^function draw(timeStamp)$/;" f signature:(timeStamp)
-drawInterval snek.js /^let drawInterval=1000\/30;$/;" v
-drawMice snek.js /^function drawMice()$/;" f signature:()
-drawMouse snek.js /^function drawMouse(mouse)$/;" f signature:(mouse)
+drawExplosion snek.js /^function drawExplosion(explosion,timeElapsed)$/;" f signature:(explosion,timeElapsed)
+drawExplosions snek.js /^function drawExplosions(timeElapsed)$/;" f signature:(timeElapsed)
+drawInterval snek.js /^let drawInterval=20\/1000;$/;" v
+drawMice snek.js /^function drawMice(timeElapsed)$/;" f signature:(timeElapsed)
+drawMouse snek.js /^function drawMouse(mouse,timeElapsed)$/;" f signature:(mouse,timeElapsed)
+drawSnake snek.js /^function drawSnake(timeElapsed)$/;" f signature:(timeElapsed)
+explosions snek.js /^let explosions;$/;" v
+gravitate snek.js /^function gravitate(subject,gravitas,doesItPull,pullStrength,nearDistance)$/;" f signature:(subject,gravitas,doesItPull,pullStrength,nearDistance)
initialise snek.js /^function initialise()$/;" f signature:()
lastTimeStamp snek.js /^let lastTimeStamp;$/;" v
main snek.js /^function main()$/;" f signature:()
+makeExplosion snek.js /^function makeExplosion(mouse)$/;" f signature:(mouse)
+maxExplosionAge snek.js /^let maxExplosionAge=100;$/;" v
+maxNumberOfExplosionParticles snek.js /^let maxNumberOfExplosionParticles=50;$/;" v
mice snek.js /^let mice;$/;" v
micePerSecond snek.js /^let micePerSecond=0.3;$/;" v
+mouse snek.js /^ let ret={ 'mouse': mouse, 'animation':0, 'particles':[] };$/;" p class:makeExplosion.ret
normalMouseSize snek.js /^let normalMouseSize=1;$/;" v
-normalMouseSpeed snek.js /^let normalMouseSpeed=10;$/;" v
+normalMouseSpeed snek.js /^let normalMouseSpeed=3;$/;" v
+particles snek.js /^ let ret={ 'mouse': mouse, 'animation':0, 'particles':[] };$/;" p class:makeExplosion.ret
+ret snek.js /^ let ret={ 'mouse': mouse, 'animation':0, 'particles':[] };$/;" c class:makeExplosion
+snake snek.js /^let snake = { $/;" c
snek.css snek.css 1;" F
snek.html snek.html 1;" F
snek.js snek.js 1;" F
spawnMouse snek.js /^function spawnMouse()$/;" f signature:()
+x snek.js /^ 'x' : 0,$/;" p class:cursor
+x snek.js /^ 'x':window.innerWidth\/2,$/;" p class:snake
+y snek.js /^ 'y' : 0$/;" p class:cursor
+y snek.js /^ 'y':window.innerHeight\/2 $/;" p class:snake