EtG Modding Guide
  • ETG Modding Guide
  • Getting started
    • Modding EtG: Installing Mods
    • Modding EtG: Creating a Mod
    • Uploading a Mod
    • Useful Tools
      • Using IlSpy
  • Making An Item
    • Creating A Passive
    • Creating An Active
    • Creating An Ammolet
    • Creating A Guon
    • Synergies
  • Making a Gun
    • Creating A Gun
      • Setting Up Gun Sprite Folders
      • Creating Gun Jsons/Jtk2ds
        • Pixel Measurement Conversions
    • Setting Up Projectiles
      • Adding Components To A Projectile
      • Projectile HitEffects (Visual Effects)
      • Adding status effects to a projectile
    • Continuous Fire Animations
    • Gun Ammo Types
  • Custom Characters
    • Creating A Standalone Custom Character
  • Making a Floor
    • Introduction
    • Setup
    • Making The Dungeon
    • Tileset
    • Rooms
    • Making the flow
    • Making the Entrance
    • All Files
  • Text, Text Boxes, Etc
    • Textboxes
    • Text Formatting
  • Sounds
    • Using Custom Sounds
    • Customising Gun Sounds
    • Basegame Sound List
    • wwise Sound Dump
  • Misc
    • Making Asset bundles
    • Assetbundles: How-To
    • How to create a hook
    • Creating A Command
    • Subscribing Methods to Actions
    • Reversing Player Controls
    • Undodgeable Projectiles
    • Creating An Enemy
  • Shaders
    • Creating Shaders
  • All things Spriting
    • Important Sprite Creation Information.
    • Importing a Sprite To Visual Studios
  • Monobehaviour Documentation
    • BounceProjModifier
    • PierceProjModifier
    • KeyProjModifier
    • CompanionFollowPlayerBehaviour
  • Various Lists of IDs, Sounds, Etc.
    • List of Item and Gun IDs
    • Enemy Guids
    • List of Base Game Synergies
    • dfSpriteList
    • All Custom Ammo Types
    • Gun .Json Dump
  • OFF TOPIC MEMES
    • Modders Anthem
Powered by GitBook
On this page

Was this helpful?

  1. Making a Gun
  2. Creating A Gun
  3. Creating Gun Jsons/Jtk2ds

Pixel Measurement Conversions

A simple conversion guide from in-game pixels to numerical values

Gungeon measures its units in pixels. However, when making guns or otherwise using measurements for distance in Gungeon, we can't use pixels. Instead we have to convert them to a numerical value.

The equation itself is simple; n=x/16n = x/16n=x/16 where n is the numerical equal and x is the amount of pixels you want to convert. An important thing to note is that when finding the pixel measurements you want to convert, remember to count from the bottom left corner of your sprite.

This equation is used to determine the hand positions on a gun, a gun's barrel offset, among other things.

Common pixel conversions:

Pixel Measurements

Numerical Measurements

1

0.0625

2

0.125

3

0.1875

4

0.25

5

0.3125

6

0.375

7

0.4375

8

0.5

9

0.5625

10

0.625

11

0.6875

12

0.75

13

0.8125

14

0.875

15

0.9375

16

1

PreviousCreating Gun Jsons/Jtk2dsNextSetting Up Projectiles

Last updated 9 months ago

Was this helpful?