Code Monkey home page Code Monkey logo

enion's Introduction

Enion Online

Overview

Enion Online is an Epic PvP Battle game between Orcs and Humans. It's a 3D browser-based multiplayer game that provides an immersive experience right within your favorite browser. The game is written using Clojure and ClojureScript, and utilizes the PlayCanvas game engine.

Enion Online

Repository Structure

This repository contains two main directories:

  • enion-cljs: This is the game client directory where all the client-side code resides.
  • enion-backend: This directory hosts all the server-side code necessary for handling multiplayer and other backend functionalities.

Getting Started

Prerequisites

Before you can run Enion Online, you need to install the following:

Setup and Run

Game Part

Navigate to the enion-cljs directory and install the necessary npm packages by running:

npm install

To start the game client, execute:

npm run watch

This will compile your ClojureScript code and start a development server. You can access the game client at:

http://localhost:8280

Backend Part

To start the game backend, navigate to the enion-backend directory and execute:

lein run

This will start your Clojure server.

Now, your game is up and running!

License

This project is licensed under the AGPL-3.0 License - see the LICENSE.md file for details. Please note, this project is not available for commercial purposes and is intended for personal use only.

enion's People

Contributors

ertugrulcetin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

enion's Issues

Java error while running lein run command (Cannot invoke "java.lang.Character.charValue()" because "x" is null)

When I try lein run command I got the error below 👇 Might there be a version mismatch for one of the primary component?

❯ javac -version
javac 17

❯ java --version
openjdk 17 2021-09-14
OpenJDK Runtime Environment (build 17+35-2724)
OpenJDK 64-Bit Server VM (build 17+35-2724, mixed mode, sharing)

❯ clojure --version
Clojure CLI version 1.11.1.1347

❯ lein run
2023-08-13 09:29:50,339 [main] ERROR luminus.http-server - server failed to start on port
java.lang.NullPointerException: Cannot invoke "java.lang.Character.charValue()" because "x" is null
        at clojure.lang.RT.uncheckedIntCast(RT.java:1473)
        at aleph.http.server$start_server.invokeStatic(server.clj:650)
        at aleph.http.server$start_server.invoke(server.clj:584)
        at aleph.http$start_server.invokeStatic(http.clj:60)
        at aleph.http$start_server.invoke(http.clj:27)
        at luminus.http_server$start.invokeStatic(http_server.clj:19)
        at luminus.http_server$start.invoke(http_server.clj:15)
        at enion_backend.core$eval28069$fn__28070.invoke(core.clj:27)
        at mount.core$record_BANG_.invokeStatic(core.cljc:74)
        at mount.core$record_BANG_.invoke(core.cljc:73)
        at mount.core$up$fn__457.invoke(core.cljc:81)
        at mount.core$up.invokeStatic(core.cljc:80)
        at mount.core$up.invoke(core.cljc:78)
        at mount.core$bring.invokeStatic(core.cljc:247)
        at mount.core$bring.invoke(core.cljc:239)
        at mount.core$start.invokeStatic(core.cljc:289)
        at mount.core$start.doInvoke(core.cljc:281)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at mount.core$start_with_args.invokeStatic(core.cljc:389)
        at mount.core$start_with_args.doInvoke(core.cljc:385)
        at clojure.lang.RestFn.invoke(RestFn.java:410)
        at enion_backend.core$start_app.invokeStatic(core.clj:52)
        at enion_backend.core$start_app.invoke(core.clj:50)
        at enion_backend.core$_main.invokeStatic(core.clj:61)
        at enion_backend.core$_main.doInvoke(core.clj:59)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.Var.invoke(Var.java:380)
        at user$eval28228.invokeStatic(form-init4819466814356749574.clj:1)
        at user$eval28228.invoke(form-init4819466814356749574.clj:1)
        at clojure.lang.Compiler.eval(Compiler.java:7194)
        at clojure.lang.Compiler.eval(Compiler.java:7184)
        at clojure.lang.Compiler.load(Compiler.java:7653)
        at clojure.lang.Compiler.loadFile(Compiler.java:7591)
        at clojure.main$load_script.invokeStatic(main.clj:475)
        at clojure.main$init_opt.invokeStatic(main.clj:477)
        at clojure.main$init_opt.invoke(main.clj:477)
        at clojure.main$initialize.invokeStatic(main.clj:508)
        at clojure.main$null_opt.invokeStatic(main.clj:542)
        at clojure.main$null_opt.invoke(main.clj:539)
        at clojure.main$main.invokeStatic(main.clj:664)
        at clojure.main$main.doInvoke(main.clj:616)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:40)
Execution error (NullPointerException) at aleph.http.server/start-server (server.clj:650).
Cannot invoke "java.lang.Character.charValue()" because "x" is null

Full report at:
/var/folders/60/_zgg1c651tnc50r884s_w25w0000gn/T/clojure-6436788271937974564.edn

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.