diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..43bcabf
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..6bd89e5
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+
+
+ 2017_JAVA_TermProject
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/JAVA_FirstGame/.metadata/.lock b/JAVA_FirstGame/.metadata/.lock
new file mode 100644
index 0000000..e69de29
diff --git a/JAVA_FirstGame/.metadata/.log b/JAVA_FirstGame/.metadata/.log
new file mode 100644
index 0000000..fdfa47d
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.log
@@ -0,0 +1,35 @@
+!SESSION 2021-01-19 23:21:26.220 -----------------------------------------------
+eclipse.buildId=4.17.0.I20200902-1800
+java.version=14.0.2
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ko_KR
+Framework arguments: -product org.eclipse.epp.package.java.product
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
+
+!ENTRY org.eclipse.jface 2 0 2021-01-19 23:21:46.366
+!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
+!SUBENTRY 1 org.eclipse.jface 2 0 2021-01-19 23:21:46.366
+!MESSAGE A conflict occurred for CTRL+SHIFT+T:
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
+ Open a type in a Java editor,
+ Category(org.eclipse.ui.category.navigate,Navigate,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7252bdb,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+Binding(CTRL+SHIFT+T,
+ ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace,
+ ,
+ Category(org.eclipse.lsp4e.category,Language Servers,null,true),
+ org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@25ea068e,
+ ,,true),null),
+ org.eclipse.ui.defaultAcceleratorConfiguration,
+ org.eclipse.ui.contexts.window,,,system)
+
+!ENTRY org.eclipse.egit.ui 2 0 2021-01-19 23:22:05.678
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\rlwnd'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
new file mode 100644
index 0000000..25cb955
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
new file mode 100644
index 0000000..ed9b514
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
new file mode 100644
index 0000000..6b2aaa7
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree
new file mode 100644
index 0000000..8a1fc9e
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
new file mode 100644
index 0000000..32f7734
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..dffc6b5
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+version=1
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..646dc38
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,7 @@
+content_assist_proposals_background=255,255,255
+content_assist_proposals_foreground=0,0,0
+eclipse.preferences.version=1
+org.eclipse.jdt.ui.formatterprofiles.version=20
+spelling_locale_initialized=true
+useAnnotationsPrefPage=true
+useQuickDiffPrefPage=true
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jsch.core.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jsch.core.prefs
new file mode 100644
index 0000000..d56c53f
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jsch.core.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.jsch.core.hasChangedDefaultWin32SshHome=true
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
new file mode 100644
index 0000000..67b1d96
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.m2e.discovery.pref.projects=
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
new file mode 100644
index 0000000..49d9d8b
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
@@ -0,0 +1,5 @@
+PROBLEMS_FILTERS_MIGRATE=true
+eclipse.preferences.version=1
+platformState=1605883069631
+quickStart=false
+tipsAndTricks=true
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
new file mode 100644
index 0000000..08076f2
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+showIntro=false
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
new file mode 100644
index 0000000..b85d0db
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
@@ -0,0 +1,9 @@
+//org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false
+PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery;
+eclipse.preferences.version=1
+org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_END=255,255,255
+org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_START=255,255,255
+org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_TEXT_COLOR=16,16,16
+org.eclipse.ui.workbench.ACTIVE_TAB_BG_END=255,255,255
+org.eclipse.ui.workbench.ACTIVE_TAB_BG_START=255,255,255
+org.eclipse.ui.workbench.INACTIVE_TAB_BG_START=242,242,242
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs
new file mode 100644
index 0000000..b48c0c4
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+processedSchemes=,eclipse+mpc,eclipse+command
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
new file mode 100644
index 0000000..9fc94f0
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
@@ -0,0 +1,2118 @@
+
+
+
+ activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration
+
+
+
+
+
+
+
+ topLevel
+ shellMaximized
+
+
+
+
+ persp.actionSet:org.eclipse.ui.cheatsheets.actionSet
+ persp.actionSet:org.eclipse.search.searchActionSet
+ persp.actionSet:org.eclipse.text.quicksearch.actionSet
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation
+ persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo
+ persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet
+ persp.actionSet:org.eclipse.ui.actionSet.keyBindings
+ persp.actionSet:org.eclipse.ui.actionSet.openFiles
+ persp.actionSet:org.eclipse.debug.ui.launchActionSet
+ persp.actionSet:org.eclipse.jdt.ui.JavaActionSet
+ persp.actionSet:org.eclipse.jdt.ui.JavaElementCreationActionSet
+ persp.actionSet:org.eclipse.ui.NavigateActionSet
+ persp.viewSC:org.eclipse.jdt.ui.PackageExplorer
+ persp.viewSC:org.eclipse.jdt.ui.TypeHierarchy
+ persp.viewSC:org.eclipse.jdt.ui.SourceView
+ persp.viewSC:org.eclipse.jdt.ui.JavadocView
+ persp.viewSC:org.eclipse.search.ui.views.SearchView
+ persp.viewSC:org.eclipse.ui.console.ConsoleView
+ persp.viewSC:org.eclipse.ui.views.ContentOutline
+ persp.viewSC:org.eclipse.ui.views.ProblemView
+ persp.viewSC:org.eclipse.ui.views.ResourceNavigator
+ persp.viewSC:org.eclipse.ui.views.TaskList
+ persp.viewSC:org.eclipse.ui.views.ProgressView
+ persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer
+ persp.viewSC:org.eclipse.ui.texteditor.TemplatesView
+ persp.viewSC:org.eclipse.pde.runtime.LogView
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.JavaProjectWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewPackageCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewClassCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewEnumCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewRecordCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard
+ persp.newWizSC:org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard
+ persp.newWizSC:org.eclipse.ui.wizards.new.folder
+ persp.newWizSC:org.eclipse.ui.wizards.new.file
+ persp.newWizSC:org.eclipse.ui.editors.wizards.UntitledTextFileWizard
+ persp.perspSC:org.eclipse.jdt.ui.JavaBrowsingPerspective
+ persp.perspSC:org.eclipse.debug.ui.DebugPerspective
+ persp.showIn:org.eclipse.jdt.ui.PackageExplorer
+ persp.showIn:org.eclipse.team.ui.GenericHistoryView
+ persp.showIn:org.eclipse.ui.navigator.ProjectExplorer
+ persp.actionSet:org.eclipse.debug.ui.breakpointActionSet
+ persp.actionSet:org.eclipse.jdt.debug.ui.JDTDebugActionSet
+ persp.actionSet:org.eclipse.eclemma.ui.CoverageActionSet
+ persp.showIn:org.eclipse.eclemma.ui.CoverageView
+ persp.showIn:org.eclipse.egit.ui.RepositoriesView
+ persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard
+ persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet
+ persp.viewSC:org.eclipse.ant.ui.views.AntView
+
+
+
+ org.eclipse.e4.primaryNavigationStack
+ active
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+
+
+
+ org.eclipse.e4.secondaryNavigationStack
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Ant
+
+
+
+
+ org.eclipse.e4.secondaryDataStack
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:Java
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:General
+
+
+
+
+
+
+
+
+ View
+ categoryTag:Help
+
+
+ View
+ categoryTag:General
+
+
+ View
+ categoryTag:Help
+
+
+
+
+
+
+ View
+ categoryTag:Help
+
+
+
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+
+
+ View
+ categoryTag:Help
+
+
+
+ org.eclipse.e4.primaryDataStack
+ EditorStack
+
+
+
+
+
+
+ View
+ categoryTag:Java
+ active
+ activeOnClose
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+
+ View
+ categoryTag:General
+
+ ViewMenu
+ menuContribution:menu
+
+
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Ant
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+ Draggable
+
+
+ Draggable
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+
+ toolbarSeparator
+
+
+
+ toolbarSeparator
+
+
+
+ Draggable
+
+
+ stretch
+ SHOW_RESTORE_MENU
+
+
+ Draggable
+ HIDEABLE
+ SHOW_RESTORE_MENU
+
+
+
+
+ stretch
+
+
+ Draggable
+
+
+ Draggable
+
+
+
+
+ TrimStack
+ Draggable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ platform:win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ platform:win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Editor
+ removeOnHide
+
+
+
+
+ View
+ categoryTag:Ant
+
+
+
+
+ View
+ categoryTag:Gradle
+
+
+
+
+ View
+ categoryTag:Gradle
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+ View
+ categoryTag:Git
+ NoRestore
+
+
+
+
+ View
+ categoryTag:Git
+
+
+
+
+ View
+ categoryTag:Help
+
+
+
+
+ View
+ categoryTag:Debug
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Java Browsing
+
+
+
+
+ View
+ categoryTag:Java Browsing
+
+
+
+
+ View
+ categoryTag:Java Browsing
+
+
+
+
+ View
+ categoryTag:Java Browsing
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Java
+
+
+
+
+ View
+ categoryTag:Maven
+
+
+
+
+ View
+ categoryTag:Maven
+
+
+
+
+ View
+ categoryTag:Oomph
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:Team
+
+
+
+
+ View
+ categoryTag:Team
+
+
+ View
+ categoryTag:Help
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:Help
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:General
+
+
+
+
+ View
+ categoryTag:XML
+
+
+
+
+ View
+ categoryTag:XML
+
+
+
+ glue
+ move_after:PerspectiveSpacer
+ SHOW_RESTORE_MENU
+
+
+ move_after:Spacer Glue
+ HIDEABLE
+ SHOW_RESTORE_MENU
+
+
+ glue
+ move_after:SearchField
+ SHOW_RESTORE_MENU
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache
new file mode 100644
index 0000000..593f470
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache
new file mode 100644
index 0000000..593f470
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache
new file mode 100644
index 0000000..593f470
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat
new file mode 100644
index 0000000..0edae4b
Binary files /dev/null and b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat differ
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
new file mode 100644
index 0000000..a4ee3cb
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
new file mode 100644
index 0000000..9e390f5
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
new file mode 100644
index 0000000..e89c7c7
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
@@ -0,0 +1,10 @@
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log
new file mode 100644
index 0000000..ecc9cde
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log
@@ -0,0 +1 @@
+2021-01-19 23:22:04,236 [Worker-2: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml
new file mode 100644
index 0000000..e33758c
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.16.0.20200318-1040.xml
@@ -0,0 +1,43 @@
+
+
+
+ %date [%thread] %-5level %logger{35} - %msg%n
+
+
+ OFF
+
+
+
+
+ ${org.eclipse.m2e.log.dir}/0.log
+
+ ${org.eclipse.m2e.log.dir}/%i.log
+ 1
+ 10
+
+
+ 100MB
+
+
+ %date [%thread] %-5level %logger{35} - %msg%n
+
+
+
+
+
+ WARN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup
new file mode 100644
index 0000000..1f73e14
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup
@@ -0,0 +1,6 @@
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml
new file mode 100644
index 0000000..5ca0b77
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml
@@ -0,0 +1,3 @@
+
+
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.intro/introstate b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.intro/introstate
new file mode 100644
index 0000000..02f134f
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.intro/introstate
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
new file mode 100644
index 0000000..a7c76e1
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/JAVA_FirstGame/.metadata/version.ini b/JAVA_FirstGame/.metadata/version.ini
new file mode 100644
index 0000000..1c78d6c
--- /dev/null
+++ b/JAVA_FirstGame/.metadata/version.ini
@@ -0,0 +1,3 @@
+#Tue Jan 19 23:21:41 KST 2021
+org.eclipse.core.runtime=2
+org.eclipse.platform=4.17.0.v20200902-1800
diff --git a/JAVA_FirstGame/bin/.gitignore b/JAVA_FirstGame/bin/.gitignore
new file mode 100644
index 0000000..7211ed0
--- /dev/null
+++ b/JAVA_FirstGame/bin/.gitignore
@@ -0,0 +1,14 @@
+/CatThread.class
+/DogThread.class
+/FishThread.class
+/MyKeyListener$ScoreThread.class
+/MyKeyListener.class
+/NyangiGame$1.class
+/NyangiGame.class
+/Test/
+/TimeOver$1.class
+/TimeOver.class
+/TimerThread.class
+/bombGame/
+/main/
+/nyangIGame/
diff --git a/JAVA_FirstGame/bin/CatThread.class b/JAVA_FirstGame/bin/CatThread.class
new file mode 100644
index 0000000..51e4f8a
Binary files /dev/null and b/JAVA_FirstGame/bin/CatThread.class differ
diff --git a/JAVA_FirstGame/bin/DogThread.class b/JAVA_FirstGame/bin/DogThread.class
new file mode 100644
index 0000000..3b01e7a
Binary files /dev/null and b/JAVA_FirstGame/bin/DogThread.class differ
diff --git a/JAVA_FirstGame/bin/FishThread.class b/JAVA_FirstGame/bin/FishThread.class
new file mode 100644
index 0000000..4f369a0
Binary files /dev/null and b/JAVA_FirstGame/bin/FishThread.class differ
diff --git a/JAVA_FirstGame/bin/MyKeyListener$ScoreThread.class b/JAVA_FirstGame/bin/MyKeyListener$ScoreThread.class
new file mode 100644
index 0000000..01bc5a2
Binary files /dev/null and b/JAVA_FirstGame/bin/MyKeyListener$ScoreThread.class differ
diff --git a/JAVA_FirstGame/bin/MyKeyListener.class b/JAVA_FirstGame/bin/MyKeyListener.class
new file mode 100644
index 0000000..58c3b22
Binary files /dev/null and b/JAVA_FirstGame/bin/MyKeyListener.class differ
diff --git a/JAVA_FirstGame/bin/NyangiGame$1.class b/JAVA_FirstGame/bin/NyangiGame$1.class
new file mode 100644
index 0000000..9ca8a97
Binary files /dev/null and b/JAVA_FirstGame/bin/NyangiGame$1.class differ
diff --git a/JAVA_FirstGame/bin/NyangiGame.class b/JAVA_FirstGame/bin/NyangiGame.class
new file mode 100644
index 0000000..baab507
Binary files /dev/null and b/JAVA_FirstGame/bin/NyangiGame.class differ
diff --git a/JAVA_FirstGame/bin/Test/ClickButton$1.class b/JAVA_FirstGame/bin/Test/ClickButton$1.class
new file mode 100644
index 0000000..971c8a1
Binary files /dev/null and b/JAVA_FirstGame/bin/Test/ClickButton$1.class differ
diff --git a/JAVA_FirstGame/bin/Test/ClickButton.class b/JAVA_FirstGame/bin/Test/ClickButton.class
new file mode 100644
index 0000000..6245cf9
Binary files /dev/null and b/JAVA_FirstGame/bin/Test/ClickButton.class differ
diff --git a/JAVA_FirstGame/bin/Test/InitArrayValue.class b/JAVA_FirstGame/bin/Test/InitArrayValue.class
new file mode 100644
index 0000000..45f09e0
Binary files /dev/null and b/JAVA_FirstGame/bin/Test/InitArrayValue.class differ
diff --git a/JAVA_FirstGame/bin/TimeOver$1.class b/JAVA_FirstGame/bin/TimeOver$1.class
new file mode 100644
index 0000000..80de367
Binary files /dev/null and b/JAVA_FirstGame/bin/TimeOver$1.class differ
diff --git a/JAVA_FirstGame/bin/TimeOver.class b/JAVA_FirstGame/bin/TimeOver.class
new file mode 100644
index 0000000..d48f1d9
Binary files /dev/null and b/JAVA_FirstGame/bin/TimeOver.class differ
diff --git a/JAVA_FirstGame/bin/TimerThread.class b/JAVA_FirstGame/bin/TimerThread.class
new file mode 100644
index 0000000..b7bc10e
Binary files /dev/null and b/JAVA_FirstGame/bin/TimerThread.class differ
diff --git a/JAVA_FirstGame/bin/bombGame/.classpath b/JAVA_FirstGame/bin/bombGame/.classpath
new file mode 100644
index 0000000..ac37fb2
--- /dev/null
+++ b/JAVA_FirstGame/bin/bombGame/.classpath
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/JAVA_FirstGame/bin/bombGame/.project b/JAVA_FirstGame/bin/bombGame/.project
new file mode 100644
index 0000000..792ad63
--- /dev/null
+++ b/JAVA_FirstGame/bin/bombGame/.project
@@ -0,0 +1,17 @@
+
+
+ bombGame
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/JAVA_FirstGame/bin/main/BottomDesign.class b/JAVA_FirstGame/bin/main/BottomDesign.class
index e88d021..5d16250 100644
Binary files a/JAVA_FirstGame/bin/main/BottomDesign.class and b/JAVA_FirstGame/bin/main/BottomDesign.class differ
diff --git a/JAVA_FirstGame/bin/main/ImageThread.class b/JAVA_FirstGame/bin/main/ImageThread.class
index 91f0c62..0307856 100644
Binary files a/JAVA_FirstGame/bin/main/ImageThread.class and b/JAVA_FirstGame/bin/main/ImageThread.class differ
diff --git a/JAVA_FirstGame/bin/main/Main.class b/JAVA_FirstGame/bin/main/Main.class
index bf5314d..10a2ecb 100644
Binary files a/JAVA_FirstGame/bin/main/Main.class and b/JAVA_FirstGame/bin/main/Main.class differ
diff --git a/JAVA_FirstGame/bin/main/MainFrame$1.class b/JAVA_FirstGame/bin/main/MainFrame$1.class
index 0885469..66778eb 100644
Binary files a/JAVA_FirstGame/bin/main/MainFrame$1.class and b/JAVA_FirstGame/bin/main/MainFrame$1.class differ
diff --git a/JAVA_FirstGame/bin/main/MainFrame$2.class b/JAVA_FirstGame/bin/main/MainFrame$2.class
index 7799e74..02edc02 100644
Binary files a/JAVA_FirstGame/bin/main/MainFrame$2.class and b/JAVA_FirstGame/bin/main/MainFrame$2.class differ
diff --git a/JAVA_FirstGame/bin/main/MainFrame$3.class b/JAVA_FirstGame/bin/main/MainFrame$3.class
index 4086578..5bf9ca0 100644
Binary files a/JAVA_FirstGame/bin/main/MainFrame$3.class and b/JAVA_FirstGame/bin/main/MainFrame$3.class differ
diff --git a/JAVA_FirstGame/bin/main/MainFrame$4.class b/JAVA_FirstGame/bin/main/MainFrame$4.class
new file mode 100644
index 0000000..5565769
Binary files /dev/null and b/JAVA_FirstGame/bin/main/MainFrame$4.class differ
diff --git a/JAVA_FirstGame/bin/main/MainFrame.class b/JAVA_FirstGame/bin/main/MainFrame.class
index 7665a4e..743df3e 100644
Binary files a/JAVA_FirstGame/bin/main/MainFrame.class and b/JAVA_FirstGame/bin/main/MainFrame.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/MyKeyListener$ScoreThread.class b/JAVA_FirstGame/bin/nyangIGame/MyKeyListener$ScoreThread.class
index ddfd8bf..0a4fa4c 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/MyKeyListener$ScoreThread.class and b/JAVA_FirstGame/bin/nyangIGame/MyKeyListener$ScoreThread.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/MyKeyListener.class b/JAVA_FirstGame/bin/nyangIGame/MyKeyListener.class
index 300fd41..d855940 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/MyKeyListener.class and b/JAVA_FirstGame/bin/nyangIGame/MyKeyListener.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/NyangiGame$1.class b/JAVA_FirstGame/bin/nyangIGame/NyangiGame$1.class
index 8e23518..adcbbc3 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/NyangiGame$1.class and b/JAVA_FirstGame/bin/nyangIGame/NyangiGame$1.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/NyangiGame.class b/JAVA_FirstGame/bin/nyangIGame/NyangiGame.class
index a862ae9..253526e 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/NyangiGame.class and b/JAVA_FirstGame/bin/nyangIGame/NyangiGame.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/TimeOver$1.class b/JAVA_FirstGame/bin/nyangIGame/TimeOver$1.class
index c42e52f..f9f5c8a 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/TimeOver$1.class and b/JAVA_FirstGame/bin/nyangIGame/TimeOver$1.class differ
diff --git a/JAVA_FirstGame/bin/nyangIGame/TimeOver.class b/JAVA_FirstGame/bin/nyangIGame/TimeOver.class
index aa1ef0e..79001a2 100644
Binary files a/JAVA_FirstGame/bin/nyangIGame/TimeOver.class and b/JAVA_FirstGame/bin/nyangIGame/TimeOver.class differ
diff --git a/JAVA_FirstGame/images/back.png b/JAVA_FirstGame/images/back.png
new file mode 100644
index 0000000..5df0040
Binary files /dev/null and b/JAVA_FirstGame/images/back.png differ
diff --git a/JAVA_FirstGame/images/doodunyang.png b/JAVA_FirstGame/images/doodunyang.png
new file mode 100644
index 0000000..ff87835
Binary files /dev/null and b/JAVA_FirstGame/images/doodunyang.png differ
diff --git a/JAVA_FirstGame/images/rnak.png b/JAVA_FirstGame/images/rnak.png
new file mode 100644
index 0000000..937db17
Binary files /dev/null and b/JAVA_FirstGame/images/rnak.png differ
diff --git a/JAVA_FirstGame/images/screen.png b/JAVA_FirstGame/images/screen.png
new file mode 100644
index 0000000..82af62c
Binary files /dev/null and b/JAVA_FirstGame/images/screen.png differ
diff --git a/JAVA_FirstGame/resource/score.txt b/JAVA_FirstGame/resource/score.txt
new file mode 100644
index 0000000..70f2e38
--- /dev/null
+++ b/JAVA_FirstGame/resource/score.txt
@@ -0,0 +1,5 @@
+319
+24
+8
+13
+101
diff --git a/JAVA_FirstGame/sound/cat.wav b/JAVA_FirstGame/sound/cat.wav
new file mode 100644
index 0000000..188865e
Binary files /dev/null and b/JAVA_FirstGame/sound/cat.wav differ
diff --git a/JAVA_FirstGame/sound/dog.wav b/JAVA_FirstGame/sound/dog.wav
new file mode 100644
index 0000000..6f37cc3
Binary files /dev/null and b/JAVA_FirstGame/sound/dog.wav differ
diff --git a/JAVA_FirstGame/sound/fish.wav b/JAVA_FirstGame/sound/fish.wav
new file mode 100644
index 0000000..ab3a373
Binary files /dev/null and b/JAVA_FirstGame/sound/fish.wav differ
diff --git a/JAVA_FirstGame/sound/mainBGM.wav b/JAVA_FirstGame/sound/mainBGM.wav
new file mode 100644
index 0000000..2bade3a
Binary files /dev/null and b/JAVA_FirstGame/sound/mainBGM.wav differ
diff --git a/JAVA_FirstGame/src/main/BottomDesign.java b/JAVA_FirstGame/src/main/BottomDesign.java
index af3b0a4..8d90faf 100644
--- a/JAVA_FirstGame/src/main/BottomDesign.java
+++ b/JAVA_FirstGame/src/main/BottomDesign.java
@@ -4,27 +4,21 @@
import javax.swing.*;
-import bombGame.ButtonTimer;
public class BottomDesign {
public BottomDesign(JFrame container) {
- /*
- * ������ �̹��� label ����
- */
+ /*Pipe image label setting*/
ImageIcon imagePipe = new ImageIcon("./images/bottom/pipe.png");
JLabel pipe = new JLabel(imagePipe);
pipe.setBounds(330, 380, 100, 100);
- /*
- * Ƣ��� �̹��� label ����
- */
+ /*Jump out image label setting*/
ImageThread thread = new ImageThread(container);
thread.start();
-
- // container�� pipe�� ����
+ // container pipe add
container.add(pipe);
}
}
diff --git a/JAVA_FirstGame/src/main/ImageThread.java b/JAVA_FirstGame/src/main/ImageThread.java
index 261bb41..200bbd2 100644
--- a/JAVA_FirstGame/src/main/ImageThread.java
+++ b/JAVA_FirstGame/src/main/ImageThread.java
@@ -25,9 +25,7 @@ public void run() {
while(true) {
- /*
- * 6�� �ö�, 3�� ���, 6�� ��������
- */
+ /*6sec up, 3sec wait, 6sec down*/
if (wait < 6) {
y -= 10;
randomImage.setBounds(x, y, 100, 100);
@@ -46,37 +44,35 @@ public void run() {
sleep(100);
wait++;
- // 1.5�� ���� �ʱ�ȭ
+ //1.5sec Initialize
if(wait == 15) {
- // �̹��� ����
+ //image delete
randomImage.setIcon(null);
- // wait���� �ʱ�ȭ
+ //wait variable Initialize
wait = 1;
- // �̹��� ����
+ //image change
- // �̹����� �������� �����ϱ� ���� ���� �� �ޱ�
+ //Receive random values for randomly selecting images
int rand = (int)(Math.random()*4);
if (rand >= 4) rand=3;
System.out.println("main.ImageThread.run :: rand : "+rand);
- // �������� ���� ���� �迭�� �־� �̹��� ����
+ //Choose an image by placing randomly received values in an array
String addrImg = "images/bottom/"+imageArr[rand];
ImageIcon image = new ImageIcon(addrImg);
if (image.getClass() != null) {
System.out.println("main.ImageThread.run :: addrImg : "+ addrImg);
}
-
randomImage.setIcon(image);
}
-
- } catch (InterruptedException e) {
+ }
+ catch (InterruptedException e) {
return;
}
}
}
-
}
diff --git a/JAVA_FirstGame/src/main/Main.java b/JAVA_FirstGame/src/main/Main.java
index f6518cf..aeb6df7 100644
--- a/JAVA_FirstGame/src/main/Main.java
+++ b/JAVA_FirstGame/src/main/Main.java
@@ -1,10 +1,20 @@
package main;
+import java.awt.Color;
+import java.io.IOException;
+
+import javax.sound.sampled.LineUnavailableException;
+import javax.sound.sampled.UnsupportedAudioFileException;
+import javax.swing.JFrame;
+
public class Main {
- public static void main(String[] args) {
+ public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException {
+ MainFrame frame = new MainFrame();
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ frame.setSize(515,700);
+ frame.setVisible(true);
- new MainFrame();
}
}
diff --git a/JAVA_FirstGame/src/main/MainFrame.java b/JAVA_FirstGame/src/main/MainFrame.java
index 88b2a4e..12dd0ad 100644
--- a/JAVA_FirstGame/src/main/MainFrame.java
+++ b/JAVA_FirstGame/src/main/MainFrame.java
@@ -3,120 +3,112 @@
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
+import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+
+import java.io.*;//sound file i/o
+import javax.sound.sampled.*; // clip
+
+
+import nyangIGame.NyangiGame;
public class MainFrame extends JFrame {
-
- public MainFrame() {
+ JScrollPane scrollPane;
+ ImageIcon icon;
+ public MainFrame() throws UnsupportedAudioFileException, IOException, LineUnavailableException {
+ /*sound I/O*/
+ File soundfile = new File("sound/mainBGM.wav"); //sound file addr
+ AudioInputStream main_sound = AudioSystem.getAudioInputStream(soundfile); //sound file audio input stream add
+ Clip main_sound_clip = AudioSystem.getClip(); //get clip
+ main_sound_clip.open(main_sound); // main sound clip add
- setTitle("�١�..���ԢѢ�...�ڡ�");
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ main_sound_clip.start(); // game start sound play
- Container container = getContentPane();
- container.setLayout(null);
+
+ setTitle("������");
+ icon = new ImageIcon("images/doodunyang.png");
+ JPanel background = new JPanel() {
+ public void paintComponent(Graphics g) {
+ g.drawImage(icon.getImage(), 0,0,null);
+ setOpaque(false);
+ super.paintComponent(g);
+ }
+ };
+ background.setLayout(null);
+
+ scrollPane = new JScrollPane(background);
+ setContentPane(scrollPane);
- container.setBackground(Color.BLACK);
- // ����� �� ������ StarRain Ŭ���� ȣ��
- new StarRain(container);
- /*
- * ���� ��ư
- */
- JButton rand = new JButton("������ư");
- // ��ư ����
- rand.addMouseListener(new MouseAdapter() {
+ /*The cat catch button*/
+ ImageIcon dog = new ImageIcon("images/dog.png");
+ JButton nyang = new JButton("���ӽ���",dog);
+ //button create
+ nyang.addMouseListener(new MouseAdapter() {
@Override
public void mouseReleased(MouseEvent e) {
- // ��ư�� Ŭ���ߴٰ� ������ �Ʒ� �ڵ尡 ����
-
- /*
- * �������� ���� �� ���� ����
- */
-
- if( (int)(Math.random()*2) == 0 ) {
- // ���� ���� 0�̸� bombGame package�� MainŬ������ main�� ����
- bombGame.Main.main(null);
- } else {
- // �� ��, nyangIGame package�� NyangiGameŬ������ main�� ����
- nyangIGame.NyangiGame.main(null);
- }
-
-
+ // nyangIGame package The cat Game class main start
+ main_sound_clip.close();
+ nyangIGame.NyangiGame.main(null);
}
-
+
});
- // ��ư ��ġ �� ũ�� ����
- rand.setBounds(50, 100, 330, 80);
- // ��ư ���� ����
- rand.setBackground(Color.BLUE);
- // ��ư ���� ���� ����
- rand.setForeground(Color.WHITE);
+ //button position and size settingggggggggggggggggggggggggggggg
+ nyang.setFont(new Font("����", Font.BOLD, 20));
+ nyang.setLocation(120,370);
+ nyang.setSize(270,60);
+ //button color setting
+ nyang.setBackground(Color.CYAN);
- /*
- * ����ã�� ��ư
- */
- JButton bomb = new JButton("�����");
- // ��ư ����
- bomb.addMouseListener(new MouseAdapter() {
+ /*game rules*/
+ ImageIcon cat = new ImageIcon("images/cat.png");
+ JButton rules = new JButton("���� ���",cat);
+ rules.addMouseListener(new MouseAdapter() {
@Override
public void mouseReleased(MouseEvent e) {
- // ��ư�� Ŭ���ߴٰ� ������ �Ʒ� �ڵ尡 ����
-
- // bombGame package�� MainŬ������ main�� ����
- bombGame.Main.main(null);
+ nyangIGame.GameRules.main(null);
}
-
});
- // ��ư ��ġ �� ũ�� ����
- bomb.setBounds(rand.getX(), 200, 150, 80);
- // ��ư ���� ����
- bomb.setBackground(Color.RED);
- // ��ư ���� ���� ����
- bomb.setForeground(Color.WHITE);
+ //button
+ rules.setFont(new Font("����", Font.BOLD, 20));
+ rules.setLocation(120,450);
+ rules.setSize(270,60);
+ // ��ư ���� ����
+ rules.setBackground(Color.CYAN);
- /*
- * �ɴ��� ��� ��ư
- */
- JButton nyang = new JButton("�ɴ���ã��");
- // ��ư ����
- nyang.addMouseListener(new MouseAdapter() {
+ /*game ranking*/
+ ImageIcon fish = new ImageIcon("images/fish.png");
+ JButton rank = new JButton("��ŷ",fish);
+ rank.addMouseListener(new MouseAdapter() {
@Override
public void mouseReleased(MouseEvent e) {
- // nyangIGame package�� NyangiGameŬ������ main�� ����
- nyangIGame.NyangiGame.main(null);
+ nyangIGame.rank.main(null);
}
-
});
- // ��ư ��ġ �� ũ�� ����
- nyang.setBounds(bomb.getX()+180, bomb.getY(), bomb.getWidth(), bomb.getHeight());
- // ��ư ���� ����
- nyang.setBackground(Color.ORANGE);
-
-
- /*
- * �ϴ� ������
- */
- new BottomDesign(this);
-
- /*
- * �����̳ʿ� ��ư ���̱�
- */
- container.add(rand);
- container.add(bomb);
- container.add(nyang);
+ //button
+ rank.setFont(new Font("����", Font.BOLD, 20));
+ rank.setLocation(120,530);
+ rank.setSize(270,60);
+ // ��ư ���� ����
+ rank.setBackground(Color.CYAN);
- setSize(450,500);
- setVisible(true);
+ background.add(nyang);
+ background.add(rules);
+ background.add(rank);
}
diff --git a/JAVA_FirstGame/src/nyangIGame/.classpath b/JAVA_FirstGame/src/nyangIGame/.classpath
new file mode 100644
index 0000000..ac37fb2
--- /dev/null
+++ b/JAVA_FirstGame/src/nyangIGame/.classpath
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/JAVA_FirstGame/src/nyangIGame/.project b/JAVA_FirstGame/src/nyangIGame/.project
new file mode 100644
index 0000000..c6c1cc3
--- /dev/null
+++ b/JAVA_FirstGame/src/nyangIGame/.project
@@ -0,0 +1,17 @@
+
+
+ nyangIGame
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/JAVA_FirstGame/src/nyangIGame/GameRules.java b/JAVA_FirstGame/src/nyangIGame/GameRules.java
new file mode 100644
index 0000000..56995ed
--- /dev/null
+++ b/JAVA_FirstGame/src/nyangIGame/GameRules.java
@@ -0,0 +1,125 @@
+package nyangIGame;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+
+
+public class GameRules extends JFrame {
+ JScrollPane scrollPane;
+ ImageIcon icon;
+
+ public GameRules() {
+ setTitle("���ӹ��");
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ icon = new ImageIcon("images/back.png");
+ JPanel background = new JPanel() {
+ public void paintComponent(Graphics g) {
+ g.drawImage(icon.getImage(), 0,0,null);
+ setOpaque(false);
+ super.paintComponent(g);
+ }
+ };
+ background.setLayout(null);
+ scrollPane = new JScrollPane(background);
+ setContentPane(scrollPane);
+
+
+
+
+ //game information layout
+ JLabel text1 = new JLabel("���� ��ǥ");
+ text1.setLocation(150,-30);
+ text1.setSize(250,100);
+ text1.setFont(new Font("����", Font.BOLD, 30));
+ background.add(text1);
+
+ JLabel text2 = new JLabel("�ð� ���� �δ����� ��� ������ ���");
+ text2.setLocation(90,30);
+ text2.setSize(300,100);
+ text2.setFont(new Font("����", Font.BOLD, 17));
+ background.add(text2);
+ JLabel text3 = new JLabel("ģ����� �����Ͽ� �¸��غ���!!");
+ text3.setLocation(105,60);
+ text3.setSize(250,100);
+ text3.setFont(new Font("����", Font.BOLD, 17));
+ background.add(text3);
+
+
+ //game manipulate explain
+ JLabel mani = new JLabel("���� ����");
+ mani.setLocation(150,120);
+ mani.setSize(250,100);
+ mani.setFont(new Font("����", Font.BOLD, 30));
+ background.add(mani);
+
+
+ JLabel mani1 = new JLabel("Ű���� ����Ű�� �̿��� ������ �� �ֽ��ϴ�.");
+ mani1.setLocation(20,150);
+ mani1.setSize(430,200);
+ mani1.setFont(new Font("����", Font.BOLD, 20));
+ background.add(mani1);
+
+ JLabel mani2 = new JLabel("�����̽��ٸ� ���� ���� �� �ֽ��ϴ�.");
+ mani2.setLocation(50,200);
+ mani2.setSize(370,200);
+ mani2.setFont(new Font("����", Font.BOLD, 20));
+ background.add(mani2);
+
+
+
+
+ //cat image layout
+ ImageIcon cat1 = new ImageIcon("images/cat.png");
+ JLabel cat3 = new JLabel(cat1);
+ cat3.setLocation(70,400);
+ cat3.setSize(60,60);
+ background.add(cat3);
+
+ //cat score layout
+ JLabel textcat = new JLabel("�����̸� ������ 1�� ȹ��");
+ textcat.setLocation(150,380);
+ textcat.setSize(250,100);
+ textcat.setFont(new Font("����", Font.BOLD, 17));
+ background.add(textcat);
+
+
+ //dog image layout
+ ImageIcon dog1 = new ImageIcon("images/dog.png");
+ JLabel dog3 = new JLabel(dog1);
+ dog3.setLocation(70,470);
+ dog3.setSize(60,60);
+ background.add(dog3);
+
+ //DOG score layout
+ JLabel textdog = new JLabel("�������� ������ -3�� �ս�");
+ textdog.setLocation(150,450);
+ textdog.setSize(250,100);
+ textdog.setFont(new Font("����", Font.BOLD, 17));
+ background.add(textdog);
+
+ //fish image layout
+ ImageIcon fish1 = new ImageIcon("images/fish.png");
+ JLabel fish3 = new JLabel(fish1);
+ fish3.setLocation(70,540);
+ fish3.setSize(60,60);
+ background.add(fish3);
+
+ //fish text layout
+ JLabel textfish = new JLabel("�����⸦ ������ +5�� ȹ�� ");
+ textfish.setLocation(150,520);
+ textfish.setSize
+ (250,100);
+ textfish.setFont(new Font("����", Font.BOLD, 17));
+ background.add(textfish);
+
+
+ }
+ public static void main(String[] args) {
+ GameRules frame = new GameRules();
+
+ frame.setSize(460,700);
+ frame.setVisible(true);
+ }
+
+}
diff --git a/JAVA_FirstGame/src/nyangIGame/GameThread.java b/JAVA_FirstGame/src/nyangIGame/GameThread.java
index 6c2ad2a..73fe46e 100644
--- a/JAVA_FirstGame/src/nyangIGame/GameThread.java
+++ b/JAVA_FirstGame/src/nyangIGame/GameThread.java
@@ -1,12 +1,12 @@
package nyangIGame;
-/* ���ӿ� �ʿ��� ������ */
+/* game Thread */
import java.awt.*;
import javax.swing.*;
-/* Ÿ�̸� ������ */
+/* timer Thread */
class TimerThread extends Thread {
- private JLabel timerlabel; // Ÿ�̸� ���� ��µǴ� ���̺�
+ private JLabel timerlabel; //timer value print lable
private CatThread catTh;
public static int n=30;
@@ -15,29 +15,29 @@ public TimerThread(JLabel timerlabel, CatThread catTh) {
this.catTh = catTh;
}
- // ������ �ڵ�. run()�� �����ϸ� ������ ����
+ // Thread code. run() end Thread end
@Override
public void run() {
- catTh.start(); // ������ ������ ����
+ catTh.start(); // cat Thread starting
while(true) {
- timerlabel.setText(" TIME : " + Integer.toString(n)); // ���̺��� ī��Ʈ �� ���
+ timerlabel.setText(" TIME : " + Integer.toString(n)); //count value print label
n--;
try {
Thread.sleep(1000);
- if(n == -1) { // 0���� �� ������ ����
+ if(n == -1) { // 0sec Thread end
new TimeOver();
return;
}
}
- catch(InterruptedException e) { return; } // ���� �� �� ������ ����
+ catch(InterruptedException e) { return; } //exception occurrence thread end
}
}
}
-/* ������ ������ �ϴ� ������ */
+/* cat image thread */
class CatThread extends Thread {
private JLabel cat;
private Container c;
@@ -45,9 +45,9 @@ class CatThread extends Thread {
private DogThread dogTh;
private FishThread fishTh;
- public int ca [] = {55, 215, 375}; // ������ x��ǥ ����
- public int cb [] = {80, 180, 280}; // ������ y��ǥ ����
- int x=0, y=0; // ������ ��ǥ �� �������� ���õ� �� �־��� ����
+ public int ca [] = {55, 215, 375}; // cat x position value
+ public int cb [] = {80, 180, 280}; // cat y position value
+ int x=0, y=0; //cat position random variable
public CatThread(JLabel cat, Container c, JLabel plusone) {
this.c = c;
@@ -59,15 +59,15 @@ public void setTh(DogThread dogTh, FishThread fishTh) {
this.fishTh = fishTh;
}
- // ������ �ڵ�. run()�� �����ϸ� ������ ����
+ //Thread code. run() end Thread end
@Override
public void run() {
- // ������ ������ ����
+ // cat icon create
ImageIcon cimg = new ImageIcon("images/cat.png");
cat = new JLabel(cimg);
while(true) {
- cat.setSize(cimg.getIconWidth(),cimg.getIconWidth()); // ���̺� ũ�� = �̹��� ũ��
+ cat.setSize(cimg.getIconWidth(),cimg.getIconWidth()); //label size == icon size
int i = (int)(Math.random()*3); // 0 ~ 2
int j = (int)(Math.random()*3); // 0 ~ 2
@@ -76,13 +76,13 @@ public void run() {
cat.setLocation(x,y);
- // ������ ��ǥ�� ������ & ������ ��ǥ�� ��ġ�� �ʰ� �ϱ� ���� ���ǹ�
+ // cat position cat & fish position conditional statements to avoid overlap
if ((x == dogTh.x && y == dogTh.y) || (fishTh.x == x && fishTh.y == y)) {
c.remove(cat);
} else { c.add(cat); }
try {
- Thread.sleep(800); // 0.8�� �ֱ�� ������ �����ϰ� ��Ÿ��
+ Thread.sleep(800); // 0.8sec random cat appears in cycles
if ((x == dogTh.x && y == dogTh.y) || (fishTh.x == x && fishTh.y == y)) {
c.remove(cat);
} else { c.repaint(); }
@@ -90,10 +90,10 @@ public void run() {
if(TimerThread.n == -1) {
c.remove(cat);
c.remove(plusone);
- return; // ������ ����
+ return; //thread end
}
}
- catch(InterruptedException e) { return; } // ���� �� �� ������ ����
+ catch(InterruptedException e) { return; } //end the thread when an exception occurs
}
}
}
diff --git a/JAVA_FirstGame/src/nyangIGame/MyKeyListener.java b/JAVA_FirstGame/src/nyangIGame/MyKeyListener.java
index 1464523..3818c45 100644
--- a/JAVA_FirstGame/src/nyangIGame/MyKeyListener.java
+++ b/JAVA_FirstGame/src/nyangIGame/MyKeyListener.java
@@ -1,11 +1,16 @@
package nyangIGame;
-/* Key ������ */
+/* Key Listener */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
-public class MyKeyListener extends KeyAdapter {
+import java.io.*;//sound file i/o
+import javax.sound.sampled.*; // clip
+
+public class MyKeyListener implements KeyListener{
+ Clip clip;
+
private Container c;
private JLabel focus;
private CatThread catTh;
@@ -16,11 +21,11 @@ public class MyKeyListener extends KeyAdapter {
private JLabel minus3;
private JLabel plus5;
- public static int score = 0; // ���� ���
- int a = 0; // ���� ���� �� ���� �̹��� ǥ���� �� ����
- public MyKeyListener(Container c, JLabel focus, JLabel scorelabel, JLabel plusone, JLabel minus3, JLabel plus5)
- {
+ public static int score = 0; // score calculate
+ int a = 0; // ���� ���� �� ���� �̹��� ǥ���� �� ����
+
+ public MyKeyListener(Container c, JLabel focus, JLabel scorelabel, JLabel plusone, JLabel minus3, JLabel plus5){
this.c = c;
this.focus = focus;
this.scorelabel = scorelabel;
@@ -29,6 +34,72 @@ public MyKeyListener(Container c, JLabel focus, JLabel scorelabel, JLabel pluson
this.plus5 = plus5;
}
+ public void cat_play_sound(String cat_pathName, boolean set) {
+ if(set == true) {
+ try {
+ clip = AudioSystem.getClip();
+ File audio_file = new File(cat_pathName);
+
+ AudioInputStream audioStream = AudioSystem.getAudioInputStream(audio_file);
+ clip.open(audioStream);
+ clip.start();
+ }catch(LineUnavailableException e) {
+ e.printStackTrace();
+ }catch(UnsupportedAudioFileException e) {
+ e.printStackTrace();
+ }catch(IOException e) {
+ e.printStackTrace();
+ }
+ }
+ else {
+ clip.close();
+ }
+ }
+
+ public void dog_play_sound(String dog_pathName, boolean set) {
+ if(set == true) {
+ try {
+ clip = AudioSystem.getClip();
+ File audio_file = new File(dog_pathName);
+
+ AudioInputStream audioStream = AudioSystem.getAudioInputStream(audio_file);
+ clip.open(audioStream);
+ clip.start();
+ }catch(LineUnavailableException e) {
+ e.printStackTrace();
+ }catch(UnsupportedAudioFileException e) {
+ e.printStackTrace();
+ }catch(IOException e) {
+ e.printStackTrace();
+ }
+ }
+ else {
+ clip.close();
+ }
+ }
+
+ public void fish_play_sound(String fish_pathName, boolean set) {
+ if(set == true){
+ try {
+ clip = AudioSystem.getClip();
+ File audio_file = new File(fish_pathName);
+
+ AudioInputStream audioStream = AudioSystem.getAudioInputStream(audio_file);
+ clip.open(audioStream);
+ clip.start();
+ }catch(LineUnavailableException e) {
+ e.printStackTrace();
+ }catch(UnsupportedAudioFileException e) {
+ e.printStackTrace();
+ }catch(IOException e) {
+ e.printStackTrace();
+ }
+ }
+ else {
+ clip.close();
+ }
+ }
+
public void setThread(CatThread catTh, DogThread dogTh, FishThread fishTh) {
this.catTh = catTh;
this.dogTh = dogTh;
@@ -36,16 +107,16 @@ public void setThread(CatThread catTh, DogThread dogTh, FishThread fishTh) {
}
@Override
- public void keyPressed(KeyEvent e) {
- int keyCode = e.getKeyCode(); // �Էµ� Ű�� Ű�ڵ� �˾Ƴ��� ����
+ public void keyPressed(KeyEvent e) {
+ int keyCode = e.getKeyCode(); // input key code variable
- ScoreThread scoreTh = new ScoreThread(); // ���� �̹��� ��Ÿ���� �ϴ� ������ ����
+ ScoreThread scoreTh = new ScoreThread(); // score image print thread create
scoreTh.start();
- // Ű �ڵ� ���� ���� ��,��,��,�� Ű �Ǻ� & Ŀ�� ��ġ �̵�
+ // key code (up, down, left, right) & cursor position
switch(keyCode) {
case KeyEvent.VK_UP:
- if(focus.getY() <= 70) { // ��Ŀ���� 1���� ���� ���� ���� �ʵ��� �ϴ� ���ǹ�
+ if(focus.getY() <= 70) { // focus 1row not up condition
focus.setLocation(focus.getX(), 70);
break;
}
@@ -53,7 +124,7 @@ public void keyPressed(KeyEvent e) {
focus.repaint();
break;
case KeyEvent.VK_DOWN:
- if(focus.getY() >= 270) { // ��Ŀ���� 3���� ���� ������ ���� �ʵ��� �ϴ� ���ǹ�
+ if(focus.getY() >= 270) { // focus 3row not down condition
focus.setLocation(focus.getX(), 270);
break;
}
@@ -61,7 +132,7 @@ public void keyPressed(KeyEvent e) {
focus.repaint();
break;
case KeyEvent.VK_LEFT:
- if(focus.getX() <= 50) { // ��Ŀ���� 1���� ���� �������� ���� �ʵ��� �ϴ� ���ǹ�
+ if(focus.getX() <= 50) { // focus 3column not left condition
focus.setLocation(50, focus.getY());
break;
}
@@ -69,7 +140,7 @@ public void keyPressed(KeyEvent e) {
focus.repaint();
break;
case KeyEvent.VK_RIGHT:
- if(focus.getX() >= 370) { // ��Ŀ���� 3���� ���� ���������� ���� �ʵ��� �ϴ� ���ǹ�
+ if(focus.getX() >= 370) { // focus 3column not right condition
focus.setLocation(370, focus.getY());
break;
}
@@ -77,10 +148,11 @@ public void keyPressed(KeyEvent e) {
focus.repaint();
break;
- // ENTER �� ������ ���
+ // space key catch condition
case KeyEvent.VK_SPACE:
- // ������ ����� �� ���ǹ�
- if(catchcat() == true) {
+ // cat catch condition
+ if(catchcat() == true) {
+ cat_play_sound("sound/cat.wav",true);
score++;
getScore();
a++;
@@ -88,8 +160,9 @@ public void keyPressed(KeyEvent e) {
} else
c.remove(plusone);
- // ������ ����� ��
+ // dog catch condition
if(catchdog() == true) {
+ dog_play_sound("sound/dog.wav",true);
score -= 3;
getScore();
a += 2;
@@ -97,8 +170,9 @@ public void keyPressed(KeyEvent e) {
} else
c.remove(minus3);
- // ������ ����� ��
+ // fish catch condition
if(catchfish() == true) {
+ fish_play_sound("sound/fish.wav",true);
score += 5;
getScore();
a += 3;
@@ -108,7 +182,7 @@ public void keyPressed(KeyEvent e) {
}
}
- /* ������ ��ǥ�� ��Ŀ�� ��ǥ ���ϴ� �ҵ� */
+ /* cat position focus & catch position focus condition */
public boolean catchcat() {
if(catTh.x == focus.getX()+5 && catTh.y == focus.getY()+10) {
return true;
@@ -117,7 +191,7 @@ public boolean catchcat() {
return false;
}
- /* ������ ��ǥ�� ��Ŀ�� ��ǥ ���ϴ� �ҵ� */
+ /* dog position focus & catch position focus condition */
public boolean catchdog() {
if(dogTh.x == focus.getX()+5 && dogTh.y == focus.getY()+10) {
return true;
@@ -126,7 +200,7 @@ public boolean catchdog() {
return false;
}
- /* ������ ��ǥ�� ��Ŀ�� ��ǥ ���ϴ� �ҵ� */
+ /* fish position focus & catch position focus condition */
public boolean catchfish() {
if(fishTh.x == focus.getX()+5 && fishTh.y == focus.getY()+10) {
return true;
@@ -135,22 +209,22 @@ public boolean catchfish() {
return false;
}
- int b = 0; // dogTh�� fishTh �ߺ� ���� ����
+ int b = 0; // dogTh and fishTh section start variable
- /* ���� ����ϴ� �ҵ� */
- void getScore() {
- scorelabel.setText(" SCORE : " + Integer.toString(score)); // ���̺��� ���� �� ���
- if(score == 10 && b == 0) { // 10�� �Ǹ� ������ ����
+ /* score calculate method */
+ void getScore() {
+ scorelabel.setText(" SCORE : " + Integer.toString(score)); // label score value print
+ if(score == 10 && b == 0) { // 10score dog appearance
dogTh.start();
b++;
}
- else if(score == 15 && b == 1) { // 15�� �Ǹ� ������ ����
+ else if(score == 15 && b == 1) { // 15score fish appearance
fishTh.start();
b++;
}
}
- /* ���� �̹��� �߰��ߴٰ� ������� ������ */
+ /* score image add and */
class ScoreThread extends Thread {
int d = 0;
public void run() {
@@ -166,7 +240,7 @@ public void run() {
c.add(minus3);
a = 0;
d += 2;
- }
+ }
else if(a == 3) { // ������ ����� �� +5
plus5.setLocation(fishTh.x+10, fishTh.y);
c.add(plus5);
@@ -199,4 +273,16 @@ public void run() {
}
}
}
+
+ @Override
+ public void keyTyped(KeyEvent e) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void keyReleased(KeyEvent e) {
+ // TODO Auto-generated method stub
+
+ }
}
\ No newline at end of file
diff --git a/JAVA_FirstGame/src/nyangIGame/NyangiGame.java b/JAVA_FirstGame/src/nyangIGame/NyangiGame.java
index 7544817..588a67a 100644
--- a/JAVA_FirstGame/src/nyangIGame/NyangiGame.java
+++ b/JAVA_FirstGame/src/nyangIGame/NyangiGame.java
@@ -1,13 +1,13 @@
package nyangIGame;
-/* ��� ��� ���� */
+/* The cat catch game */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class NyangiGame extends JFrame {
- int ha [] = {50, 210, 370}; // ���� x��ǥ ����
- int hb [] = {110, 210, 310}; // ���� y��ǥ ����
+ int ha [] = {50, 210, 370}; // hole x position value
+ int hb [] = {110, 210, 310}; // hole y position value
public static JButton startbtn;
public NyangiGame() {
@@ -20,7 +20,7 @@ public NyangiGame() {
for(int i=0; i<3; i++) {
for(int j=0; j<3; j++) {
- // ���� ������ ����
+ // hole icon create
ImageIcon himg = new ImageIcon("images/hole.png");
JLabel hole = new JLabel(himg);
@@ -30,7 +30,7 @@ public NyangiGame() {
}
}
- // Ÿ�̸� ���̺� ����
+ // Timer label create
JLabel timerlabel = new JLabel();
timerlabel.setText(" TIME : 30");
timerlabel.setFont(new Font("Gothic", Font.ITALIC, 20));
@@ -38,49 +38,50 @@ public NyangiGame() {
timerlabel.setLocation(50,20);
- JLabel cat = new JLabel(); // ������ ���̺� ����
+ JLabel cat = new JLabel(); // cat label create
- // ���� ���̺� ����
+ // score label create
JLabel scorelabel = new JLabel();
- scorelabel.setText(" SCORE : 0" ); // ���̺��� ���� �� ���
+ scorelabel.setText(" SCORE : 0" ); //label score value print
scorelabel.setFont(new Font("Gothic", Font.ITALIC, 20));
scorelabel.setSize(150,50);
scorelabel.setLocation(320,20);
c.add(scorelabel);
- // +1 �̹���
+ // +1 image
ImageIcon poimg = new ImageIcon("images/plusone.png");
JLabel plusone = new JLabel(poimg);
plusone.setSize(poimg.getIconWidth(),poimg.getIconWidth());
- // -3 �̹���
+
+ // -3 image
ImageIcon m3img = new ImageIcon("images/minus3.png");
JLabel minus3 = new JLabel(m3img);
minus3.setSize(m3img.getIconWidth(),m3img.getIconWidth());
- // +5 �̹���
+
+ // +5 image
ImageIcon p5img = new ImageIcon("images/plus5.png");
JLabel plus5 = new JLabel(p5img);
plus5.setSize(p5img.getIconWidth(),p5img.getIconWidth());
-
- // ������ ����
- CatThread catTh = new CatThread(cat, c, plusone); // ������
- DogThread dogTh = new DogThread(c, minus3, catTh); // ������
- FishThread fishTh = new FishThread(c, plus5, catTh, dogTh); // ������
- TimerThread timerTh = new TimerThread(timerlabel, catTh); // Ÿ�̸�
+ // Thread create
+ CatThread catTh = new CatThread(cat, c, plusone); //cat
+ DogThread dogTh = new DogThread(c, minus3, catTh); //dog
+ FishThread fishTh = new FishThread(c, plus5, catTh, dogTh); //fish
+ TimerThread timerTh = new TimerThread(timerlabel, catTh); //timer
catTh.setTh(dogTh, fishTh);
dogTh.setFishTh(fishTh);
- // ���� ��ư ����
+ // start button create
startbtn = new JButton("START");
startbtn.setSize(450,50);
startbtn.setLocation(20,400);
startbtn.setBackground(Color.PINK);
startbtn.setOpaque(true);
startbtn.addMouseListener(new MouseAdapter() {
- public void mousePressed(MouseEvent e) { // ��ư ������ ����
+ public void mousePressed(MouseEvent e) { //button pressed start
startbtn.setText("FINISE");
- if (timerTh.isAlive()) { // Ÿ�̸� �����尡 ����ǰ� ���� �� ��ư ������ ����
+ if (timerTh.isAlive()) { //timer thread starting button pressed end
TimerThread.n = -1;
timerlabel.setText(" TIME : 30");
startbtn.setText("START");
@@ -92,11 +93,11 @@ public NyangiGame() {
c.add(timerlabel);
c.add(startbtn);
- // ��Ŀ�� ������ ����
+ //focus icon create
ImageIcon fimg = new ImageIcon("images/focus.png");
JLabel focus = new JLabel(fimg);
- // Key ������ �ޱ�
+ //Key listener add
MyKeyListener key = new MyKeyListener(c, focus, scorelabel, plusone, minus3, plus5);
key.setThread(catTh, dogTh, fishTh);
startbtn.addKeyListener(key);
@@ -105,8 +106,8 @@ public NyangiGame() {
focus.setSize(fimg.getIconWidth(),fimg.getIconWidth());
c.add(focus);
c.setFocusable(true);
- c.requestFocus(); // ����Ʈ���� Ű �Է��� ���� �� �ֵ��� ��Ŀ�� ���� ����
-
+ c.requestFocus(); //content pane focus to receive input
+
setSize(500,500);
setVisible(true);
}
diff --git a/JAVA_FirstGame/src/nyangIGame/TimeOver.java b/JAVA_FirstGame/src/nyangIGame/TimeOver.java
index cd65258..e8dea2a 100644
--- a/JAVA_FirstGame/src/nyangIGame/TimeOver.java
+++ b/JAVA_FirstGame/src/nyangIGame/TimeOver.java
@@ -3,6 +3,7 @@
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
+import java.io.*;
public class TimeOver extends JFrame {
public TimeOver() {
@@ -26,6 +27,13 @@ public TimeOver() {
btn.setSize(100,100);
c.add(btn);
+ // save button
+ JButton save_btn = new JButton();
+ save_btn.setText("SAVE");
+ save_btn.setSize(100, 100);
+ c.add(save_btn);
+
+
// ��ư Ŭ���� ��� â ����
btn.addActionListener(new ActionListener() {
@Override
@@ -34,6 +42,29 @@ public void actionPerformed(ActionEvent e) {
}
});
+ save_btn.addActionListener(new ActionListener() {
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ // TODO Auto-generated method stub
+ File file = new File("resource/score.txt");
+ FileWriter fw = null;
+
+ try {
+ fw = new FileWriter(file, true);
+ BufferedWriter bw = new BufferedWriter(fw);
+ bw.write(Integer.toString(MyKeyListener.score));
+ bw.write("\n");
+ System.out.println("��������Ϸ�");
+ bw.close();
+ fw.close();
+ } catch (IOException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
+ }
+ });
+
setVisible(true);
setSize(200,100);
setLocation(250,250);
diff --git a/JAVA_FirstGame/src/nyangIGame/rank.java b/JAVA_FirstGame/src/nyangIGame/rank.java
new file mode 100644
index 0000000..7635540
--- /dev/null
+++ b/JAVA_FirstGame/src/nyangIGame/rank.java
@@ -0,0 +1,154 @@
+package nyangIGame;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.StringTokenizer;
+
+import javax.swing.*;
+
+public class rank extends JFrame{
+ int[] score_arr = new int[10];
+
+ JScrollPane scrollPane;
+ ImageIcon icon;
+
+ public rank() {
+ setTitle("��ŷ");
+ setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ icon = new ImageIcon("images/rnak.png");
+
+ JPanel background = new JPanel() {
+ public void paintComponent(Graphics g) {
+ g.drawImage(icon.getImage(), 0,0,null);
+ setOpaque(false);
+ super.paintComponent(g);
+ }
+ };
+ background.setLayout(null);
+ scrollPane = new JScrollPane(background);
+ setContentPane(scrollPane);
+// JPanel north_pn = new JPanel();
+// JPanel center_pn = new JPanel();
+// JPanel left_pn = new JPanel();
+//
+// JFrame rank_fr = new JFrame();!!!!
+ //JPanel main_pn = new JPanel();
+ JLabel rank_score = new JLabel("�ְ� ����");
+ rank_score.setLocation(180,90);
+ rank_score.setSize(100,100);
+ rank_score.setFont(new Font("�ü�", Font.BOLD,20));
+ background.add(rank_score);
+
+
+ JLabel rank1 = new JLabel("1�� ===>");
+ rank1.setLocation(100,170);
+ rank1.setSize(100,150);
+ rank1.setFont(new Font("����", Font.BOLD,17));
+ background.add(rank1);
+
+ JLabel rank2 = new JLabel("2�� ===>");
+ rank2.setLocation(100,250);
+ rank2.setSize(100,150);
+ rank2.setFont(new Font("����", Font.BOLD,17));
+ background.add(rank2);
+
+ JLabel rank3 = new JLabel("3�� ===>");
+ rank3.setLocation(100,320);
+ rank3.setSize(100,150);
+ rank3.setFont(new Font("����", Font.BOLD,17));
+ background.add(rank3);
+
+
+
+ //���� �о� �� �� ��ũ�������� ���� ���ڿ��� �и�, ���� ������ ��ȯ
+ String temp_score = get_score();
+ StringTokenizer st = new StringTokenizer(temp_score,",");
+ int i = 0;
+ int j = 0;
+
+ while(st.hasMoreTokens()) {
+ score_arr[i] = Integer.parseInt(st.nextToken());
+ i++;
+ }
+
+ //���� �迭�� ���� �˰������� ���� ���� ���� �켱������ ����
+ for(i = 0; i 0) {
+ best_score += line + "," ;
+ }
+ }
+ read_file.close();
+ }catch(Exception e) {
+ e.printStackTrace();
+ }
+
+ return best_score;
+ }
+
+ public static void main(String[] args) {
+ rank frame = new rank();
+ frame.setSize(460,550);
+ frame.setVisible(true);
+
+ }
+
+}
diff --git a/javaTermProject/avoidBomb/bin/.gitignore b/javaTermProject/avoidBomb/bin/.gitignore
deleted file mode 100644
index 3d9ac11..0000000
--- a/javaTermProject/avoidBomb/bin/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-/Test/
-/bombGame/
-/lowLevel/
diff --git a/javaTermProject/avoidBomb/bin/Test/ClickButton$1.class b/javaTermProject/avoidBomb/bin/Test/ClickButton$1.class
index 6f96cfb..971c8a1 100644
Binary files a/javaTermProject/avoidBomb/bin/Test/ClickButton$1.class and b/javaTermProject/avoidBomb/bin/Test/ClickButton$1.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/.classpath b/javaTermProject/avoidBomb/bin/bombGame/.classpath
new file mode 100644
index 0000000..ac37fb2
--- /dev/null
+++ b/javaTermProject/avoidBomb/bin/bombGame/.classpath
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/javaTermProject/avoidBomb/bin/bombGame/.project b/javaTermProject/avoidBomb/bin/bombGame/.project
new file mode 100644
index 0000000..792ad63
--- /dev/null
+++ b/javaTermProject/avoidBomb/bin/bombGame/.project
@@ -0,0 +1,17 @@
+
+
+ bombGame
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/javaTermProject/avoidBomb/bin/bombGame/ButtonTimer.class b/javaTermProject/avoidBomb/bin/bombGame/ButtonTimer.class
new file mode 100644
index 0000000..4389357
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/ButtonTimer.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/GameButton.class b/javaTermProject/avoidBomb/bin/bombGame/GameButton.class
new file mode 100644
index 0000000..bf364eb
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/GameButton.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/GameSystem.class b/javaTermProject/avoidBomb/bin/bombGame/GameSystem.class
new file mode 100644
index 0000000..2bcfb41
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/GameSystem.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/LabelTimer.class b/javaTermProject/avoidBomb/bin/bombGame/LabelTimer.class
new file mode 100644
index 0000000..259d566
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/LabelTimer.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/Main.class b/javaTermProject/avoidBomb/bin/bombGame/Main.class
new file mode 100644
index 0000000..c6e210f
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/Main.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/MyFrame$ButtonMouseEvent.class b/javaTermProject/avoidBomb/bin/bombGame/MyFrame$ButtonMouseEvent.class
new file mode 100644
index 0000000..36ae7ad
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/MyFrame$ButtonMouseEvent.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/MyFrame$StartMouseListener.class b/javaTermProject/avoidBomb/bin/bombGame/MyFrame$StartMouseListener.class
new file mode 100644
index 0000000..c28237a
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/MyFrame$StartMouseListener.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/MyFrame.class b/javaTermProject/avoidBomb/bin/bombGame/MyFrame.class
new file mode 100644
index 0000000..4d87cee
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/MyFrame.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/ReplayButton.class b/javaTermProject/avoidBomb/bin/bombGame/ReplayButton.class
new file mode 100644
index 0000000..2782a44
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/ReplayButton.class differ
diff --git a/javaTermProject/avoidBomb/bin/bombGame/Timer.class b/javaTermProject/avoidBomb/bin/bombGame/Timer.class
new file mode 100644
index 0000000..b72775e
Binary files /dev/null and b/javaTermProject/avoidBomb/bin/bombGame/Timer.class differ
diff --git "a/\354\210\230\354\240\225.txt" "b/\354\210\230\354\240\225.txt"
new file mode 100644
index 0000000..e9e9736
--- /dev/null
+++ "b/\354\210\230\354\240\225.txt"
@@ -0,0 +1,3 @@
+21.01.19
+수정
+중균기