Show Posts
|
|
Pages: [1]
|
|
4
|
Java Game APIs & Engines / OpenGL Development / Pyramid, Cube in LWJGL
|
on: 2012-07-02 17:01:24
|
Hello, I'm new in OpenGL(LWJGL). Now I'm understand how to draw 2D Triangles/Squares(too Points  ), set color to Triangles/Squares, Rotate Triangles/Squares. But I'm stuck with how to draw real 3D objects(something like Pyramid, Cube). I'm know for pyramid I'm need Front,Back,Left, Right and for Cube need Front, Back, Left, Right, Top, Bottom vertices. I am copy this vertices from NeHe tutorial( http://nehe.gamedev.net/tutorial/3d_shapes/10035/) and all work. But I'm don't understand how to set this vertices from mind. I'm only know how to set vertices for Front and Back, but how to left, right, etc. How all works? Sorry for stupid question, but I'm don't understand. Maybe is good tutorial for this situation? Thanks and sorry for my bad English language. 
|
|
|
|
|
14
|
Game Development / Newbie & Debugging Questions / Isometric map with big objects
|
on: 2011-08-23 16:37:08
|
Hello, Maybe anyone have idea how to make Isometric object's bigger than one tile? Something like I am have: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| map = [ [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]; objMap = [ [1, 0, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 1, 0, 0]];
tileImg = 'tile.png'; objImg = 'obj.png';
tileArray = Array(tileImg, ...); objArray = Array(objImg, ...);
tileW = 16; tileH = 16; function drawMap() { for(i = 0; i < map.length; i++) { for(var j = map[i].length; j++) { drawTile = map[i][j]; drawObj = objMap[i][j]; x = (i-j) * tileH; y = (i+j) * tileH / 2; drawImage(tileArray[drawTile], x, y); if(drawObj) { drawImage(objArray[drawObj-1], x, y - 16); } } } } |
Sorry for no Java code, but I am think this is easy understand.  In here can draw isometric tile map with object's. One object only can take one tile, but how to make Object where use 4 tiles or more? Maybe can anyone share idea? Sorry for my English language and sorry for newbie questions. Thanks!
|
|
|
|
|
15
|
Discussions / Miscellaneous Topics / Web platform or Java for game development?
|
on: 2011-08-01 17:28:13
|
Hello, First sorry for my English language. This is not my base language for my country. But I want to hear the opinion of in what platform better create games eg. after 1 year's? Web(HTML5, JavaScript, WebGL) or in Java platform? what you think which platform more popular eg. after 1 year? And now today Web platform(HTML5, JavaScript) have successful Game Engine's( http://www.impactjs.com, http://www.rocketpack.fi, and I think is more  ). Too with JavaScript language can programming in Server-Side with Node.js( http://www.nodejs.org) and sure cross-platform(Windows(Microsoft have plans allow developers create programs with HTML5, JavaScript), Linux, Mac, Android, iOS, ...). Too I think more easy development in Web platform for new programmers when Java. What you think?
|
|
|
|
|
17
|
Game Development / Newbie & Debugging Questions / Character movement with Mouse
|
on: 2011-07-23 23:22:39
|
|
Hello, Sorry for newbie question but How to movement Game Character with Mouse? Something like I am have: mouseX, mouseY, playerX = 0, playerY = 0. If I am click mouse get cordinates in mouseX and mouseY(Something like now mouseX = 5 and mouseY = 10) and move Character to x 1 and y 3(playerX = 1 and playerY = 3 now) How to move Game character(wihout Teleport) to mouseX and mouseY cordinates?
Simple code snippets very useful.
Thanks and sorry for my English language.
|
|
|
|
|
20
|
Games Center / Featured Games / Re: Yet Unnamed Multiplayer Rogue Like
|
on: 2011-05-21 18:32:06
|
Windows 7 Java "1.6.0_25" 1 2 3 4 5 6 7 8 9 10 11 12 13 14
| org.lwjgl.LWJGLException: Could not create context at org.lwjgl.opengl.WindowsContextImplementation.nCreate(Native Method) at org.lwjgl.opengl.WindowsContextImplementation.create(WindowsContextImplementation.java:50) at org.lwjgl.opengl.Context.<init>(Context.java:131) at org.lwjgl.opengl.Display.create(Display.java:859) at org.lwjgl.opengl.Display.create(Display.java:785) at org.lwjgl.opengl.Display.create(Display.java:766) at platspecific.AppletM$1.run(AppletM.java:97) initgl Exception in thread "Thread-14" java.lang.NullPointerException at org.lwjgl.opengl.GL11.glEnable(GL11.java:1001) at platspecific.AppletM.initGL(AppletM.java:161) at platspecific.AppletM.rungame(AppletM.java:298) at platspecific.AppletM$1.run(AppletM.java:110) |
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|