Skip to content

Commit 71f0a0f

Browse files
committed
added battleship
1 parent 383a969 commit 71f0a0f

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

css/style.css

+16
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,19 @@ li {
180180
.githublink {
181181
margin: 20px;
182182
}
183+
184+
.btn {
185+
background-color: #009688;
186+
color: #fff;
187+
font-family: roboto;
188+
margin: 20px;
189+
border-color: 6px;
190+
padding: 5%;
191+
padding-left: 30px;
192+
padding-right: 30px;
193+
194+
border-radius: 4px;
195+
-webkit-box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.15);
196+
-moz-box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.15);
197+
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.15);
198+
}

index.html

+32-1
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,43 @@
152152
</a>
153153
</center>
154154
</div>
155+
156+
<div class="card">
157+
<big>Android Rolodex View</big>
158+
<br><br>
159+
I might not add this
160+
</div>
161+
155162
<div class="card">
156-
Android Rolodex View
163+
<big>Battleship</big>
164+
<br><br>
165+
I created this battleship game during senior year in high school for my AP Computer Science class. For this game I created a very simple 2D game engine in Java and used that engine to make the battleship game. I'm most proud of the three different AI you can play against(Easy, Medium & Hard).
166+
<br><br>
167+
Below are two links, one GitHub link to the source code and one button to download a jar file. Just open the file and play!
168+
<br><br>
169+
How to Play:
170+
<li>Drag & drop ships to set the initial position of your ships</li>
171+
<li>Right click ships to rotate them</li>
172+
<li>Left click to fire</li>
173+
174+
<br>
175+
<a href="https://github.com/vcantu" target="_blank"
176+
style="margin-left:15%;">
177+
<img class="githublink" src="images/GitHub.png">
178+
</a>
179+
<a href="jars/battleship.jar" download="battleship" target="_blank"
180+
style="float: right; margin-right:15%;">
181+
<div class="btn">
182+
CLICK TO PLAY!
183+
</div>
184+
</a>
185+
157186
</div>
187+
158188
<div class="card">
159189
Small Java Calculator
160190
</div>
191+
161192
<div class="card">
162193
Java Number to English
163194
</div>

jars/Battleship.jar

35.9 KB
Binary file not shown.

js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ setInterval(function() {
1313
.fadeIn(1000)
1414
.end()
1515
.appendTo('#slideshow');
16-
}, 8000);
16+
}, 5000);

0 commit comments

Comments
 (0)