Skip to content

Commit

Permalink
Use pngquant to optimize texture size
Browse files Browse the repository at this point in the history
  • Loading branch information
davcri committed Mar 22, 2020
1 parent 2a97cd3 commit b4e1fcb
Show file tree
Hide file tree
Showing 35 changed files with 8 additions and 106 deletions.
Binary file modified GameObjects/Card/Textures/cards_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GameObjects/Card/Textures/cards_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_1.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_1.png-3a29df96747ca31bf238124f6e97f98c.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_10.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_10.png-1f0fbbed28d45ef53d1692697a55bc97.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_11.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_11.png-35a8e4da8ecaa02827ca4c4fc5768ced.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_12.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_12.png-8dab7497a35c92f38e90ca3ab8b757e1.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_13.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_13.png-f73fa3da877e0ad116167c9f45f24001.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_2.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_2.png-611cd9fef83939bc37f005a9939dbfd5.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_3.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_3.png-ff7dfa5dd589fcad3b9058de96800769.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_4.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_4.png-b3b14cb04c5db2ef45f4212294aa58b3.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_5.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_5.png-7c39b1f53fb9949db2ab0355429216c4.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_6.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_6.png-c2a8b7ec9232b7a937fe27521165b707.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_7.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_7.png-513962c4d1bab7ef503d9789f40a6b09.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_8.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_8.png-4858258b4467e13b7269f38943fbf09c.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
Binary file modified GameObjects/Card/Textures/cards_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions GameObjects/Card/Textures/cards_9.png.import
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path="res://.import/cards_9.png-b10fabc846f173e1961e6a223b9d922e.stex"
metadata={
"vram_texture": false
}
group_file="res://GameObjects/Card/Textures/atlas.png"

[deps]

Expand All @@ -33,4 +32,3 @@ stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
atlas_file="res://GameObjects/Card/Textures/atlas.png"
20 changes: 8 additions & 12 deletions GameScenes/Battle/Battle.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[gd_scene load_steps=25 format=2]
[gd_scene load_steps=24 format=2]

[ext_resource path="res://GameScenes/Battle/Scripts/Battle.gd" type="Script" id=1]
[ext_resource path="res://GameScenes/Battle/Textures/cardsmat/cardsmat_13.png" type="Texture" id=2]
[ext_resource path="res://GameScenes/Battle/Textures/cardsmat/cardsmat_1.png" type="Texture" id=3]
[ext_resource path="res://GameScenes/Battle/Textures/field.png" type="Texture" id=2]
[ext_resource path="res://GameScenes/Battle/Scripts/Field.gd" type="Script" id=4]
[ext_resource path="res://GameScenes/Battle/Scripts/Player1Cards.gd" type="Script" id=5]
[ext_resource path="res://GameObjects/Card/Card.tscn" type="PackedScene" id=6]
Expand Down Expand Up @@ -54,15 +53,12 @@ __meta__ = {
}

[node name="CardsmatLeft" type="TextureRect" parent="BackroundTextures"]
margin_right = 1024.0
margin_bottom = 1024.0
texture = ExtResource( 2 )

[node name="CardsmatRight" type="TextureRect" parent="BackroundTextures"]
margin_left = 1024.0
margin_right = 1536.0
margin_bottom = 1024.0
texture = ExtResource( 3 )
margin_bottom = 896.0
texture = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Field" type="GridContainer" parent="."]
anchor_left = 0.5
Expand Down Expand Up @@ -354,6 +350,6 @@ autoplay = true
[connection signal="new_card_pointed" from="GameLogic/SelectionPointer/State/SelectingCard" to="Player1Cards" method="_on_SelectingCard_new_card_pointed"]
[connection signal="change_to_idle_state" from="GameLogic/SelectionPointer/State/CardSelected" to="GameLogic/SelectionPointer" method="_on_CardSelected_change_to_idle_state"]
[connection signal="place_card" from="GameLogic/SelectionPointer/State/CardSelected" to="GameLogic" method="_on_CardSelected_place_card"]
[connection signal="place_card" from="GameLogic/SelectionPointer/State/CardSelected" to="Player1Cards" method="_on_CardSelected_place_card"]
[connection signal="place_card" from="GameLogic/SelectionPointer/State/CardSelected" to="Player2Cards" method="_on_CardSelected_place_card"]
[connection signal="place_card" from="GameLogic/SelectionPointer/State/CardSelected" to="Player1Cards" method="_on_CardSelected_place_card"]
[connection signal="return_to_card_selection" from="GameLogic/SelectionPointer/State/CardSelected" to="GameLogic/SelectionPointer" method="_on_CardSelected_return_to_card_selection"]
Binary file removed GameScenes/Battle/Textures/cardsmat/cardsmat_1.png
Binary file not shown.
34 changes: 0 additions & 34 deletions GameScenes/Battle/Textures/cardsmat/cardsmat_1.png.import

This file was deleted.

Binary file removed GameScenes/Battle/Textures/cardsmat/cardsmat_13.png
Binary file not shown.
34 changes: 0 additions & 34 deletions GameScenes/Battle/Textures/cardsmat/cardsmat_13.png.import

This file was deleted.

Binary file modified GameScenes/Battle/Textures/cardstext_14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GameScenes/Battle/Textures/cardstext_15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GameScenes/Battle/Textures/field.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b4e1fcb

Please sign in to comment.