diff --git a/content/costumes2.xml b/content/costumes2.xml index 8483b24..6722f2c 100644 --- a/content/costumes2.xml +++ b/content/costumes2.xml @@ -6,11 +6,13 @@ for exemple, priority="1" would put the costum behind isaac's head, and priority="99" would put the costum in front of all other costums --> - - + + + diff --git a/content/gfx/CharacterMenu.anm2 b/content/gfx/CharacterMenu.anm2 new file mode 100644 index 0000000..ed3a4da --- /dev/null +++ b/content/gfx/CharacterMenu.anm2 @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/gfx/CharacterMenu.png b/content/gfx/CharacterMenu.png new file mode 100644 index 0000000..46794eb Binary files /dev/null and b/content/gfx/CharacterMenu.png differ diff --git a/content/gfx/CharacterPortraits.anm2 b/content/gfx/CharacterPortraits.anm2 new file mode 100644 index 0000000..cd65986 --- /dev/null +++ b/content/gfx/CharacterPortraits.anm2 @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/gfx/Death Screen.anm2 b/content/gfx/Death Screen.anm2 new file mode 100644 index 0000000..13f50fd --- /dev/null +++ b/content/gfx/Death Screen.anm2 @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/gfx/charactermenu_tcl.png b/content/gfx/charactermenu_tcl.png new file mode 100644 index 0000000..87a2dd9 Binary files /dev/null and b/content/gfx/charactermenu_tcl.png differ diff --git a/content/gfx/deathportraits.png b/content/gfx/deathportraits.png new file mode 100644 index 0000000..155c38b Binary files /dev/null and b/content/gfx/deathportraits.png differ diff --git a/content/items.xml b/content/items.xml index cdf417e..eed596c 100644 --- a/content/items.xml +++ b/content/items.xml @@ -51,29 +51,30 @@ maxcharges="0" /> --> - + diff --git a/content/players.xml b/content/players.xml index ad62a79..4062018 100644 --- a/content/players.xml +++ b/content/players.xml @@ -2,19 +2,25 @@ ** Taken from the nicalis sample mod: ** http://steamcommunity.com/sharedfiles/filedetails/?id=838994644 --> - - + + diff --git a/main.lua b/main.lua index a01fa3f..b180126 100644 --- a/main.lua +++ b/main.lua @@ -2,7 +2,7 @@ --[[ CHARACTERS ]] -- Ariel - local ARIEL_NAME = "Ariel"; + local ARIEL_NAME = "TCL01_Ariel"; local ARIEL_TYPE = Isaac.GetPlayerTypeByName(ARIEL_NAME); local ARIEL_STATS = { MoveSpeedNaturalBonus = 0.10, @@ -13,13 +13,41 @@ MaxFireDelayNaturalExponent = 0.9, TearHeightBonus = 12, }; + local ARIEL_HEAD = Isaac.GetCostumeIdByPath("gfx/characters/players/01_Ariel_Head.anm2") + + + -- Nerielle + local NERIELLE_NAME = "TCL02_Nerielle"; + local NERIELLE_TYPE = Isaac.GetPlayerTypeByName(NERIELLE_NAME); + local NERIELLE_STATS = { + MoveSpeedNaturalBonus = 0.10, + MoveSpeedNaturalMultiplier = 0.9, + DamageNaturalMultiplier = 0.70, + ShotSpeedNaturalMultiplier = 0.8, + MaxFireDelayNaturalMultiplier = 1.0, + MaxFireDelayNaturalExponent = 0.9, + TearHeightBonus = 12, + }; + local NERIELLE_HEAD = Isaac.GetCostumeIdByPath("gfx/characters/players/02_Nerielle_Head.anm2") + + function Lore:PostPlayerInit( player ) + if player:GetPlayerType() == ARIEL_TYPE then + player:AddNullCostume( ARIEL_HEAD ); + end + if player:GetPlayerType() == NERIELLE_TYPE then + player:AddNullCostume( NERIELLE_HEAD ); + end + end + Lore:AddCallback( ModCallbacks.MC_POST_PLAYER_INIT, Lore.PostPlayerInit ); --[[ Stats ]] function Lore:EvaluateCache( player, cacheFlag ) - if player:GetPlayerType() = ARIEL_TYPE then + local player = Isaac.GetPlayer(0) -- get the player entity + if player:GetPlayerType() == ARIEL_TYPE then --[[ if cacheFlag == CacheFlag.CACHE_SPEED then - player.MoveSpeed = player.MoveSpeed * ARIEL_STATS.MoveSpeedNaturalMultiplier + ARIEL_STATS.MoveSpeedNaturalBonus; + player.MoveSpeed = player.Mññº + moveSpeed * ARIEL_STATS.MoveSpeedNaturalMultiplier + ARIEL_STATS.MoveSpeedNaturalBonus; elseif cacheFlag == CacheFlag.CACHE_SHOTSPEED then player.ShotSpeed = player.ShotSpeed * ARIEL_STATS.ShotSpeedNaturalMultiplier; elseif cacheFlag == CacheFlag.CACHE_DAMAGE then @@ -32,7 +60,42 @@ --player.TearColor = GAPPI_COLOR; --Player.LaserColor = GAPPI_COLOR; end]] - player.CanFly = true + if cacheFlag == CacheFlag.CACHE_FLYING then + player.CanFly = 1 end + end + if player:GetPlayerType() == NERIELLE_TYPE then + --[[ if cacheFlag == CacheFlag.CACHE_SPEED then + player.MoveSpeed = player.Mññº + moveSpeed * ARIEL_STATS.MoveSpeedNaturalMultiplier + ARIEL_STATS.MoveSpeedNaturalBonus; + elseif cacheFlag == CacheFlag.CACHE_SHOTSPEED then + player.ShotSpeed = player.ShotSpeed * ARIEL_STATS.ShotSpeedNaturalMultiplier; + elseif cacheFlag == CacheFlag.CACHE_DAMAGE then + player.Damage = player.Damage * ARIEL_STATS.DamageNaturalMultiplier; + elseif cacheFlag == CacheFlag.CACHE_FIREDELAY then + player.MaxFireDelay = math.floor( math.max( 1, player.MaxFireDelay * ARIEL_STATS.MaxFireDelayNaturalMultiplier ) ^ ARIEL_STATS.MaxFireDelayNaturalExponent ); + elseif cacheFlag == CacheFlag.CACHE_RANGE then + player.TearHeight = player.TearHeight + ARIEL_STATS.TearHeightBonus; + elseif cacheFlag == CacheFlag.CACHE_TEARCOLOR then + --player.TearColor = GAPPI_COLOR; + --Player.LaserColor = GAPPI_COLOR; + end]] + if cacheFlag == CacheFlag.CACHE_FLYING then + player.CanFly = 1 + end + end end Lore:AddCallback( ModCallbacks.MC_EVALUATE_CACHE, Lore.EvaluateCache ); + + Lore:AddCallback(ModCallbacks.MC_POST_FIRE_TEAR, function(_, tear) + + local player = Isaac.GetPlayer(0) -- get the player entity + + if player:GetPlayerType() == ARIEL_TYPE then + tear.TearFlags = tear.TearFlags | TearFlags.TEAR_CHARM -- add slowing effect to the tear + end + + if player:GetPlayerType() == NERIELLE_TYPE then + tear.TearFlags = tear.TearFlags | TearFlags.TEAR_BURN -- add slowing effect to the tear + end + end) diff --git a/resources/gfx/characters/costumes/ariel/base.png b/resources/gfx/characters/costumes/ariel/base.png deleted file mode 100644 index f58787d..0000000 Binary files a/resources/gfx/characters/costumes/ariel/base.png and /dev/null differ diff --git a/resources/gfx/characters/costumes/nerielle/base.png b/resources/gfx/characters/costumes/nerielle/base.png deleted file mode 100644 index ebaac26..0000000 Binary files a/resources/gfx/characters/costumes/nerielle/base.png and /dev/null differ diff --git a/resources/gfx/characters/costumes/template/base.png b/resources/gfx/characters/players/00_TemplateIsaac_Skin.png similarity index 100% rename from resources/gfx/characters/costumes/template/base.png rename to resources/gfx/characters/players/00_TemplateIsaac_Skin.png diff --git a/resources/gfx/characters/players/01_Ariel_Body.png b/resources/gfx/characters/players/01_Ariel_Body.png new file mode 100644 index 0000000..1b0dc48 Binary files /dev/null and b/resources/gfx/characters/players/01_Ariel_Body.png differ diff --git a/resources/gfx/characters/players/01_Ariel_Head.anm2 b/resources/gfx/characters/players/01_Ariel_Head.anm2 new file mode 100644 index 0000000..b4e2c8d --- /dev/null +++ b/resources/gfx/characters/players/01_Ariel_Head.anm2 @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/gfx/characters/players/01_Ariel_Head.png b/resources/gfx/characters/players/01_Ariel_Head.png new file mode 100644 index 0000000..10adf42 Binary files /dev/null and b/resources/gfx/characters/players/01_Ariel_Head.png differ diff --git a/resources/gfx/characters/players/01_Ariel_Skin.png b/resources/gfx/characters/players/01_Ariel_Skin.png new file mode 100644 index 0000000..a075965 Binary files /dev/null and b/resources/gfx/characters/players/01_Ariel_Skin.png differ diff --git a/resources/gfx/characters/players/01_Ariel_SkinBody.png b/resources/gfx/characters/players/01_Ariel_SkinBody.png new file mode 100644 index 0000000..988fa24 Binary files /dev/null and b/resources/gfx/characters/players/01_Ariel_SkinBody.png differ diff --git a/resources/gfx/characters/players/02_NerielleSkinBody.png b/resources/gfx/characters/players/02_NerielleSkinBody.png new file mode 100644 index 0000000..aaaaa42 Binary files /dev/null and b/resources/gfx/characters/players/02_NerielleSkinBody.png differ diff --git a/resources/gfx/characters/players/02_Nerielle_Head.anm2 b/resources/gfx/characters/players/02_Nerielle_Head.anm2 new file mode 100644 index 0000000..8a2c534 --- /dev/null +++ b/resources/gfx/characters/players/02_Nerielle_Head.anm2 @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/gfx/characters/players/02_Nerielle_Head.png b/resources/gfx/characters/players/02_Nerielle_Head.png new file mode 100644 index 0000000..acf449c Binary files /dev/null and b/resources/gfx/characters/players/02_Nerielle_Head.png differ diff --git a/resources/gfx/characters/players/02_Nerielle_Skin.png b/resources/gfx/characters/players/02_Nerielle_Skin.png new file mode 100644 index 0000000..9d78265 Binary files /dev/null and b/resources/gfx/characters/players/02_Nerielle_Skin.png differ diff --git a/resources/gfx/characters/players/costumes/01_Ariel_Hair.anm2 b/resources/gfx/characters/players/costumes/01_Ariel_Hair.anm2 new file mode 100644 index 0000000..077b604 --- /dev/null +++ b/resources/gfx/characters/players/costumes/01_Ariel_Hair.anm2 @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/gfx/characters/players/costumes/01_Ariel_Hair.png b/resources/gfx/characters/players/costumes/01_Ariel_Hair.png new file mode 100644 index 0000000..faae6fa Binary files /dev/null and b/resources/gfx/characters/players/costumes/01_Ariel_Hair.png differ diff --git a/resources/gfx/tears_charm.png b/resources/gfx/tears_charm.png new file mode 100644 index 0000000..a5c4378 Binary files /dev/null and b/resources/gfx/tears_charm.png differ diff --git a/resources/gfx/ui/main menu/charactermenu.anm2 b/resources/gfx/ui/main menu/charactermenu.anm2 new file mode 100644 index 0000000..fc46614 --- /dev/null +++ b/resources/gfx/ui/main menu/charactermenu.anm2 @@ -0,0 +1,1262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/gfx/ui/main menu/charactermenu.png b/resources/gfx/ui/main menu/charactermenu.png new file mode 100644 index 0000000..46794eb Binary files /dev/null and b/resources/gfx/ui/main menu/charactermenu.png differ diff --git a/resources/gfx/ui/main menu/charactermenu_tcl.png b/resources/gfx/ui/main menu/charactermenu_tcl.png new file mode 100644 index 0000000..87a2dd9 Binary files /dev/null and b/resources/gfx/ui/main menu/charactermenu_tcl.png differ diff --git a/resources/gfx/ui/main menu/characterportraits.anm2 b/resources/gfx/ui/main menu/characterportraits.anm2 new file mode 100644 index 0000000..671a48b --- /dev/null +++ b/resources/gfx/ui/main menu/characterportraits.anm2 @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +