3 ms·
I recently started a new project using only pixi + vanilla js. No frameworks. No npm. Just pixi.min.js + vanilla js included into an html file. It's super refre
by umvi 6y ago
I recently started a new project using only pixi + vanilla js. No frameworks. No npm. Just pixi.min.js + vanilla js included into an html file. It's super refreshing - the js files are tiny, the load times are insane (instant), other people can read my code without having to learn a new framework.
I am thinking about using npm to get access to linting, uglify, etc. but that would be strictly for distribution, not development.
- kaycebasques 6y agoNever heard of Pixi. What are you using it for? https://www.pixijs.com/ https://www.pixijs.com/
- umvi 6y agoA video game. A week ago there was a HN post on ct.js[0], and that's when I discovered pixi.js. I suppose I could have also used phaser.js, but pixi is more minimal and I liked the idea of developing a custom engine for my game idea (apart from the rendering bits). [0] https://news.ycombinator.com/item?id=24176655 https://news.ycombinator.com/item?id=24176655
- khalilravanna 6y agoI worked on a game for a couple of years and did the same thing. Phaser was too clunky for my purposes and didn't seem to scale for the size of game I was working on. I learned a ton by having to write a ton of the rendering/camera logic that Phaser gives you for free. Highly recommend it for learning purposes alone!
- zelphirkalt 6y agoOther people can read your code, only as long as you do not uglify it. If you uglify it and ship source maps, that might be OK, but seriously it's not worth it for a minimalistic approach. It will only waste your time.