fix various bug and optimize layout
All checks were successful
Deploy to Production / deploy (push) Successful in 6s

This commit is contained in:
Đặng Minh Quang
2026-02-26 14:17:39 +07:00
parent 5e295ac696
commit b0e2171a5e
50 changed files with 1886 additions and 11 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<c2uistate>
<!--This is a UI state file - its content describes the user interface settings when the layout was last open.
It is entirely optional and the project will load without it. If you are placing the project under source control,
you probably do not want to add any .uistate.xml files to the repository.-->
<camera>
<position-x>600</position-x>
<position-y>600</position-y>
<position-z>500.54</position-z>
<lookat-x>600</lookat-x>
<lookat-y>600</lookat-y>
<lookat-z>0</lookat-z>
</camera>
<snap-to-grid>0</snap-to-grid>
<show-grid>0</show-grid>
<snap-width>32</snap-width>
<snap-height>32</snap-height>
<show-collision-polys>0</show-collision-polys>
<translucent-inactive-layers>0</translucent-inactive-layers>
<properties>
<property expanded="1" name="Layout properties" />
<property expanded="0" name="Layout Size" />
<property expanded="0" name="Margins" />
<property expanded="1" name="Effects" />
</properties>
<active-layer name="Layer 0" />
<layers>
<layer locked="0" name="Layer 0" parallax-in-editor="0" visible="1" />
</layers>
</c2uistate>

View File

@@ -0,0 +1,515 @@
<?xml version="1.0" encoding="utf-8" ?>
<c2layout>
<name>Game</name>
<sid>288730111597454</sid>
<event-sheet>Game</event-sheet>
<size>
<width>1200</width>
<height>1200</height>
</size>
<margins>
<horizontal>500</horizontal>
<vertical>500</vertical>
</margins>
<unbounded-scrolling>0</unbounded-scrolling>
<layers>
<layer name="Layer 0" sid="763235347287340">
<initially-visible>1</initially-visible>
<background-color>255,255,255</background-color>
<transparent>1</transparent>
<parallax>
<x>0</x>
<y>0</y>
</parallax>
<zoom-rate>0</zoom-rate>
<opacity>1</opacity>
<force-own-texture>0</force-own-texture>
<global>0</global>
<use-render-cells>0</use-render-cells>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<instances>
<instance type="Black" uid="25">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<instance-variables>
<num>0</num>
</instance-variables>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>596</x>
<y>540</y>
<z>0</z>
<width>2858.676025391</width>
<height>2678.729248047</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>0.100000001</opacity>
</world>
</instance>
<instance type="Hint" uid="31">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>600</x>
<y>350</y>
<z>0</z>
<width>600</width>
<height>600</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="answers" uid="3">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<instance-variables>
<origX>0</origX>
<origY>0</origY>
<currentSlot>-1</currentSlot>
<value></value>
<OrgH>0</OrgH>
<OrgW>0</OrgW>
</instance-variables>
<behavior-instances>
<behavior-instance type="MoveTo">
<properties>
<activated>Yes</activated>
<max-speed>3000</max-speed>
<acceleration>1500</acceleration>
<deceleration>1500</deceleration>
</properties>
</behavior-instance>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
<behavior-instance type="DragDrop">
<properties>
<axes>Both</axes>
<initial-state>Enabled</initial-state>
</properties>
</behavior-instance>
<behavior-instance type="EaseTween">
<properties>
<active-on-start>No</active-on-start>
<tweened-property>Size(Pixel)</tweened-property>
<function>EaseOutBack</function>
<initial>current</initial>
<target>100, 100</target>
<duration>0.3</duration>
<wait>0,0</wait>
<playback-mode>Play Once</playback-mode>
<value>0</value>
<coordinate-mode>Absolute</coordinate-mode>
<force-initial-on-start>No</force-initial-on-start>
<tween-group></tween-group>
</properties>
</behavior-instance>
<behavior-instance type="EaseTween2">
<properties>
<active-on-start>No</active-on-start>
<tweened-property>Size(Pixel)</tweened-property>
<function>EaseOutCubic</function>
<initial>current</initial>
<target>100, 100</target>
<duration>0.3</duration>
<wait>0,0</wait>
<playback-mode>Play Once</playback-mode>
<value>0</value>
<coordinate-mode>Absolute</coordinate-mode>
<force-initial-on-start>No</force-initial-on-start>
<tween-group></tween-group>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-1758.874389648</x>
<y>-49.235290527</y>
<z>0</z>
<width>249</width>
<height>130</height>
<depth>0</depth>
<hotspotX>0.502512574</hotspotX>
<hotspotY>0.505882382</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Slot" uid="9">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>1</initial-frame>
<collisions>Enabled</collisions>
</properties>
<instance-variables>
<slotIndex>-1</slotIndex>
<isPreset>0</isPreset>
<value></value>
<num>0</num>
<isOccupied>0</isOccupied>
</instance-variables>
<behavior-instances>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-2073</x>
<y>190</y>
<z>0</z>
<width>249</width>
<height>130</height>
<depth>0</depth>
<hotspotX>0.502512574</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="AnswerTxt" uid="18">
<properties>
<text>Answer</text>
<initial-visibility>Visible</initial-visibility>
<font>Arial,-48,700,0</font>
<color>255,255,255</color>
<horizontal-alignment>Center</horizontal-alignment>
<vertical-alignment>Center</vertical-alignment>
<hotspot>Center</hotspot>
<wrapping>Word</wrapping>
<line-height>0</line-height>
</properties>
<behavior-instances>
<behavior-instance type="Pin" />
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-3356</x>
<y>1133</y>
<z>0</z>
<width>168</width>
<height>74</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="SlotTxt" uid="1">
<properties>
<text>Slot</text>
<initial-visibility>Visible</initial-visibility>
<font>Arial,-48,700,0</font>
<color>255,255,255</color>
<horizontal-alignment>Center</horizontal-alignment>
<vertical-alignment>Center</vertical-alignment>
<hotspot>Center</hotspot>
<wrapping>Word</wrapping>
<line-height>0</line-height>
</properties>
<behavior-instances>
<behavior-instance type="Pin" />
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-3089</x>
<y>1143</y>
<z>0</z>
<width>121</width>
<height>90</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Submit" uid="17">
<properties>
<initial-visibility>Invisible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<behavior-instances>
<behavior-instance type="Flash" />
<behavior-instance type="Sine">
<properties>
<active-on-start>Yes</active-on-start>
<movement>Size</movement>
<wave>Sine</wave>
<period>3</period>
<period-random>0</period-random>
<period-offset>0</period-offset>
<period-offset-random>0</period-offset-random>
<magnitude>15</magnitude>
<magnitude-random>0</magnitude-random>
</properties>
</behavior-instance>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>600</x>
<y>1080</y>
<z>0</z>
<width>300.841003418</width>
<height>199.945999146</height>
<depth>0</depth>
<hotspotX>0.501022518</hotspotX>
<hotspotY>0.501538455</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Wrong" uid="23">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<behavior-instances>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>0.5</fade-in-time>
<wait-time>0.5</wait-time>
<fade-out-time>0.5</fade-out-time>
<destroy>After fade out</destroy>
</properties>
</behavior-instance>
<behavior-instance type="Pin" />
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-3211</x>
<y>245</y>
<z>0</z>
<width>200.781997681</width>
<height>211.348999023</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Correct" uid="39">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<behavior-instances>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>0.5</fade-in-time>
<wait-time>0.5</wait-time>
<fade-out-time>0.5</fade-out-time>
<destroy>After fade out</destroy>
</properties>
</behavior-instance>
<behavior-instance type="Pin" />
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>-2882</x>
<y>230</y>
<z>0</z>
<width>200.781997681</width>
<height>211.348999023</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.507142842</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="ImageFrame" uid="20">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>600</x>
<y>350</y>
<z>0</z>
<width>678.96697998</width>
<height>678.96697998</height>
<depth>0</depth>
<hotspotX>0.500422657</hotspotX>
<hotspotY>0.500454128</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="NewWords" uid="21">
<properties>
<initial-visibility>Visible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<behavior-instances>
<behavior-instance type="Anchor">
<properties>
<left-edge>Window left</left-edge>
<top-edge>Window top</top-edge>
<right-edge>None</right-edge>
<bottom-edge>None</bottom-edge>
<initial-state>Enabled</initial-state>
</properties>
</behavior-instance>
<behavior-instance type="Fade">
<properties>
<active-at-start>Yes</active-at-start>
<fade-in-time>1</fade-in-time>
<wait-time>0</wait-time>
<fade-out-time>0</fade-out-time>
<destroy>No</destroy>
</properties>
</behavior-instance>
</behavior-instances>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>132.307922363</x>
<y>74.307907104</y>
<z>0</z>
<width>263.805999756</width>
<height>148.973007202</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.503268003</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Button2" uid="2">
<properties>
<initial-visibility>Invisible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>1039</x>
<y>940</y>
<z>0</z>
<width>268.868988037</width>
<height>112.028999329</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
<instance type="Button" uid="4">
<properties>
<initial-visibility>Invisible</initial-visibility>
<initial-animation>Default</initial-animation>
<initial-frame>0</initial-frame>
<collisions>Enabled</collisions>
</properties>
<blend-mode>0</blend-mode>
<effect-fallback>0</effect-fallback>
<world>
<x>1043</x>
<y>1080</y>
<z>0</z>
<width>268.868988037</width>
<height>112.028999329</height>
<depth>0</depth>
<hotspotX>0.5</hotspotX>
<hotspotY>0.5</hotspotY>
<angle>0</angle>
<opacity>1</opacity>
</world>
</instance>
</instances>
<effects />
</layer>
</layers>
<nonworld-instances>
<instance type="JSON" uid="6" />
</nonworld-instances>
<effects />
</c2layout>