I have just started looking into vim, and It seems very cool indeed ! However, I am not sure whether I should use it for everything or if I should use an ide with a vim plugin. I am interested in learning libgdx/android and google glass stuff. So which would be the better tool for developing with, eclipse or vim. I don't yet know what plugins exist for vim yet, but if you use vim for your java development then can you please tell me which plugins you enjoy, and if you use eclipse over vim can you state why …

Member Avatar
Member Avatar
+0 forum 27

Hi, I am using Java, Libgdx, box2d I main class I have created a body and I set player x and y position to 50. // main class public class main{ ... private void createPlayer() { BodyDef bdef = new BodyDef(); Body body; FixtureDef fdef = new FixtureDef(); PolygonShape shape = new PolygonShape(); /*** Body - Player ***/ bdef.type = BodyType.DynamicBody; bdef.position.set(50 / PPM, 50 / PPM); bdef.linearVelocity.set(1.5f, 0); body = world.createBody(bdef); ..... } } How can I set player x and y position to 100. //player class public class player{ public player(Body body){ super(body); } .... public void update(){ …

Member Avatar
Member Avatar
+0 forum 3

I'm trying to create a set of selectable labels, New Game, Load Game, Options, and Exit. I created a MenuItem class which extends Label, and set up the constructor to use the standard stuff expected from a Label. Here is the class. package com.irridium.echo.menu; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.ui.Label; /** * @author GeoDoX * * MenuItem.java */ public class MenuItem extends Label { private boolean selected = false; private LabelStyle menuOption; public MenuItem(CharSequence text, LabelStyle menuOption) { super(text, menuOption); this.menuOption = menuOption; menuOption.fontColor = Color.WHITE; } public void select() { if(selected == true) { selected = false; menuOption.fontColor = Color.WHITE; } …

Member Avatar
Member Avatar
+0 forum 6

The End.