This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is old code, around spring 2018 time.
- Loading branch information
Showing
49 changed files
with
12,419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# tuyotuyo | ||
Fun blend of puyo puyo and tetris made in Java. | ||
--- | ||
#### Created by David Brooks, Rithwik Pattikonda, and Tristan Prior. | ||
|
||
In this version of Tetris, the rules are similar: | ||
1. Try to remove rows by completing them. | ||
2. Don't let your blocks hit the ceiling. | ||
|
||
The difference is is that this version also includes an element from puyo puyo: If four adjacent blocks are the same color, | ||
they are deleted from the grid, leaving a large hole that you have to fill in. | ||
|
||
**You have been warned, play at your own frustration.** | ||
|
||
|
||
|
||
###### Known Bugs: | ||
- Cannot rotate on right hand side of screen. | ||
- Either stops rotation or forcing it appears to deform the block into either the S or Square block. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><!-- You may freely edit this file. See commented blocks below for --><!-- some examples of how to customize the build. --><!-- (If you delete it and reopen the project it will be recreated.) --><!-- By default, only the Clean and Build commands use this build script. --><project name="TuyoTuyo" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> | ||
<description>Builds, tests, and runs the project TuyoTuyo.</description> | ||
<import file="nbproject/build-impl.xml"/> | ||
<!-- | ||
There exist several targets which are by default empty and which can be | ||
used for execution of your tasks. These targets are usually executed | ||
before and after some main targets. Those of them relevant for JavaFX project are: | ||
-pre-init: called before initialization of project properties | ||
-post-init: called after initialization of project properties | ||
-pre-compile: called before javac compilation | ||
-post-compile: called after javac compilation | ||
-pre-compile-test: called before javac compilation of JUnit tests | ||
-post-compile-test: called after javac compilation of JUnit tests | ||
-pre-jfx-jar: called before FX SDK specific <fx:jar> task | ||
-post-jfx-jar: called after FX SDK specific <fx:jar> task | ||
-pre-jfx-deploy: called before FX SDK specific <fx:deploy> task | ||
-post-jfx-deploy: called after FX SDK specific <fx:deploy> task | ||
-pre-jfx-native: called just after -pre-jfx-deploy if <fx:deploy> runs in native packaging mode | ||
-post-jfx-native: called just after -post-jfx-deploy if <fx:deploy> runs in native packaging mode | ||
-post-clean: called after cleaning build products | ||
(Targets beginning with '-' are not intended to be called on their own.) | ||
Example of inserting a HTML postprocessor after javaFX SDK deployment: | ||
<target name="-post-jfx-deploy"> | ||
<basename property="jfx.deployment.base" file="${jfx.deployment.jar}" suffix=".jar"/> | ||
<property name="jfx.deployment.html" location="${jfx.deployment.dir}${file.separator}${jfx.deployment.base}.html"/> | ||
<custompostprocess> | ||
<fileset dir="${jfx.deployment.html}"/> | ||
</custompostprocess> | ||
</target> | ||
Example of calling an Ant task from JavaFX SDK. Note that access to JavaFX SDK Ant tasks must be | ||
initialized; to ensure this is done add the dependence on -check-jfx-sdk-version target: | ||
<target name="-post-jfx-jar" depends="-check-jfx-sdk-version"> | ||
<echo message="Calling jar task from JavaFX SDK"/> | ||
<fx:jar ...> | ||
... | ||
</fx:jar> | ||
</target> | ||
For more details about JavaFX SDK Ant tasks go to | ||
http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm | ||
For list of available properties check the files | ||
nbproject/build-impl.xml and nbproject/jfx-impl.xml. | ||
--> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Fri, 18 May 2018 16:28:17 -0500 | ||
|
||
|
||
C\:\\Users\\Ursom\\Documents\\NetBeansProjects\\TuyoTuyo= |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.effect.Bloom?> | ||
<?import javafx.scene.layout.AnchorPane?> | ||
<?import javafx.scene.layout.ColumnConstraints?> | ||
<?import javafx.scene.layout.GridPane?> | ||
<?import javafx.scene.layout.RowConstraints?> | ||
<?import javafx.scene.text.Font?> | ||
<?import javafx.scene.text.Text?> | ||
|
||
<AnchorPane id="anchorPane" prefHeight="800.0" prefWidth="836.0" style="-fx-background-color: #000021;" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="tuyotuyo.TuyoFXMLController"> | ||
<children> | ||
<Button id="startButton" fx:id="startButton" layoutX="506.0" layoutY="443.0" onAction="#startGame" prefHeight="110.0" prefWidth="240.0" text="Start Game"> | ||
<effect> | ||
<Bloom threshold="1.0" /> | ||
</effect> | ||
<font> | ||
<Font name="ArcadeClassic" size="19.0" /> | ||
</font></Button> | ||
<Text fill="WHITE" layoutX="463.0" layoutY="92.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Tuyo Tuyo"> | ||
<font> | ||
<Font name="ArcadeClassic" size="73.0" /> | ||
</font> | ||
</Text> | ||
<GridPane fx:id="mainGrid" gridLinesVisible="true" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="400.0" style="-fx-stroke: white;"> | ||
<columnConstraints> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
<ColumnConstraints maxWidth="40.0" minWidth="40.0" prefWidth="40.0" /> | ||
</columnConstraints> | ||
<rowConstraints> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
<RowConstraints maxHeight="40.0" minHeight="40.0" prefHeight="40.0" /> | ||
</rowConstraints> | ||
</GridPane> | ||
<Text fill="WHITE" layoutX="503.0" layoutY="140.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Picasso + tetris + candy crush"> | ||
<font> | ||
<Font name="ArcadeClassic" size="17.0" /> | ||
</font> | ||
</Text> | ||
<Text id="score" fx:id="score" fill="WHITE" layoutX="498.0" layoutY="269.0" strokeType="OUTSIDE" strokeWidth="0.0" text="0" textAlignment="CENTER" wrappingWidth="260.79999923706055" AnchorPane.leftAnchor="498.0" AnchorPane.rightAnchor="77.20000076293945"> | ||
<font> | ||
<Font name="ArcadeClassic" size="96.0" /> | ||
</font> | ||
</Text> | ||
<Text fill="WHITE" layoutX="591.0" layoutY="368.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Score"> | ||
<font> | ||
<Font name="ArcadeClassic" size="27.0" /> | ||
</font> | ||
</Text> | ||
<Text fill="WHITE" layoutX="575.0" layoutY="640.0" strokeType="OUTSIDE" strokeWidth="0.0" text="How to play"> | ||
<font> | ||
<Font name="ArcadeClassic" size="18.0" /> | ||
</font></Text> | ||
<Text fill="WHITE" layoutX="468.0" layoutY="664.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Use the left and right arrow keys to move the piece and the up arrow key to rotate. " textAlignment="CENTER" wrappingWidth="320.6962890625"> | ||
<font> | ||
<Font name="ArcadeClassic" size="16.0" /> | ||
</font></Text> | ||
<Text id="gameover" fx:id="gameover" fill="WHITE" layoutX="532.0" layoutY="764.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Game Over"> | ||
<font> | ||
<Font size="36.0" /> | ||
</font> | ||
</Text> | ||
</children> | ||
</AnchorPane> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<html><head> | ||
<SCRIPT src="./web-files/dtjava.js"></SCRIPT> | ||
<script> | ||
function launchApplication(jnlpfile) { | ||
dtjava.launch( { | ||
url : 'TuyoTuyo.jnlp', | ||
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iVHV5b1R1eW8uam5scCI+DQogIDxpbmZvcm1hdGlvbj4NCiAgICA8dGl0bGU+VHV5b1R1eW88L3RpdGxlPg0KICAgIDx2ZW5kb3I+cml0aHc8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iVHV5b1R1eW8uamFyIiBzaXplPSIxNjE1MCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJUdXlvVHV5byIgPg0KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4NCiAgPC9hcHBsZXQtZGVzYz4NCiAgPGpmeDpqYXZhZngtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9InR1eW90dXlvLlR1eW9UdXlvIiAgbmFtZT0iVHV5b1R1eW8iIC8+DQogIDx1cGRhdGUgY2hlY2s9ImFsd2F5cyIvPg0KPC9qbmxwPg0K' | ||
}, | ||
{ | ||
javafx : '8.0+' | ||
}, | ||
{} | ||
); | ||
return false; | ||
} | ||
</script> | ||
|
||
<script> | ||
function javafxEmbedtuyotuyo() { | ||
dtjava.embed( | ||
{ | ||
id : 'tuyotuyo', | ||
url : 'TuyoTuyo.jnlp', | ||
placeholder : 'javafx-app-placeholder', | ||
width : '800', | ||
height : '600', | ||
jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iVHV5b1R1eW8uam5scCI+DQogIDxpbmZvcm1hdGlvbj4NCiAgICA8dGl0bGU+VHV5b1R1eW88L3RpdGxlPg0KICAgIDx2ZW5kb3I+cml0aHc8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iVHV5b1R1eW8uamFyIiBzaXplPSIxNjE1MCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCiAgPGFwcGxldC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJUdXlvVHV5byIgPg0KICAgIDxwYXJhbSBuYW1lPSJyZXF1aXJlZEZYVmVyc2lvbiIgdmFsdWU9IjguMCsiLz4NCiAgPC9hcHBsZXQtZGVzYz4NCiAgPGpmeDpqYXZhZngtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9InR1eW90dXlvLlR1eW9UdXlvIiAgbmFtZT0iVHV5b1R1eW8iIC8+DQogIDx1cGRhdGUgY2hlY2s9ImFsd2F5cyIvPg0KPC9qbmxwPg0K' | ||
}, | ||
{ | ||
javafx : '8.0+' | ||
}, | ||
{} | ||
); | ||
} | ||
<!-- Embed FX application into web page once page is loaded --> | ||
dtjava.addOnloadCallback(javafxEmbedtuyotuyo); | ||
</script> | ||
|
||
</head><body> | ||
<h2>Test page for <b>TuyoTuyo</b></h2> | ||
<b>Webstart:</b> <a href='TuyoTuyo.jnlp' onclick="return launchApplication('TuyoTuyo.jnlp');">click to launch this app as webstart</a><br><hr><br> | ||
|
||
<!-- Applet will be inserted here --> | ||
<div id='javafx-app-placeholder'></div> | ||
</body></html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<jnlp spec="1.0" xmlns:jfx="http://javafx.com" href="TuyoTuyo.jnlp"> | ||
<information> | ||
<title>TuyoTuyo</title> | ||
<vendor>rithw</vendor> | ||
<description>null</description> | ||
<offline-allowed/> | ||
</information> | ||
<resources> | ||
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/> | ||
<jar href="TuyoTuyo.jar" size="16150" download="eager" /> | ||
</resources> | ||
<applet-desc width="800" height="600" main-class="com.javafx.main.NoJavaFXFallback" name="TuyoTuyo" > | ||
<param name="requiredFXVersion" value="8.0+"/> | ||
</applet-desc> | ||
<jfx:javafx-desc width="800" height="600" main-class="tuyotuyo.TuyoTuyo" name="TuyoTuyo" /> | ||
<update check="always"/> | ||
</jnlp> |
Oops, something went wrong.