Making a Videogame in Salesforce

Salesforce Jedi
18 min readJun 20, 2023

A video game is simply a concept, a piece of software. No technology limits us in terms of what we can do with it, it just may be more or less challenging. Have you ever wondered if we could create a video game in Salesforce? I don’t want to spoil it for you, but the answer is yes (otherwise, I wouldn’t have posted this).

Do you recognize this image? Perhaps you’ve experienced being offline or resetting the router and come across this Google Chrome game that entertains you while you wait. Well, we’re going to replicate it in Salesforce.

You can find the complete code here: https://github.com/sfdcjedi/sfdc-games. From my GitHub repository, you can also deploy this code in your environment with a simple click.

Assets

Let’s take a look at all the images we’ll need for our video game.

The dinosaur. We’ll use one image for when it’s standing or jumping, and two other images to simulate the running effect. By chaining all these images together, we create the sprite for our playable character.

And no respectable video game is complete without a good enemy. In our case, it will be these cacti. They…

--

--

Salesforce Jedi

+7 years in Salesforce landscape, now as architect and tech lead. Take a look to our GitHub repo: https://github.com/sfdcjedi