GithubHelp home page GithubHelp logo

vavarm / carmageddon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 754 KB

Fullstack little game written in React and Java Quarkus

Java 18.63% HTML 76.31% Shell 0.02% JavaScript 4.69% CSS 0.36%
game java mqtt quarkus reactjs fullstack

carmageddon's Introduction

Carmageddon

Fullstack little game written in React and Java Quarkus

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./gradlew quarkusDev

Then you can access the game at http://localhost:8080/ and the development dahboard at http://localhost:8080/dev-frontend

Packaging and running the application

The application can be packaged using:

./gradlew build

It produces the quarkus-run.jar file in the build/quarkus-app/ directory.

How to play ?

  • Run the application
  • Go to http://localhost:8080/
  • Create a new game or join an existing game
  • Join the party by giving your pseudonyme
  • Your car appears in a garage, you can now move with the arrow keys and try to demolish the other vehicules

Architecture

  • frontend: the source code of the frontend application
  • src/main/java/org/acme: the source code of the backend application
  • src/test/java/org/acme: the test files of the backend
  • src/main/resources/META-INF/resources: the frontend's static files served when the Quarkus application is launched

Compilation

You can test a compilator in this project. Just run src/main/java/org/acme/Compiler.javaand look at the output file: src/main/java/org/acme/compiled/Calculation.java

How it works ?

The compiler looks at all files in src/main/toBeCompiled. Then, for each files with .compil as extension, it adds a method call with the filename in a router. Finally, it creates a method with the filename and for each line where "PLUS" is written, it returns +1 and for each line where "MOINS" is written, it returns -1. In case of there's no "PLUS" or "MOINS" in the file, the method returns 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.