% Creating Games With Python And Java % Davis Silverman
- Ameteur programmer and game developer
- High school now, College in the future
trait MyFirstTrait { | |
fn my_first_func() -> (); | |
} | |
trait MySecondTrait { | |
fn my_second_func() -> (); | |
fn my_third_func() -> (); | |
} | |
struct MyStruct; |
class Point(object): | |
def __init__(self,x,y): | |
self.x = x | |
self.y = y | |
def set(self,x,y): | |
self.x = x | |
self.y = y | |
def getx(self): |
from com.badlogic.gdx import ApplicationListener, Gdx | |
from com.badlogic.gdx.graphics.g2d import SpriteBatch | |
from com.badlogic.gdx.graphics import Texture, OrthographicCamera, GL10 | |
class GdxJython(ApplicationListener): | |
def __init__(self): | |
self.camera = None | |
self.batch = None |
(ns cljdx.core | |
(:require [cljdx.drop :as drop]) | |
(:import (com.badlogic.gdx.backends.lwjgl LwjglApplication))) | |
(defn -main | |
"I don't do a whole lot." | |
[& args] | |
(LwjglApplication. | |
(cljdx.drop.) "Hello, Clojure!" 800 480 true)) |
package com.badlogic.drop; | |
import com.badlogic.gdx.Game; | |
import com.badlogic.gdx.graphics.g2d.BitmapFont; | |
import com.badlogic.gdx.graphics.g2d.SpriteBatch; | |
public class Drop extends Game { | |
SpriteBatch batch; | |
BitmapFont font; |