added some stuff idr what.
This commit is contained in:
47
.idea/workspace.xml
generated
47
.idea/workspace.xml
generated
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="d9dac41b-fc54-4ab0-93ea-73586523c969" name="Default" comment="" />
|
||||
<list default="true" id="d9dac41b-fc54-4ab0-93ea-73586523c969" name="Default" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/game.js" beforeDir="false" afterPath="$PROJECT_DIR$/game.js" afterDir="false" />
|
||||
</list>
|
||||
<ignored path="$PROJECT_DIR$/.tmp/" />
|
||||
<ignored path="$PROJECT_DIR$/temp/" />
|
||||
<ignored path="$PROJECT_DIR$/tmp/" />
|
||||
@@ -32,11 +34,11 @@
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="game.js" pinned="false" current-in-tab="false">
|
||||
<file leaf-file-name="game.js" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/game.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-4603">
|
||||
<caret line="15" column="44" selection-start-line="15" selection-start-column="42" selection-end-line="15" selection-end-column="44" />
|
||||
<state relative-caret-position="110">
|
||||
<caret line="33" column="30" selection-start-line="33" selection-start-column="30" selection-end-line="33" selection-end-column="30" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
@@ -71,7 +73,7 @@
|
||||
<provider selected="true" editor-type-id="images" />
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="background.js" pinned="false" current-in-tab="true">
|
||||
<file leaf-file-name="background.js" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/background.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="168">
|
||||
@@ -119,8 +121,8 @@
|
||||
<find>owner</find>
|
||||
<find>inithorse</find>
|
||||
<find>draw</find>
|
||||
<find>final results</find>
|
||||
<find>draw horses</find>
|
||||
<find>final results</find>
|
||||
</findStrings>
|
||||
<replaceStrings>
|
||||
<replace>cyclesRemaining</replace>
|
||||
@@ -136,9 +138,9 @@
|
||||
<option value="$PROJECT_DIR$/resources/background.js" />
|
||||
<option value="$PROJECT_DIR$/main.css" />
|
||||
<option value="$PROJECT_DIR$/audio.js" />
|
||||
<option value="$PROJECT_DIR$/game.js" />
|
||||
<option value="$PROJECT_DIR$/index.html" />
|
||||
<option value="$PROJECT_DIR$/background.js" />
|
||||
<option value="$PROJECT_DIR$/game.js" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
@@ -152,10 +154,10 @@
|
||||
<packageJsonPaths />
|
||||
</component>
|
||||
<component name="ProjectFrameBounds" extendedState="6">
|
||||
<option name="x" value="-1367" />
|
||||
<option name="x" value="-1281" />
|
||||
<option name="y" value="-17" />
|
||||
<option name="width" value="1368" />
|
||||
<option name="height" value="786" />
|
||||
<option name="width" value="1282" />
|
||||
<option name="height" value="738" />
|
||||
</component>
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="ProjectView">
|
||||
@@ -237,24 +239,25 @@
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1562211281380</updated>
|
||||
<workItem from="1562211282530" duration="37792000" />
|
||||
<workItem from="1563080090211" duration="23907000" />
|
||||
<workItem from="1563080090211" duration="24594000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="61699000" />
|
||||
<option name="totallyTimeSpent" value="62386000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-1367" y="-17" width="1368" height="786" extended-state="6" />
|
||||
<frame x="-1281" y="-17" width="1282" height="738" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2108389" />
|
||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.22521809" />
|
||||
<window_info anchor="bottom" id="TODO" order="6" />
|
||||
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
||||
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Version Control" order="7" />
|
||||
<window_info anchor="bottom" id="Run" order="2" />
|
||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||
<window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.32882884" />
|
||||
<window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.35436893" />
|
||||
<window_info id="Favorites" order="2" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||
@@ -354,13 +357,6 @@
|
||||
<entry file="file://$PROJECT_DIR$/resources/horse_images/final/horse_san_69.png">
|
||||
<provider selected="true" editor-type-id="images" />
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/game.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-4603">
|
||||
<caret line="15" column="44" selection-start-line="15" selection-start-column="42" selection-end-line="15" selection-end-column="44" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/resources/horse_images/final/a_horse.png">
|
||||
<provider selected="true" editor-type-id="images" />
|
||||
</entry>
|
||||
@@ -371,5 +367,12 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/game.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="110">
|
||||
<caret line="33" column="30" selection-start-line="33" selection-start-column="30" selection-end-line="33" selection-end-column="30" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
||||
2
game.js
2
game.js
@@ -31,7 +31,7 @@ const BG_CANVAS = document.getElementById("bgcanvas");
|
||||
const BG_CTX = BG_CANVAS.getContext("2d");
|
||||
const CTX = GAME_CANVAS.getContext("2d");
|
||||
|
||||
const COUNTDOWN_START_SECS = 10;
|
||||
const COUNTDOWN_START_SECS = 30;
|
||||
|
||||
// Size parameters, they will be adjusted to fit the size of the screen
|
||||
let WIDTH = GAME_CANVAS.width;
|
||||
|
||||
Reference in New Issue
Block a user