|
@@ -1,6 +1,6 @@
|
|
= multiplayer_template
|
|
= multiplayer_template
|
|
-:author:
|
|
|
|
-:revnumber:
|
|
|
|
|
|
+:author:
|
|
|
|
+:revnumber:
|
|
:revdate: 2016/03/17 20:48
|
|
:revdate: 2016/03/17 20:48
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
@@ -13,8 +13,8 @@ link:http://hub.jmonkeyengine.org/forum/topic/multiplayer-game-template/[http://
|
|
Additional information e.g. links to jars can be found here:
|
|
Additional information e.g. links to jars can be found here:
|
|
link:http://hub.jmonkeyengine.org/forum/topic/need-help-need-jar-files-for-a-project/#post-292081[http://hub.jmonkeyengine.org/forum/topic/need-help-need-jar-files-for-a-project/#post-292081]
|
|
link:http://hub.jmonkeyengine.org/forum/topic/need-help-need-jar-files-for-a-project/#post-292081[http://hub.jmonkeyengine.org/forum/topic/need-help-need-jar-files-for-a-project/#post-292081]
|
|
|
|
|
|
-Class diagram (template only):
|
|
|
|
-link:http://puu.sh/a4azI/8c37cd8cf4.png[http://puu.sh/a4azI/8c37cd8cf4.png]
|
|
|
|
|
|
+//Class diagram (template only):
|
|
|
|
+//link:http://puu.sh/a4azI/8c37cd8cf4.png[http://puu.sh/a4azI/8c37cd8cf4.png]
|
|
|
|
|
|
A lot of work has to be done, but the best thing to start with, is summing up the classes, with the variables and explaining what the use is of those.
|
|
A lot of work has to be done, but the best thing to start with, is summing up the classes, with the variables and explaining what the use is of those.
|
|
|
|
|
|
@@ -90,11 +90,11 @@ NetworkRpg.Objects:
|
|
|
|
|
|
....
|
|
....
|
|
public Spatial avatarSpatial; holds information about the character
|
|
public Spatial avatarSpatial; holds information about the character
|
|
- private Node avatarNode; a node which contains the modelnode
|
|
|
|
- private Node model; a node which contains your character (the green thing on the map)
|
|
|
|
|
|
+ private Node avatarNode; a node which contains the modelnode
|
|
|
|
+ private Node model; a node which contains your character (the green thing on the map)
|
|
public BetterCharacterControl avatarControl; this is used to set the gravity
|
|
public BetterCharacterControl avatarControl; this is used to set the gravity
|
|
private SimpleApplication App; we need this to get the rootnode
|
|
private SimpleApplication App; we need this to get the rootnode
|
|
- private BulletAppState bulletAppState; allows using bullet physics in an Application.
|
|
|
|
|
|
+ private BulletAppState bulletAppState; allows using bullet physics in an Application.
|
|
private Node rootNode; the node which gets all the nodes (add to this one, and it'll be visible)
|
|
private Node rootNode; the node which gets all the nodes (add to this one, and it'll be visible)
|
|
private AnimChannel animChannel; used to change the current anitmation
|
|
private AnimChannel animChannel; used to change the current anitmation
|
|
private AnimControl animControl; this is needed to create an animchannel
|
|
private AnimControl animControl; this is needed to create an animchannel
|
|
@@ -103,7 +103,7 @@ NetworkRpg.Objects:
|
|
private String idleAnim = "IdleBase"; name of the animation (not 100% sure)
|
|
private String idleAnim = "IdleBase"; name of the animation (not 100% sure)
|
|
private String walkAnim = "RunBase";
|
|
private String walkAnim = "RunBase";
|
|
private String attackAnim = "SliceHorizontal";
|
|
private String attackAnim = "SliceHorizontal";
|
|
- private String jumpAnim = "JumpLoop";
|
|
|
|
|
|
+ private String jumpAnim = "JumpLoop";
|
|
private BitmapFont guiFont; the font
|
|
private BitmapFont guiFont; the font
|
|
private String playerName; name above the avatar
|
|
private String playerName; name above the avatar
|
|
....
|
|
....
|