diff --git a/Tetris/app/src/main/java/activity/Game.kt b/Tetris/app/src/main/java/activity/Game.kt new file mode 100644 index 0000000..817aaf7 --- /dev/null +++ b/Tetris/app/src/main/java/activity/Game.kt @@ -0,0 +1,15 @@ +package activity + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import but.androidstudio.tetris.R + +class Game : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_game) + } + + +} \ No newline at end of file diff --git a/Tetris/app/src/main/java/activity/Menu.kt b/Tetris/app/src/main/java/activity/Menu.kt index c6c0ffd..63bfe04 100644 --- a/Tetris/app/src/main/java/activity/Menu.kt +++ b/Tetris/app/src/main/java/activity/Menu.kt @@ -1,8 +1,10 @@ package activity import android.annotation.SuppressLint +import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle +import android.widget.Button import android.widget.TextView import but.androidstudio.tetris.R @@ -14,5 +16,10 @@ class Menu : AppCompatActivity() { val appName:TextView = findViewById(R.id.appName) appName.setText(R.string.app_name) + + val buttonStart:Button = findViewById(R.id.buttonStart) + buttonStart.setOnClickListener { + + } } } \ No newline at end of file diff --git a/Tetris/app/src/main/java/modele/Draw.kt b/Tetris/app/src/main/java/modele/Draw.kt new file mode 100644 index 0000000..d4cfe30 --- /dev/null +++ b/Tetris/app/src/main/java/modele/Draw.kt @@ -0,0 +1,10 @@ +package modele + +import android.annotation.SuppressLint +import android.content.Context +import android.graphics.Paint +import android.graphics.Path +import android.view.View + +class Draw { +} \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/blue.xml b/Tetris/app/src/main/res/drawable/blue.xml new file mode 100644 index 0000000..5ee8131 --- /dev/null +++ b/Tetris/app/src/main/res/drawable/blue.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/cyan.xml b/Tetris/app/src/main/res/drawable/cyan.xml new file mode 100644 index 0000000..4f59262 --- /dev/null +++ b/Tetris/app/src/main/res/drawable/cyan.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/green.xml b/Tetris/app/src/main/res/drawable/green.xml new file mode 100644 index 0000000..55d6c34 --- /dev/null +++ b/Tetris/app/src/main/res/drawable/green.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/orange.xml b/Tetris/app/src/main/res/drawable/orange.xml new file mode 100644 index 0000000..e4974bc --- /dev/null +++ b/Tetris/app/src/main/res/drawable/orange.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/purple.xml b/Tetris/app/src/main/res/drawable/purple.xml new file mode 100644 index 0000000..7b663f3 --- /dev/null +++ b/Tetris/app/src/main/res/drawable/purple.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/red.xml b/Tetris/app/src/main/res/drawable/red.xml new file mode 100644 index 0000000..755c82c --- /dev/null +++ b/Tetris/app/src/main/res/drawable/red.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/drawable/yellow.xml b/Tetris/app/src/main/res/drawable/yellow.xml new file mode 100644 index 0000000..d1be99c --- /dev/null +++ b/Tetris/app/src/main/res/drawable/yellow.xml @@ -0,0 +1,12 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/layout/activity_game.xml b/Tetris/app/src/main/res/layout/activity_game.xml new file mode 100644 index 0000000..7ae50f4 --- /dev/null +++ b/Tetris/app/src/main/res/layout/activity_game.xml @@ -0,0 +1,30 @@ + + + + + + + + + \ No newline at end of file diff --git a/Tetris/app/src/main/res/layout/activity_menu.xml b/Tetris/app/src/main/res/layout/activity_menu.xml index 6c3f41d..05137dc 100644 --- a/Tetris/app/src/main/res/layout/activity_menu.xml +++ b/Tetris/app/src/main/res/layout/activity_menu.xml @@ -2,14 +2,20 @@ + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.5"> + + + + + + + \ No newline at end of file