Dino Game

This commit is contained in:
2025-10-24 09:46:41 +02:00
parent cc2fd0202b
commit ac2a283da4
42 changed files with 596 additions and 1 deletions

18
PrimaGUI/README.md Normal file
View File

@@ -0,0 +1,18 @@
## Getting Started
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
## Folder Structure
The workspace contains two folders by default, where:
- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the `bin` folder by default.
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).

14
PrimaGUI/src/App.java Normal file
View File

@@ -0,0 +1,14 @@
import javax.swing.JButton;
import javax.swing.JFrame;
public class App {
public static void main(String[] args) throws Exception {
JFrame f = new JFrame("Una finestra meravigliosa");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setBounds(100,100,800,600);
f.setLayout(null);
JButton b = new JButton("ok");
b.setBounds(100, 20, 100, 30);
f.add(b);
f.setVisible(true);
}
}