From d4c75508509eb46c2647488f8d111373abd80a22 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Wed, 29 Sep 2021 04:17:58 +0300 Subject: basic game functionality --- tags | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) (limited to 'tags') 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>$/;" I -canvas2 snek.html /^ <\/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 -- cgit v1.2.3