Skip to content
0880880Public

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Pulsar Game Engine

A lightweight 2D game engine made with libGDX.

Editor

Features

  • Java Scripting
  • Audio
  • 2D Physics (Box2D)
  • Shaders
  • Multi-platform development (Windows, Linux, macOS, Web with GWT)

Example Script

import com.pulsar.api.Component;
import com.pulsar.api.Input;
import com.pulsar.api.Time;
import com.pulsar.api.math.Vector2;

public class PlayerController extends Component {

    public float speed = 10;

    private Vector2 tmp = new Vector2();

    public void update() {

        float x = 0, y = 0;

        if (Input.isKeyPressed("W"))
            y = 1;
        if (Input.isKeyPressed("A"))
            x = -1;
        if (Input.isKeyPressed("S"))
            y = -1;
        if (Input.isKeyPressed("D"))
            x = 1;

        tmp.set(x, y).nor();
        tmp.scl(speed).scl(Time.getDeltaTime());

        gameObject.transform.position.add(tmp);

    }

}

Download

Find the latest version in the Releases page.

Requirements

Java Development Kit (JDK): Version 17 or higher is recommended, JDK 11 or higher is required.

License

This project is governed by the MIT License. For detailed information, refer to LICENSE.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages