Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
control a snake size on create.js

I have bought a script from codecanyon. The script is developed with create.js, it is a classic snake game where the snakes eats an apple and it's size grows. I have made some customization to the original game logic and added some other items( healthy fruits and unhealthy foods).I'm struggling with one logic, where when the snakes eats a special medicine(which will be displayed after the snake eats 5 food items) the snake size should shrink by one. I'm new to create.js and couldn't find the function which controls the snake size.

The code

Any help would be greatly appreciated :)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!