Skip to content

Instantly share code, notes, and snippets.

// ---------------------- PODSISTEMI ----------------------
class InputSystem {
public void enable() { System.out.println("Input enabled."); }
public void disable() { System.out.println("Input disabled."); }
}
class PhysicsSystem {
public void start() { System.out.println("Physics started."); }
@Mir1001
Mir1001 / texturesInScene2dgame.md
Created March 3, 2022 15:48 — forked from Leejjon/texturesInScene2dgame.md
How to organize your stages and textures in your libGDX game

Starting out

If you have started out to build a game with libGDX, you've were probably creating and disposing textures out like this:

public class MyGdxGame extends ApplicationAdapter {
    SpriteBatch batch;
    Texture badlogic;

    @Override

public void create () {

@Mir1001
Mir1001 / main.py
Created January 12, 2022 09:31 — forked from fogleman/main.py
Collision Avoidance
from collections import deque
from math import sin, cos, pi, atan2, hypot
import random
import time
import wx
SIZE = 600
COUNT = 64
SPEED = 100
FOLLOWERS = 4
public class Test {
public static void main(String[] args) {
int a=5;
int b=10;
int p = a*b;
int o = 2*a+2*b;
System.out.println("Ploscina je:"+p);
System.out.println("Obseg je:"+o);
System.out.println("Konec");