Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8492213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:39:11+00:00 2026-06-10T22:39:11+00:00

If I wanted to build a simple game (snake, checkers, pacman or whatever) what

  • 0

If I wanted to build a simple game (snake, checkers, pacman or whatever) what would be the better approach – SVG or Canvas ?

Things I’m interested in:

  1. Ease of implementation (learning curve of Canvas vs SVG) . For example if SVG has significantly less tutorials and community support that’s crucial to me.

  2. Performance (not critical to me but still important)

And also , in the gaming field , are there specific games that SVG is more suited for than Canvas (or vice versa?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:39:13+00:00Added an answer on June 10, 2026 at 10:39 pm

    Games that require a lot of mouse interaction and not much continuous animation (such as checkers or chess, or any board game for that matter) are better suited for SVG because you work with dom elements. Consider a simple button hover, in SVG you can add event listeners or even just place g.button:hover path {fill: blue;} in your CSS and it will work. Canvas, on the other hand, requires keeping track of the hit area and drawing everything in Javascript.

    Snake and Pacman would be better suited for canvas, you control everything with your keyboard and painting to canvas is less expensive than moving elements around in SVG. There are excellent gaming libraries for canvas, impact.js is one of them.

    Addressing your points:

    Ease of use: if you are familiar with pure javascript DOM manipulation SVG is a breeze. If you are blank slate I’d say canvas is easier to grasp, as you just paint on it.

    Community support: for gaming canvas wins hands down. There is a strong SVG community but not in the gaming area.

    Performance: Mixed. Both canvas and SVG can be slow if you don’t pull off a couple of tricks. For example, moving a single square from left to right can be jerky in canvas if you repaint the entire screen on each frame. If you just repaint the area that changed then it’s smooth. SVG would handle this case without a hitch. But on the other hand, if you want to animate thousands of rectangles at once, canvas handles it smoothly and SVG bogs down if you don’t wrap the rects in a group and move the group around.

    All in all, if you want to explore gaming in javascript perhaps Canvas is a better option. I’ve done three games in SVG, the latest one being http://color.method.ac, but I’ve dabbled in canvas and I think it’s better suited for gaming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just installed Jenkins in Ubuntu 12.04 and I wanted to create a simple build
First I wanted to build the DBD::mysql package. That kept failing because whatever make
For the sake of my own education, I wanted to build a simple Dependency
I wanted to add 2 simple XCOPY commands to a post build event for
So, I practiced HTML/CSS, and wanted to build a simple sub-header, exactly the same
I'd like to build a simple survey/questionnaire app in Ruby on Rails and wanted
I am new to iOS development. I want to build a simple game with
I am newbie at PHP. I wanted to build a small project of room
As a project, I wanted to build a personal website using Java for the
I just wanted to ask a simple question. I am trying to work out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.