All Projects → cmilr → Deadsimple Pixel Perfect Camera

cmilr / Deadsimple Pixel Perfect Camera

Licence: mit
An exceedingly easy-to-use pixel perfect orthographic camera script for 2D scenes in Unity. Punch in a few specs and you've got a working pixel perfect camera. It's that easy.

Projects that are alternatives of or similar to Deadsimple Pixel Perfect Camera

Unity2d Components
A constantly evolving array of Unity C# components for 2D games, including classes for pixel art cameras, events & messaging, saving & loading game data, collision handlers, object pools, and more.
Stars: ✭ 375 (+101.61%)
Mutual labels:  unity, unity3d, game-development, game-engine, gamedev, unity2d, pixel-art
Beaverandfairies
Stars: ✭ 14 (-92.47%)
Mutual labels:  unity, unity3d, game-development, gamedev, unity2d
Noahgameframe
A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
Stars: ✭ 3,258 (+1651.61%)
Mutual labels:  unity, unity3d, game-development, game-engine, gamedev
Anything about game
A wonderful list of Game Development resources.
Stars: ✭ 541 (+190.86%)
Mutual labels:  unity, game-development, game-engine, gamedev
Game Networking Resources
A Curated List of Game Network Programming Resources
Stars: ✭ 4,208 (+2162.37%)
Mutual labels:  unity, unity3d, game-development, gamedev
Verticaldissolve
Procedural vertical dissolve shader. Highly customizable. Tweak edge color, noisiness & waviness, rim light, emission scrolling and more.
Stars: ✭ 434 (+133.33%)
Mutual labels:  unity, unity3d, game-development, gamedev
Unity Shaders
✨ Shader demo - More than 300 examples
Stars: ✭ 198 (+6.45%)
Mutual labels:  unity, unity3d, game-development, gamedev
Swissarmylib
Collection of helpful utilities we use in our Unity projects.
Stars: ✭ 154 (-17.2%)
Mutual labels:  unity, unity3d, game-development, gamedev
Entitas Csharp
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Stars: ✭ 5,393 (+2799.46%)
Mutual labels:  unity, game-development, game-engine, gamedev
Radialprogressbar
Customizable radial progress bar shader for Unity3D. Allows you to set arc range, minimum and maximum colors, textures, radius, and a few more things. Create HP Bars, Speedometers, rank progress, etc!
Stars: ✭ 714 (+283.87%)
Mutual labels:  unity, unity3d, game-development, gamedev
Ksframework
QQ Group:538722494,KSFramework = KEngine + SLua(or xLua) , Unity3D Framework/Toolsets focus on hot reload
Stars: ✭ 1,119 (+501.61%)
Mutual labels:  unity, unity3d, game-development, game-engine
Rimlight
Customizable rimlight shader for Unity that includes pulsation and noise scrolling. Give your scenes that extra oomph!
Stars: ✭ 170 (-8.6%)
Mutual labels:  unity, unity3d, game-development, gamedev
Spheredissolve
Customizable procedural spherical dissolve shader for Unity3D, for all your customizable procedural spherical dissolve needs!
Stars: ✭ 311 (+67.2%)
Mutual labels:  unity, unity3d, game-development, gamedev
Texturepanner
This repository hosts a shader for Unity3D whose main goal is to facilitate the creation of neon-like signs, conveyor belts and basically whatever based on scrolling textures
Stars: ✭ 528 (+183.87%)
Mutual labels:  unity, unity3d, game-development, gamedev
Uecs
Ubpa Entity-Component-System (U ECS) in Unity3D-style
Stars: ✭ 174 (-6.45%)
Mutual labels:  unity3d, game-development, game-engine, gamedev
Gameproject3
游戏服务器框架,网络层分别用SocketAPI、Boost Asio、Libuv三种方式实现, 框架内使用共享内存,无锁队列,对象池,内存池来提高服务器性能。还包含一个不断完善的Unity 3D客户端,客户端含大量完整资源,坐骑,宠物,伙伴,装备, 这些均己实现上阵和穿戴, 并可进入副本战斗,多人玩法也己实现, 持续开发中。
Stars: ✭ 655 (+252.15%)
Mutual labels:  unity, game-development, game-engine, gamedev
Pixelvision8
Pixel Vision 8's core philosophy is to teach retro game development with streamlined workflows. PV8 is also a platform that standardizes 8-bit fantasy console limitations built on top of the open-source C# game engine based on MonoGame.
Stars: ✭ 773 (+315.59%)
Mutual labels:  game-development, game-engine, gamedev, sprites
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+6189.25%)
Mutual labels:  unity, unity3d, game-development, gamedev
Gamedev4noobs
Olá, sejam bem-vindos ao repositório _gamedev4noobs_ do Estúdio Vaca Roxa. O propósito desse repositório, além de contribuir para o projeto 4noobs, é ensinar o básico do desenvolvimento de jogos para iniciantes. Apresentando boas práticas e insumos para criar games incríveis.
Stars: ✭ 122 (-34.41%)
Mutual labels:  unity3d, game-development, game-engine, gamedev
Uicard
Generic UI for card games like Hearthstone, Magic Arena and Slay the Spire...
Stars: ✭ 142 (-23.66%)
Mutual labels:  unity, unity3d, unity2d

GitHub release  Platform  GitHub issues  GitHub license  Code of Conduct 

⚡️PLEASE NOTE: THIS REPO IS NO LONGER BEING ACTIVELY UPDATED.

DeadSimple Pixel-Perfect Camera

The DeadSimple pixel-perfect camera is an easy-to-use orthographic camera script for producing crisp, clean pixel art at any resolution in Unity.

Art by Buch—http://opengameart.org/users/buch or Patreon.com https://www.patreon.com/buch.

What This Script Does (and Doesn't)

This script will make sure your pixel art looks pretty at any screen size—in other words, every pixel in your original artwork will be displayed at the same size as every other pixel, so you won't get any weird non-square pixels/blobs (blech.)

What this script won't do is force your character sprites to only move in single-pixel increments. That is a function more suited to your controller.

Installation

Fork or download this repository to your local machine, then either load up the sample project in Unity (and the Example scene,) or simply drag the DSPixelPerfectCamera.cs file onto the orthographic camera in your current project. Then:

  • On the script's inspector, set Pixels Per Unit to match that of your artwork.
  • Set Vertical Units On Screen to whatever you like. This setting allows you to set the camera's zoom—automatically adapting it for perfect pixel placement. Example: If you set this to 10, you are telling the script that you'd like to fit roughly ten Unity units vertically on the screen. I emphasize roughly because the script will pick a setting closest to what you requested that still allows for pixel perfect placement.
  • Enter PLAY mode to apply your settings.

Importing Art

In order to produce perfect pixel art, you need to import your artwork with the proper settings. If you don't, this camera script won't be of much use. In your sprite's inspector, make sure it's set-up for:

  • Texture Type > Sprite (2D & UI)
  • Pixels Per Unit > To match your artwork
  • Generate Mip Maps > Off
  • Filter Mode > Point (no filter)
  • Max Size > Set to highest level available
  • Format > Truecolor

Other Required Settings

To view your scene in pixel-perfect fashion in the Unity Editor, make sure you have Maximize on Play enabled. Anything that causes your scene to be rendered at other than 100% of the screen settings you've selected, will cause your artwork to look wonky in the Editor.

By the same token, you will want to turn off Default is Full Screen in the player settings of your build; otherwise, when you boot your standalone game its display will be stretched-to-fit, ruining the hard work you put into your pixel art.

Questions? Drop Us a Line!

Contact

License

The DSPixelPerfectCamera.cs script is distributed under the MIT license. See LICENSE for more information.

All artwork included in this repository is for example only, and is copyright Michele Bucelli. You can find more of Buch's great artwork at OpenGameArt.org http://opengameart.org/users/buch, or Patreon.com https://www.patreon.com/buch.

Thanks for using DeadSimple Pixel-Perfect Camera!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].