This commit is contained in:
2024-10-27 18:43:35 +01:00
parent f1eec54972
commit e242f59c0b
5082 changed files with 66034 additions and 0 deletions

View File

@ -0,0 +1 @@
sunny-land

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" />
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/sunny-land.iml" filepath="$PROJECT_DIR$/.idea/sunny-land.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,5 @@
<component name="DependencyValidationManager">
<state>
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</state>
</component>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="" />
</component>
</project>

View File

@ -0,0 +1,220 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="5ed61074-06a3-4c0c-9ece-88947c7c58f6" name="Default" comment="" />
<ignored path="sunny-land.iws" />
<ignored path=".idea/workspace.xml" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="DaemonCodeAnalyzer">
<disable_hints />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FavoritesManager">
<favorites_list name="sunny-land" />
</component>
<component name="FileEditorManager">
<leaf />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/game.js" />
</list>
</option>
</component>
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="135" />
<option name="y" value="23" />
<option name="width" value="1578" />
<option name="height" value="1413" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
</navigator>
<panes>
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="sunny-land" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="sunny-land" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="sunny-land" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="options.lastSelected" value="configurable.group.appearance" />
<property name="options.splitter.main.proportions" value="0.3" />
<property name="options.splitter.details.proportions" value="0.2" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="HbShouldOpenHtmlAsHb" value="" />
<property name="FullScreen" value="false" />
</component>
<component name="RunManager">
<list size="0" />
</component>
<component name="ShelveChangesManager" show_recycled="false" />
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="5ed61074-06a3-4c0c-9ece-88947c7c58f6" name="Default" comment="" />
<created>1496071079940</created>
<option name="number" value="Default" />
<updated>1496071079940</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="135" y="23" width="1578" height="1413" extended-state="0" />
<editor active="false" />
<layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.11432242" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="Vcs.Log.UiProperties">
<option name="RECENTLY_FILTERED_USER_GROUPS">
<collection />
</option>
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
<collection />
</option>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<option name="myTodoPanelSettings">
<TodoPanelSettings />
</option>
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/game.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="7973">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/game.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4794">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/game.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="4794">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/game.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="3281">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/phaser.min.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1280">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/game.js">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.90263367" vertical-offset="1742" max-vertical-offset="9044">
<caret line="169" column="26" selection-start-line="169" selection-start-column="26" selection-end-line="169" selection-end-column="26" />
<folding>
<element signature="n#!!doc" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

View File

@ -0,0 +1,192 @@
{"frames": [
{
"filename": "big-crate",
"frame": {"x":50,"y":59,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "block-big",
"frame": {"x":2,"y":93,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "block",
"frame": {"x":84,"y":19,"w":16,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":16,"h":16},
"sourceSize": {"w":16,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "bush",
"frame": {"x":2,"y":59,"w":46,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":46,"h":28},
"sourceSize": {"w":46,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "crank-down",
"frame": {"x":2,"y":37,"w":22,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":22,"h":16},
"sourceSize": {"w":22,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "crank-up",
"frame": {"x":44,"y":37,"w":22,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":22,"h":16},
"sourceSize": {"w":22,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "crate",
"frame": {"x":26,"y":37,"w":16,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":16,"h":16},
"sourceSize": {"w":16,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "door",
"frame": {"x":70,"y":93,"w":22,"h":33},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":22,"h":33},
"sourceSize": {"w":22,"h":33},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "face-block",
"frame": {"x":36,"y":93,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "house",
"frame": {"x":2,"y":223,"w":87,"h":108},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":87,"h":108},
"sourceSize": {"w":87,"h":108},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "platform-long",
"frame": {"x":50,"y":19,"w":32,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":16},
"sourceSize": {"w":32,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "rock",
"frame": {"x":2,"y":19,"w":28,"h":15},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":28,"h":15},
"sourceSize": {"w":28,"h":15},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "shrooms",
"frame": {"x":73,"y":2,"w":16,"h":15},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":16,"h":15},
"sourceSize": {"w":16,"h":15},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "sign",
"frame": {"x":68,"y":37,"w":18,"h":20},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":18,"h":20},
"sourceSize": {"w":18,"h":20},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "skulls",
"frame": {"x":36,"y":2,"w":16,"h":10},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":16,"h":10},
"sourceSize": {"w":16,"h":10},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "small-platform",
"frame": {"x":32,"y":19,"w":16,"h":16},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":16,"h":16},
"sourceSize": {"w":16,"h":16},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "spike-skull",
"frame": {"x":54,"y":2,"w":17,"h":12},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":17,"h":12},
"sourceSize": {"w":17,"h":12},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "spikes-top",
"frame": {"x":2,"y":2,"w":15,"h":9},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":9},
"sourceSize": {"w":15,"h":9},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "spikes",
"frame": {"x":19,"y":2,"w":15,"h":10},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":10},
"sourceSize": {"w":15,"h":10},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "tree",
"frame": {"x":2,"y":128,"w":105,"h":93},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":105,"h":93},
"sourceSize": {"w":105,"h":93},
"pivot": {"x":0.5,"y":0.5}
}],
"meta": {
"app": "http://www.codeandweb.com/texturepacker",
"version": "1.0",
"image": "atlas-props.png",
"format": "RGBA8888",
"size": {"w":109,"h":333},
"scale": "1",
"smartupdate": "$TexturePacker:SmartUpdate:0bd9942c57d8ce2036df6d61b997ffee:d3b00db9bd52d2286ca490f22371e19f:7367abe05465f33555345994fbb3342e$"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bf24u3s01widq"
path="res://.godot/imported/atlas-props.png-61776932537c18ce5cde5dd7a75aeaa3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/atlas/atlas-props.png"
dest_files=["res://.godot/imported/atlas-props.png-61776932537c18ce5cde5dd7a75aeaa3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -0,0 +1,223 @@
<?xml version="1.0" encoding="UTF-8"?>
<data version="1.0">
<struct type="Settings">
<key>fileFormatVersion</key>
<int>3</int>
<key>texturePackerVersion</key>
<string>3.5.2</string>
<key>fileName</key>
<string>/Users/luiszuno/Documents/GameDev/Phaser/artpacks/sunny-land/assets/atlas/atlas-props.tps</string>
<key>autoSDSettings</key>
<array>
<struct type="AutoSDSettings">
<key>scale</key>
<double>1</double>
<key>extension</key>
<string></string>
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<key>height</key>
<int>-1</int>
</QSize>
</struct>
</array>
<key>allowRotation</key>
<true/>
<key>premultiplyAlpha</key>
<false/>
<key>shapeDebug</key>
<false/>
<key>dpi</key>
<uint>72</uint>
<key>dataFormat</key>
<string>json-array</string>
<key>textureFileName</key>
<filename>atlas-props.png</filename>
<key>flipPVR</key>
<false/>
<key>pvrCompressionQuality</key>
<enum type="SettingsBase::PvrCompressionQuality">PVR_QUALITY_NORMAL</enum>
<key>mipMapMinSize</key>
<uint>32768</uint>
<key>etc1CompressionQuality</key>
<enum type="SettingsBase::Etc1CompressionQuality">ETC1_QUALITY_LOW_PERCEPTUAL</enum>
<key>dxtCompressionMode</key>
<enum type="SettingsBase::DxtCompressionMode">DXT_PERCEPTUAL</enum>
<key>jxrColorFormat</key>
<enum type="SettingsBase::JpegXrColorMode">JXR_YUV444</enum>
<key>jxrTrimFlexBits</key>
<uint>0</uint>
<key>jxrCompressionLevel</key>
<uint>0</uint>
<key>ditherType</key>
<enum type="SettingsBase::DitherType">NearestNeighbour</enum>
<key>backgroundColor</key>
<uint>0</uint>
<key>libGdx</key>
<struct type="LibGDX">
<key>filtering</key>
<struct type="LibGDXFiltering">
<key>x</key>
<enum type="LibGDXFiltering::Filtering">Linear</enum>
<key>y</key>
<enum type="LibGDXFiltering::Filtering">Linear</enum>
</struct>
</struct>
<key>shapePadding</key>
<uint>2</uint>
<key>jpgQuality</key>
<uint>80</uint>
<key>pngOptimizationLevel</key>
<uint>0</uint>
<key>webpQualityLevel</key>
<uint>101</uint>
<key>textureSubPath</key>
<string></string>
<key>textureFormat</key>
<enum type="SettingsBase::TextureFormat">png</enum>
<key>borderPadding</key>
<uint>2</uint>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>2048</int>
<key>height</key>
<int>2048</int>
</QSize>
<key>fixedTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<key>height</key>
<int>-1</int>
</QSize>
<key>reduceBorderArtifacts</key>
<false/>
<key>algorithmSettings</key>
<struct type="AlgorithmSettings">
<key>algorithm</key>
<enum type="AlgorithmSettings::AlgorithmId">Basic</enum>
<key>freeSizeMode</key>
<enum type="AlgorithmSettings::AlgorithmFreeSizeMode">Best</enum>
<key>sizeConstraints</key>
<enum type="AlgorithmSettings::SizeConstraints">AnySize</enum>
<key>forceSquared</key>
<false/>
<key>forceWordAligned</key>
<false/>
<key>maxRects</key>
<struct type="AlgorithmMaxRectsSettings">
<key>heuristic</key>
<enum type="AlgorithmMaxRectsSettings::Heuristic">Best</enum>
</struct>
<key>basic</key>
<struct type="AlgorithmBasicSettings">
<key>sortBy</key>
<enum type="AlgorithmBasicSettings::SortBy">Best</enum>
<key>order</key>
<enum type="AlgorithmBasicSettings::Order">Ascending</enum>
</struct>
</struct>
<key>andEngine</key>
<struct type="AndEngine">
<key>minFilter</key>
<enum type="AndEngine::MinFilter">Linear</enum>
<key>packageName</key>
<string>Texture</string>
<key>wrap</key>
<struct type="AndEngineWrap">
<key>s</key>
<enum type="AndEngineWrap::Wrap">Clamp</enum>
<key>t</key>
<enum type="AndEngineWrap::Wrap">Clamp</enum>
</struct>
<key>magFilter</key>
<enum type="AndEngine::MagFilter">MagLinear</enum>
</struct>
<key>dataFileNames</key>
<map type="GFileNameMap">
<key>data</key>
<struct type="DataFile">
<key>name</key>
<filename>atlas-props.json</filename>
</struct>
</map>
<key>multiPack</key>
<false/>
<key>forceIdenticalLayout</key>
<false/>
<key>outputFormat</key>
<enum type="SettingsBase::OutputFormat">RGBA8888</enum>
<key>contentProtection</key>
<struct type="ContentProtection">
<key>key</key>
<string></string>
</struct>
<key>autoAliasEnabled</key>
<true/>
<key>trimSpriteNames</key>
<true/>
<key>prependSmartFolderName</key>
<false/>
<key>cleanTransparentPixels</key>
<true/>
<key>globalSpriteSettings</key>
<struct type="SpriteSettings">
<key>scale</key>
<double>1</double>
<key>scaleMode</key>
<enum type="ScaleMode">Smooth</enum>
<key>innerPadding</key>
<uint>0</uint>
<key>extrude</key>
<uint>0</uint>
<key>trimThreshold</key>
<uint>1</uint>
<key>trimMode</key>
<enum type="SpriteSettings::TrimMode">None</enum>
<key>heuristicMask</key>
<false/>
<key>pivotPoint</key>
<enum type="SpriteSettings::PivotPoint">Center</enum>
</struct>
<key>fileList</key>
<array>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/big-crate.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/block-big.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/block.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/crank-down.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/crank-up.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/crate.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/door.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/face-block.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/house.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/platform-long.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/rock.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/shrooms.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/sign.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/skulls.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/small-platform.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/spike-skull.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/spikes-top.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/spikes.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/tree.png</filename>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/environment/props/bush.png</filename>
</array>
<key>ignoreFileList</key>
<array/>
<key>replaceList</key>
<array/>
<key>ignoredWarnings</key>
<array/>
<key>commonDivisorX</key>
<uint>1</uint>
<key>commonDivisorY</key>
<uint>1</uint>
</struct>
</data>

View File

@ -0,0 +1,525 @@
{"frames": [
{
"filename": "cherry/cherry-1",
"frame": {"x":108,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-2",
"frame": {"x":131,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-3",
"frame": {"x":154,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-4",
"frame": {"x":200,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-5",
"frame": {"x":177,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-6",
"frame": {"x":223,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "cherry/cherry-7",
"frame": {"x":85,"y":0,"w":21,"h":21},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":21,"h":21},
"sourceSize": {"w":21,"h":21},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "eagle/eagle-attack-1",
"frame": {"x":332,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "eagle/eagle-attack-2",
"frame": {"x":416,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "eagle/eagle-attack-3",
"frame": {"x":374,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "eagle/eagle-attack-4",
"frame": {"x":290,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-1",
"frame": {"x":248,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-2",
"frame": {"x":122,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-3",
"frame": {"x":206,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-4",
"frame": {"x":164,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-5",
"frame": {"x":80,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "enemy-death/enemy-death-6",
"frame": {"x":38,"y":102,"w":40,"h":41},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":40,"h":41},
"sourceSize": {"w":40,"h":41},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/idle/frog-idle-1",
"frame": {"x":181,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/idle/frog-idle-2",
"frame": {"x":255,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/idle/frog-idle-3",
"frame": {"x":144,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/idle/frog-idle-4",
"frame": {"x":107,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/jump/frog-jump-1",
"frame": {"x":218,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "frog/jump/frog-jump-2",
"frame": {"x":70,"y":68,"w":35,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":35,"h":32},
"sourceSize": {"w":35,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "gem/gem-1",
"frame": {"x":68,"y":0,"w":15,"h":13},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":13},
"sourceSize": {"w":15,"h":13},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "gem/gem-2",
"frame": {"x":51,"y":0,"w":15,"h":13},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":13},
"sourceSize": {"w":15,"h":13},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "gem/gem-3",
"frame": {"x":17,"y":0,"w":15,"h":13},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":13},
"sourceSize": {"w":15,"h":13},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "gem/gem-4",
"frame": {"x":34,"y":0,"w":15,"h":13},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":13},
"sourceSize": {"w":15,"h":13},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "gem/gem-5",
"frame": {"x":0,"y":0,"w":15,"h":13},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":15,"h":13},
"sourceSize": {"w":15,"h":13},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "item-feedback/item-feedback-1",
"frame": {"x":348,"y":0,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "item-feedback/item-feedback-2",
"frame": {"x":246,"y":0,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "item-feedback/item-feedback-3",
"frame": {"x":314,"y":0,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "item-feedback/item-feedback-4",
"frame": {"x":280,"y":0,"w":32,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":32},
"sourceSize": {"w":32,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-1",
"frame": {"x":368,"y":68,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-2",
"frame": {"x":292,"y":68,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-3",
"frame": {"x":330,"y":68,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-4",
"frame": {"x":406,"y":68,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-5",
"frame": {"x":0,"y":102,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "opossum/opossum-6",
"frame": {"x":444,"y":68,"w":36,"h":28},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":36,"h":28},
"sourceSize": {"w":36,"h":28},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/climb/player-climb-1",
"frame": {"x":382,"y":0,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/climb/player-climb-2",
"frame": {"x":70,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/climb/player-climb-3",
"frame": {"x":140,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/crouch/player-crouch-1",
"frame": {"x":245,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/crouch/player-crouch-2",
"frame": {"x":210,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/hurt/player-hurt-1",
"frame": {"x":280,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/hurt/player-hurt-2",
"frame": {"x":175,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/idle/player-idle-1",
"frame": {"x":105,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/idle/player-idle-2",
"frame": {"x":350,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/idle/player-idle-3",
"frame": {"x":452,"y":0,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/idle/player-idle-4",
"frame": {"x":315,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/jump/player-jump-1",
"frame": {"x":35,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/jump/player-jump-2",
"frame": {"x":0,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-1",
"frame": {"x":385,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-2",
"frame": {"x":35,"y":68,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-3",
"frame": {"x":0,"y":68,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-4",
"frame": {"x":420,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-5",
"frame": {"x":455,"y":34,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
},
{
"filename": "player/run/player-run-6",
"frame": {"x":417,"y":0,"w":33,"h":32},
"rotated": false,
"trimmed": false,
"spriteSourceSize": {"x":0,"y":0,"w":33,"h":32},
"sourceSize": {"w":33,"h":32},
"pivot": {"x":0.5,"y":0.5}
}],
"meta": {
"app": "http://www.codeandweb.com/texturepacker",
"version": "1.0",
"image": "atlas.png",
"format": "RGBA8888",
"size": {"w":490,"h":143},
"scale": "1",
"smartupdate": "$TexturePacker:SmartUpdate:310eca03ddf229966b059f92c542f203:2128f572e5e965473ee320ba55ca8b0e:cbce6b53f0f49e0bf15173c25c41f876$"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dmh8wceei6ugm"
path="res://.godot/imported/atlas.png-3f43b44b954119f9580e82a27388becd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/atlas/atlas.png"
dest_files=["res://.godot/imported/atlas.png-3f43b44b954119f9580e82a27388becd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8"?>
<data version="1.0">
<struct type="Settings">
<key>fileFormatVersion</key>
<int>3</int>
<key>texturePackerVersion</key>
<string>3.5.2</string>
<key>fileName</key>
<string>/Users/luiszuno/Documents/GameDev/Phaser/artpacks/sunny-land/assets/atlas/atlas.tps</string>
<key>autoSDSettings</key>
<array>
<struct type="AutoSDSettings">
<key>scale</key>
<double>1</double>
<key>extension</key>
<string></string>
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<key>height</key>
<int>-1</int>
</QSize>
</struct>
</array>
<key>allowRotation</key>
<true/>
<key>premultiplyAlpha</key>
<false/>
<key>shapeDebug</key>
<false/>
<key>dpi</key>
<uint>72</uint>
<key>dataFormat</key>
<string>json-array</string>
<key>textureFileName</key>
<filename>atlas.png</filename>
<key>flipPVR</key>
<false/>
<key>pvrCompressionQuality</key>
<enum type="SettingsBase::PvrCompressionQuality">PVR_QUALITY_NORMAL</enum>
<key>mipMapMinSize</key>
<uint>32768</uint>
<key>etc1CompressionQuality</key>
<enum type="SettingsBase::Etc1CompressionQuality">ETC1_QUALITY_LOW_PERCEPTUAL</enum>
<key>dxtCompressionMode</key>
<enum type="SettingsBase::DxtCompressionMode">DXT_PERCEPTUAL</enum>
<key>jxrColorFormat</key>
<enum type="SettingsBase::JpegXrColorMode">JXR_YUV444</enum>
<key>jxrTrimFlexBits</key>
<uint>0</uint>
<key>jxrCompressionLevel</key>
<uint>0</uint>
<key>ditherType</key>
<enum type="SettingsBase::DitherType">NearestNeighbour</enum>
<key>backgroundColor</key>
<uint>0</uint>
<key>libGdx</key>
<struct type="LibGDX">
<key>filtering</key>
<struct type="LibGDXFiltering">
<key>x</key>
<enum type="LibGDXFiltering::Filtering">Linear</enum>
<key>y</key>
<enum type="LibGDXFiltering::Filtering">Linear</enum>
</struct>
</struct>
<key>shapePadding</key>
<uint>2</uint>
<key>jpgQuality</key>
<uint>80</uint>
<key>pngOptimizationLevel</key>
<uint>0</uint>
<key>webpQualityLevel</key>
<uint>101</uint>
<key>textureSubPath</key>
<string></string>
<key>textureFormat</key>
<enum type="SettingsBase::TextureFormat">png</enum>
<key>borderPadding</key>
<uint>0</uint>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>2048</int>
<key>height</key>
<int>2048</int>
</QSize>
<key>fixedTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<key>height</key>
<int>-1</int>
</QSize>
<key>reduceBorderArtifacts</key>
<false/>
<key>algorithmSettings</key>
<struct type="AlgorithmSettings">
<key>algorithm</key>
<enum type="AlgorithmSettings::AlgorithmId">Basic</enum>
<key>freeSizeMode</key>
<enum type="AlgorithmSettings::AlgorithmFreeSizeMode">Best</enum>
<key>sizeConstraints</key>
<enum type="AlgorithmSettings::SizeConstraints">AnySize</enum>
<key>forceSquared</key>
<false/>
<key>forceWordAligned</key>
<false/>
<key>maxRects</key>
<struct type="AlgorithmMaxRectsSettings">
<key>heuristic</key>
<enum type="AlgorithmMaxRectsSettings::Heuristic">Best</enum>
</struct>
<key>basic</key>
<struct type="AlgorithmBasicSettings">
<key>sortBy</key>
<enum type="AlgorithmBasicSettings::SortBy">Best</enum>
<key>order</key>
<enum type="AlgorithmBasicSettings::Order">Ascending</enum>
</struct>
</struct>
<key>andEngine</key>
<struct type="AndEngine">
<key>minFilter</key>
<enum type="AndEngine::MinFilter">Linear</enum>
<key>packageName</key>
<string>Texture</string>
<key>wrap</key>
<struct type="AndEngineWrap">
<key>s</key>
<enum type="AndEngineWrap::Wrap">Clamp</enum>
<key>t</key>
<enum type="AndEngineWrap::Wrap">Clamp</enum>
</struct>
<key>magFilter</key>
<enum type="AndEngine::MagFilter">MagLinear</enum>
</struct>
<key>dataFileNames</key>
<map type="GFileNameMap">
<key>data</key>
<struct type="DataFile">
<key>name</key>
<filename>atlas.json</filename>
</struct>
</map>
<key>multiPack</key>
<false/>
<key>forceIdenticalLayout</key>
<false/>
<key>outputFormat</key>
<enum type="SettingsBase::OutputFormat">RGBA8888</enum>
<key>contentProtection</key>
<struct type="ContentProtection">
<key>key</key>
<string></string>
</struct>
<key>autoAliasEnabled</key>
<false/>
<key>trimSpriteNames</key>
<true/>
<key>prependSmartFolderName</key>
<false/>
<key>cleanTransparentPixels</key>
<true/>
<key>globalSpriteSettings</key>
<struct type="SpriteSettings">
<key>scale</key>
<double>1</double>
<key>scaleMode</key>
<enum type="ScaleMode">Smooth</enum>
<key>innerPadding</key>
<uint>0</uint>
<key>extrude</key>
<uint>0</uint>
<key>trimThreshold</key>
<uint>1</uint>
<key>trimMode</key>
<enum type="SpriteSettings::TrimMode">None</enum>
<key>heuristicMask</key>
<false/>
<key>pivotPoint</key>
<enum type="SpriteSettings::PivotPoint">Center</enum>
</struct>
<key>fileList</key>
<array>
<filename>../../../../../../ansimuz resources/ART PACKS/2017/May/Sunny Land/Sunny-land-files/PNG/sprites</filename>
</array>
<key>ignoreFileList</key>
<array/>
<key>replaceList</key>
<array/>
<key>ignoredWarnings</key>
<array/>
<key>commonDivisorX</key>
<uint>1</uint>
<key>commonDivisorY</key>
<uint>1</uint>
</struct>
</data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dqqie5kmvxvg4"
path="res://.godot/imported/back.png-dfe9adb16b4339e8b35d592e559778ba.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/environment/back.png"
dest_files=["res://.godot/imported/back.png-dfe9adb16b4339e8b35d592e559778ba.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c84gdnqpxf55j"
path="res://.godot/imported/collision.png-4de6a4186b6ebed81e66010ac5f6879b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/environment/collision.png"
dest_files=["res://.godot/imported/collision.png-4de6a4186b6ebed81e66010ac5f6879b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dd403k3ba1wf3"
path="res://.godot/imported/middle.png-e2397e7bb26e76f2ab0f48cc5ced09e1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/environment/middle.png"
dest_files=["res://.godot/imported/middle.png-e2397e7bb26e76f2ab0f48cc5ced09e1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0awqec5r2ou2"
path="res://.godot/imported/tileset.png-2c5ce86349996d05f57c249ffee537de.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/environment/tileset.png"
dest_files=["res://.godot/imported/tileset.png-2c5ce86349996d05f57c249ffee537de.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://ccf6l7xnup3db"
path="res://.godot/imported/platformer_level03_loop.ogg-5e9c5df7f9879af7edbe8e4aec53670d.oggvorbisstr"
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sound/platformer_level03_loop.ogg"
dest_files=["res://.godot/imported/platformer_level03_loop.ogg-5e9c5df7f9879af7edbe8e4aec53670d.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dwa18kkhahvtf"
path="res://.godot/imported/credits-text.png-fbbe2395268810c867d0de8e5099c356.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sprites/credits-text.png"
dest_files=["res://.godot/imported/credits-text.png-fbbe2395268810c867d0de8e5099c356.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckomjwylfi65c"
path="res://.godot/imported/instructions.png-1e475ae72f3063be5cd4d821b87d8a0a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sprites/instructions.png"
dest_files=["res://.godot/imported/instructions.png-1e475ae72f3063be5cd4d821b87d8a0a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cnplgq0jp4x3c"
path="res://.godot/imported/loading.png-c6871aa9bfaa7dcb3f547ccf354d6078.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sprites/loading.png"
dest_files=["res://.godot/imported/loading.png-c6871aa9bfaa7dcb3f547ccf354d6078.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://xc2r57qosd3c"
path="res://.godot/imported/press-enter-text.png-0f07a8f13523e812ca109749850e6f29.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sprites/press-enter-text.png"
dest_files=["res://.godot/imported/press-enter-text.png-0f07a8f13523e812ca109749850e6f29.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dt7um7vjanpw"
path="res://.godot/imported/title-screen.png-1feb79fb6cbf779eaf790c7b39d9065b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/sunny-land-phaser-project/sunny-land/assets/sprites/title-screen.png"
dest_files=["res://.godot/imported/title-screen.png-1feb79fb6cbf779eaf790c7b39d9065b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -0,0 +1,533 @@
/*
* SUNNY LAND Demo Code
* @copyright 2017 Ansimuz
* @license {@link https://opensource.org/licenses/MIT | MIT License}
* Get free assets and code at: www.pixelgameart.org
* */
var game;
var background;
var middleground;
var gameWidth = 288;
var gameHeight = 192;
var hurtFlag = false;
var hurtTimer;
var frogTimer;
var frogJumpSide = 'left';
window.onload = function () {
game = new Phaser.Game(gameWidth, gameHeight, Phaser.AUTO, "");
game.state.add('Boot', boot);
game.state.add('Preload', preload);
game.state.add('TitleScreen', titleScreen);
game.state.add('PlayGame', playGame);
//
game.state.start("Boot");
}
var boot = function (game) {
};
boot.prototype = {
preload: function () {
this.game.load.image('loading', 'assets/sprites/loading.png');
},
create: function () {
game.scale.pageAlignHorizontally = true;
game.scale.pageAlignVertically = true;
game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
game.renderer.renderSession.roundPixels = true; // no blurring
this.game.state.start('Preload');
}
}
var preload = function (game) {
};
preload.prototype = {
preload: function () {
var loadingBar = this.add.sprite(game.width / 2, game.height / 2, 'loading');
loadingBar.anchor.setTo(0.5);
game.load.setPreloadSprite(loadingBar);
// load title screen
game.load.image('title', 'assets/sprites/title-screen.png');
game.load.image('enter', 'assets/sprites/press-enter-text.png');
game.load.image('credits', 'assets/sprites/credits-text.png');
game.load.image('instructions', 'assets/sprites/instructions.png');
// environment
game.load.image('background', 'assets/environment/back.png');
game.load.image('middleground', 'assets/environment/middle.png');
//tileset
game.load.image('tileset', 'assets/environment/tileset.png');
game.load.tilemap('map', 'assets/maps/map.json', null, Phaser.Tilemap.TILED_JSON);
// atlas sprites
game.load.atlasJSONArray('atlas', 'assets/atlas/atlas.png', 'assets/atlas/atlas.json');
game.load.atlasJSONArray('atlas-props', 'assets/atlas/atlas-props.png', 'assets/atlas/atlas-props.json');
//
game.load.audio('music', ['assets/sound/platformer_level03_loop.ogg']);
},
create: function () {
this.game.state.start('TitleScreen');
}
}
var titleScreen = function (game) {
};
titleScreen.prototype = {
create: function () {
background = game.add.tileSprite(0, 0, gameWidth, gameHeight, 'background');
middleground = game.add.tileSprite(0, 80, gameWidth, gameHeight, 'middleground');
this.title = game.add.image(game.width / 2, 70, 'title');
this.title.anchor.setTo(0.5, 0);
var credits = game.add.image(game.width / 2, game.height - 10, 'credits');
credits.anchor.setTo(0.5, 1);
this.pressEnter = game.add.image(game.width / 2, game.height - 35, 'enter');
this.pressEnter.anchor.setTo(0.5, 1);
var startKey = game.input.keyboard.addKey(Phaser.Keyboard.ENTER);
startKey.onDown.add(this.startGame, this);
game.time.events.loop(700, this.blinkText, this);
this.state = 1;
},
blinkText: function () {
if (this.pressEnter.alpha) {
this.pressEnter.alpha = 0;
} else {
this.pressEnter.alpha = 1;
}
}
,
update: function () {
background.tilePosition.x -= .3;
middleground.tilePosition.x -= .6;
},
startGame: function () {
if (this.state == 1) {
this.state = 2;
this.title2 = game.add.image(game.width / 2, 0, 'instructions');
this.title2.anchor.setTo(0.5, 0);
this.title.destroy();
} else {
this.game.state.start('PlayGame');
}
}
}
var playGame = function (game) {
};
playGame.prototype = {
create: function () {
this.createBackgrounds();
this.createWorld();
this.decorWorld();
this.createPlayer(54, 9);
this.bindKeys();
game.camera.follow(this.player, Phaser.Camera.FOLLOW_PLATFORMER);
this.populateWorld();
// music
this.music = game.add.audio('music');
this.music.loop = true;
this.music.play();
},
bindKeys: function () {
this.wasd = {
jump: game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR),
left: game.input.keyboard.addKey(Phaser.Keyboard.LEFT),
right: game.input.keyboard.addKey(Phaser.Keyboard.RIGHT),
crouch: game.input.keyboard.addKey(Phaser.Keyboard.DOWN)
}
game.input.keyboard.addKeyCapture(
[Phaser.Keyboard.SPACEBAR,
Phaser.Keyboard.LEFT,
Phaser.Keyboard.RIGHT,
Phaser.Keyboard.DOWN]
);
},
decorWorld: function () {
game.add.image(31 * 16, 4 * 16 + 3, 'atlas-props', 'tree');
game.add.image(48 * 16, 3 * 16 + 5, 'atlas-props', 'house');
game.add.image(10 * 16, 8 * 16 + 4, 'atlas-props', 'bush');
game.add.image(11 * 16, 19 * 16 - 4, 'atlas-props', 'sign');
game.add.image(15 * 16, 19 * 16 + 6, 'atlas-props', 'skulls');
game.add.image(23 * 16, 19 * 16, 'atlas-props', 'face-block');
game.add.image(28 * 16, 20 * 16, 'atlas-props', 'shrooms');
},
populateWorld: function () {
// groups
this.enemies = game.add.group();
this.enemies.enableBody = true;
//
this.items = game.add.group();
this.items.enableBody = true;
//timer for frog jumps
frogTimer = game.time.create(false);
frogTimer.loop(2000, this.switchFrogJump, this);
frogTimer.start();
// create items
this.createCherry(30, 5);
this.createCherry(31, 5);
this.createCherry(32, 5);
//
this.createCherry(23, 17);
this.createCherry(24, 17);
this.createCherry(25, 17);
//
this.createGem(3, 6);
this.createGem(4, 6);
this.createGem(5, 6);
//
this.createGem(44, 12);
this.createGem(42, 13);
this.createGem(42, 16);
// create enemies
this.createFrog(15, 9);
this.createFrog(30, 20);
this.createEagle(33, 6);
this.createEagle(6, 7);
this.createOpossum(42, 9);
this.createOpossum(23, 20);
},
switchFrogJump: function () {
frogJumpSide = (frogJumpSide == 'left') ? 'right' : 'left';
},
createBackgrounds: function () {
this.background = game.add.tileSprite(0, 0, gameWidth, gameHeight, 'background');
this.middleground = game.add.tileSprite(0, 80, gameWidth, gameHeight, 'middleground');
this.background.fixedToCamera = true;
this.middleground.fixedToCamera = true;
},
createWorld: function () {
// tilemap
this.map = game.add.tilemap('map');
this.map.addTilesetImage('tileset');
this.layer = this.map.createLayer('Tile Layer 1');
this.layer.resizeWorld();
// which tiles collide
this.map.setCollision([27, 29, 31, 33, 35, 37, 77, 81, 86, 87, 127, 129, 131, 133, 134, 135, 83, 84, 502, 504, 505, 529, 530, 333, 335, 337, 339, 366, 368, 262, 191, 193, 195, 241, 245, 291, 293, 295,]);
// set some tiles one way collision
this.setTopCollisionTiles(35);
this.setTopCollisionTiles(36);
this.setTopCollisionTiles(84);
this.setTopCollisionTiles(86);
this.setTopCollisionTiles(134);
this.setTopCollisionTiles(135);
this.setTopCollisionTiles(366);
this.setTopCollisionTiles(367);
this.setTopCollisionTiles(368);
this.setTopCollisionTiles(262);
},
setTopCollisionTiles: function (tileIndex) {
var x, y, tile;
for (x = 0; x < this.map.width; x++) {
for (y = 1; y < this.map.height; y++) {
tile = this.map.getTile(x, y);
if (tile !== null) {
if (tile.index == tileIndex) {
tile.setCollision(false, false, true, false);
}
}
}
}
},
createPlayer: function (x, y) {
x *= 16;
y *= 16;
this.player = game.add.sprite(x, y, 'atlas', 'player/idle/player-idle-1');
this.player.anchor.setTo(0.5);
game.physics.arcade.enable(this.player);
this.player.body.gravity.y = 500;
this.player.body.setSize(12, 16, 8, 16);
//add animations
var animVel = 15;
this.player.animations.add('idle', Phaser.Animation.generateFrameNames('player/idle/player-idle-', 1, 4, '', 0), animVel - 3, true);
this.player.animations.add('run', Phaser.Animation.generateFrameNames('player/run/player-run-', 1, 6, '', 0), animVel, true);
this.player.animations.add('jump', ['player/jump/player-jump-1'], 1, false);
this.player.animations.add('fall', ['player/jump/player-jump-2'], 1, false);
this.player.animations.add('crouch', Phaser.Animation.generateFrameNames('player/crouch/player-crouch-', 1, 2, '', 0), 10, true);
this.player.animations.add('hurt', Phaser.Animation.generateFrameNames('player/hurt/player-hurt-', 1, 2, '', 0), animVel, true);
this.player.animations.play('idle');
// timer
hurtTimer = game.time.create(false);
hurtTimer.loop(500, this.resetHurt, this);
},
createEnemyDeath: function (x, y) {
this.enemyDeath = game.add.sprite(x, y, 'atlas');
this.enemyDeath.anchor.setTo(0.5);
this.animDeath = this.enemyDeath.animations.add('dead', Phaser.Animation.generateFrameNames('enemy-death/enemy-death-', 1, 6, '', 0), 16, false);
this.enemyDeath.animations.play('dead');
this.animDeath.onComplete.add(function () {
this.enemyDeath.kill();
}, this);
},
createItemFeedback: function (x, y) {
var itemFeedback = game.add.sprite(x, y, 'atlas');
itemFeedback.anchor.setTo(0.5);
var animFeedback = itemFeedback.animations.add('feedback', Phaser.Animation.generateFrameNames('item-feedback/item-feedback-', 1, 4, '', 0), 16, false);
itemFeedback.animations.play('feedback');
animFeedback.onComplete.add(function () {
itemFeedback.kill();
}, this);
},
resetHurt: function () {
hurtFlag = false;
},
createOpossum: function (x, y) {
x *= 16;
y *= 16;
var temp = game.add.sprite(x, y, 'atlas', 'opossum/opossum-1');
temp.anchor.setTo(0.5);
game.physics.arcade.enable(temp);
temp.body.gravity.y = 500;
temp.body.setSize(16, 13, 8, 15);
//add animations
temp.animations.add('run', Phaser.Animation.generateFrameNames('opossum/opossum-', 1, 6, '', 0), 12, true);
temp.animations.play('run');
temp.body.velocity.x = 60 * game.rnd.pick([1, -1]);
temp.body.bounce.x = 1;
temp.enemyType = 'opossum';
this.enemies.add(temp);
},
createEagle: function (x, y) {
x *= 16;
y *= 16;
var temp = game.add.sprite(x, y, 'atlas', 'eagle/eagle-attack-1');
temp.anchor.setTo(0.5);
game.physics.arcade.enable(temp);
temp.body.setSize(16, 13, 8, 20);
//add animations
temp.animations.add('attack', Phaser.Animation.generateFrameNames('eagle/eagle-attack-', 1, 4, '', 0), 12, true);
temp.animations.play('attack');
// tweens
var VTween = game.add.tween(temp).to({
y: y + 50
}, 1000, Phaser.Easing.Linear.None, true, 0, -1);
VTween.yoyo(true);
temp.enemyType = 'eagle';
this.enemies.add(temp);
},
createFrog: function (x, y) {
x *= 16;
y *= 16;
var temp = game.add.sprite(x, y, 'atlas', 'frog/idle/frog-idle-1');
temp.anchor.setTo(0.5);
game.physics.arcade.enable(temp);
temp.body.gravity.y = 500;
temp.body.setSize(16, 16, 8, 11);
//add animations
temp.animations.add('idle', Phaser.Animation.generateFrameNames('frog/idle/frog-idle-', 1, 4, '', 0), 6, true);
temp.animations.add('jump', ['frog/jump/frog-jump-1'], 6, false);
temp.animations.add('fall', ['frog/jump/frog-jump-2'], 6, false);
temp.animations.play('idle');
temp.enemyType = 'frog';
temp.side = 'right';
this.enemies.add(temp);
},
createCherry: function (x, y) {
x *= 16;
y *= 16;
var temp = game.add.sprite(x, y, 'atlas', 'cherry/cherry-1');
temp.anchor.setTo(0.5);
game.physics.arcade.enable(temp);
//add animations
temp.animations.add('idle', Phaser.Animation.generateFrameNames('cherry/cherry-', 1, 7, '', 0), 12, true);
temp.animations.play('idle');
this.items.add(temp);
},
createGem: function (x, y) {
x *= 16;
y *= 16;
var temp = game.add.sprite(x, y, 'atlas', 'gem/gem-1');
temp.anchor.setTo(0.5);
game.physics.arcade.enable(temp);
//add animations
temp.animations.add('idle', Phaser.Animation.generateFrameNames('gem/gem-', 1, 5, '', 0), 12, true);
temp.animations.play('idle');
this.items.add(temp);
},
update: function () {
//this.debugGame();
game.physics.arcade.collide(this.player, this.layer);
game.physics.arcade.collide(this.enemies, this.layer);
game.physics.arcade.overlap(this.player, this.enemies, this.checkAgainstEnemies, null, this);
game.physics.arcade.overlap(this.player, this.items, this.pickItem, null, this);
this.movePlayer();
this.enemiesManager();
this.parallaxBackground();
},
pickItem: function (player, item) {
this.createItemFeedback(item.x, item.y);
item.kill();
},
enemiesManager: function () {
for (var i = 0, len = this.enemies.children.length; i < len; i++) {
var tempEnemy = this.enemies.children[i];
// opossum
if (tempEnemy.enemyType == 'opossum') {
if (tempEnemy.body.velocity.x < 0) {
tempEnemy.scale.x = 1;
} else {
tempEnemy.scale.x = -1;
}
}
// eagle
if (tempEnemy.enemyType == 'eagle') {
if (tempEnemy.x > this.player.x) {
tempEnemy.scale.x = 1;
} else {
tempEnemy.scale.x = -1;
}
}
// frog
if (tempEnemy.enemyType == 'frog') {
if (tempEnemy.side == 'left' && frogJumpSide == 'right') {
tempEnemy.scale.x = 1;
tempEnemy.side = 'right';
tempEnemy.body.velocity.y = -200;
tempEnemy.body.velocity.x = -100;
} else if (tempEnemy.side == 'right' && frogJumpSide == 'left') {
tempEnemy.scale.x = -1;
tempEnemy.side = 'left';
tempEnemy.body.velocity.y = -200;
tempEnemy.body.velocity.x = 100;
} else if (tempEnemy.body.onFloor()) {
tempEnemy.body.velocity.x = 0;
}
// animations
if (tempEnemy.body.velocity.y < 0) {
tempEnemy.animations.play('jump');
} else if (tempEnemy.body.velocity.y > 0) {
tempEnemy.animations.play('fall');
} else {
tempEnemy.animations.play('idle');
}
}
}
},
checkAgainstEnemies: function (player, enemy) {
if ((player.y + player.body.height * .5 < enemy.y ) && player.body.velocity.y > 0) {
this.createEnemyDeath(enemy.x, enemy.y);
enemy.kill();
player.body.velocity.y = -200;
} else {
this.hurtPlayer();
}
},
hurtPlayer: function () {
if (hurtFlag) {
return;
}
hurtFlag = true;
hurtTimer.start();
this.player.body.velocity.y = -100;
this.player.body.velocity.x = (this.player.scale.x == 1) ? -100 : 100;
},
parallaxBackground: function () {
this.background.tilePosition.x = this.layer.x * -0.1;
this.middleground.tilePosition.x = this.layer.x * -0.5;
},
debugGame: function () {
//game.debug.spriteInfo(this.player, 30, 30);
//game.debug.body(this.enemies);
game.debug.body(this.player);
this.enemies.forEachAlive(this.renderGroup, this);
this.items.forEachAlive(this.renderGroup, this);
},
renderGroup: function (member) {
game.debug.body(member);
},
movePlayer: function () {
if (hurtFlag) {
this.player.animations.play('hurt');
return;
}
if (this.wasd.jump.isDown && this.player.body.onFloor()) {
this.player.body.velocity.y = -170;
}
var vel = 150;
if (this.wasd.left.isDown) {
this.player.body.velocity.x = -vel;
this.player.animations.play('run');
this.player.scale.x = -1;
} else if (this.wasd.right.isDown) {
this.player.body.velocity.x = vel;
this.player.animations.play('run');
this.player.scale.x = 1;
} else {
this.player.body.velocity.x = 0;
if (this.wasd.crouch.isDown) {
this.player.animations.play('crouch');
} else {
this.player.animations.play('idle');
}
}
// jump animation
if (this.player.body.velocity.y < 0) {
this.player.animations.play('jump');
} else if (this.player.body.velocity.y > 0) {
this.player.animations.play('fall');
}
}
}

View File

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title> Demo </title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.hiddenText{
font-family: Bandit;
visibility: hidden;
height: 0;
}
#gameDiv{
width: 500px;
height: 288px;
}
canvas {
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
}
</style>
<script type="text/javascript" src="phaser.min.js"></script>
<script type="text/javascript" src="game.js"></script>
<meta name="viewport" content="initial-scale=1 user-scalable=0" />
</head>
<body>
</body>
</html>

File diff suppressed because one or more lines are too long