Packer !full! | Phaser Texture

Leo realized he couldn't just add the sprite by image name anymore. He had to refer to the frames inside the atlas. He checked his JSON file and saw that the Texture Packer had preserved the original filenames as "frame" keys.

50 files → 50 requests. After: 1 atlas file + 1 JSON file → 2 requests. phaser texture packer

// Create a sprite from the "hero_idle_01" frame stored in the atlas let player = this.add.sprite(400, 300, 'game-sprites', 'hero_idle_01'); Leo realized he couldn't just add the sprite

this.player.play('run'); }

In the bustling digital kingdom of Browsernia , there lived a Junior Developer named Leo. Leo was building his magnum opus: a side-scrolling adventure game called Cyber-Knight . 50 files → 50 requests

Leo loved his sprites. He had a sprite for the Knight running, jumping, idle, attacking, and even one for the Knight tripping over a cyber-cat. He had 50 unique frames of animation, and in his innocence, he saved them as 50 separate .png files: knight1.png , knight2.png , and so on.



Top blog articles
More posts

phaser texture packer

10 interesting and unknown Facts about Microsoft PowerPoint

phaser texture packer

PowerPoint Rebranding: Update Presentations to the New Corporate Design Fast

LIZ AI Produktbild
LIZ AI - Autopilot for PowerPoint

Your existing systems. Automatically orchestrated and centrally connected.

LIZ AI connects directly with your enterprise systems and automatically turns data into presentations. Content is intelligently generated, updated, and visualized directly in PowerPoint. Presentations are created in the background, stay up to date at all times, and automatically match your corporate design - without manual effort.

Learn more about LIZ AI

The big SlideLizard presentation glossary

.odp file extension

.odp files are similar to .ppt files. It's a presentation which was created with Impress and contains slides with images, texts, effects and media.

Learn more

mLearning

mLearning means mobile learning, which comes from "Mobile Telephone". You can access the learning material over your mobile phone anywhere, which makes learning mobile.

Learn more

Informal Communication

informal communication can be used when talking to your friends or your family

Learn more

Recall Questions

With recall questions, you have to remember something or something has to be recalled. Example: A teacher asks his students a question so that they remember the material from the last lesson.

Learn more

Be the first to know!

The latest SlideLizard news, articles, and resources,
sent straight to your inbox.

- or follow us on -