Skip to content

th3hungryd3v/pizza-legends

Repository files navigation

This is a repo set up to follow along with Drew Conley's Let's Build an RPG with JavaScript tutorial.

We were able to draw something to the screen, scale it up, and place an object in a different position (after aligning the spritesheet, of course).

TIL about self-executing functions:

(function () {
  console.log("This looks odd, right?!");
})();

Immediately Invoked Function Expression (IIFE) An IIFE is a function that runs as soon as it is defined. It is "immediate" because it executes right away, and it is "invoked" because it is called. This pattern is useful for creating a new scope, avoiding global namespace pollution, and encapsulating logic that should not be exposed outside of the current execution context.

Today we refactored the code and created 2 more component(ish) files. I had a bit of an issue with where the characters were positoned, but I was able to resolve it by fixing a typo.




Ammo

Stay Tuned!

About

RPG JavaScript tutorial by Drew Conley

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published