Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Gigiux

    JavaScript How to launch functions from JS setInterval?

    I tried to install 'Live Server' to debug, but it needs Chrome and instead I am using Firefox, so it does not run...
  2. Gigiux

    JavaScript How to launch functions from JS setInterval?

    Can I use a W3C as an extension in Visual Studio? And can validate both HTML and JS as separate files? I used Free Online HTML Validator - FreeFormatter.com on the HTML part of my code but I got only this warning "The character encoding was not declared. Proceeding using “windows-1252”.
  3. Gigiux

    JavaScript How to launch functions from JS setInterval?

    Hello, I am trying to understand the use of the function setInterval by drawing a Pacman that opens and closes its mouth. I understand that I can launch only one function from setInterval, and this function has to be a wrapper that launches other functions. I set a wrapper drawPac that launches...
  4. Gigiux

    JavaScript How to draw a PacMan with sin/cos in JavaScript (for beginners)?

    Thank you for your answer. The results should be as the one generated from this code taken from a book: <!doctype html> <html> <head> <title>Pacmania</title> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>Pac-man</h1> <canvas id="pacmania" width="400"...
  5. Gigiux

    JavaScript How to draw a PacMan with sin/cos in JavaScript (for beginners)?

    Hello, I am new to JS and I would like to create a function to draw a PacMan using sin/cos functions. I defined a function draw_pacman that takes the context, the angle of the open mouth, the x/y position of the object and the radius of the object. The angle is defined as a mouth object...
Back
Top Bottom