Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (576)
Games in Android Showcase (154)
games submitted by our members
Games in WIP (626)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Converting autoboxes to primitives[Solved]  (Read 1272 times)
0 Members and 1 Guest are viewing this topic.
Offline Jeremy
« Reply #30 - Posted 2013-08-15 22:18:41 »

Hm... How does minecraft do it? I googled it, and nothing useful came up.

Here is what I think you want to do:

You have a bunch of different tiles your game can use, you want to create a Tile by its name. I.e, you want to create com.wesley.laferriere.world.SandTile by its name, and com.wesley.laferriere.world.GrassTile from its name. This way, when you want you save your map, you can say: These tiles are SandTile, and these tiles are GrassTile, then when you load your map you can just load all the tile's classes with their name.

If that sounds like what you want to do, just say and I have a few routes you can take.

JevaEngine, Latest Playthrough (This demo is networked with a centralized server model)

http://www.youtube.com/watch?v=rWA8bajpVXg
Offline wessles

JGO Kernel


Medals: 114
Projects: 4
Exp: 3 years


Enthusiast of amusement. Lover of code.


« Reply #31 - Posted 2013-08-15 22:20:28 »

Hold on, I think I just found something awesome:
http://gamadu.com/apollo/

Check out my twitter to hear more about RFLEX. My Twitter
Offline wessles

JGO Kernel


Medals: 114
Projects: 4
Exp: 3 years


Enthusiast of amusement. Lover of code.


« Reply #32 - Posted 2013-08-15 22:21:37 »

Hm... How does minecraft do it? I googled it, and nothing useful came up.

Here is what I think you want to do:

You have a bunch of different tiles your game can use, you want to create a Tile by its name. I.e, you want to create com.wesley.laferriere.world.SandTile by its name, and com.wesley.laferriere.world.GrassTile from its name. This way, when you want you save your map, you can say: These tiles are SandTile, and these tiles are GrassTile, then when you load your map you can just load all the tile's classes with their name.

If that sounds like what you want to do, just say and I have a few routes you can take.

Sorry to say that this thread has absolutely nothing to do with saving or reading maps. I think I see where everyone who says it is coming from.

Check out my twitter to hear more about RFLEX. My Twitter
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online BurntPizza

« JGO Bitwise Duke »


Medals: 376
Exp: 6 years



« Reply #33 - Posted 2013-08-15 22:22:33 »

Well what does it have to do with then?! You're not providing us with any way to actually help you.
Offline wessles

JGO Kernel


Medals: 114
Projects: 4
Exp: 3 years


Enthusiast of amusement. Lover of code.


« Reply #34 - Posted 2013-08-15 22:24:34 »

Well what does it have to do with then?! You're not providing us with any way to actually help you.
I just want to know one thing:
How do I convert a Float.class to a float.class ?

Check out my twitter to hear more about RFLEX. My Twitter
Online BurntPizza

« JGO Bitwise Duke »


Medals: 376
Exp: 6 years



« Reply #35 - Posted 2013-08-15 22:27:11 »

How do I convert a Float.class to a float.class ?

You don't. They are two different Class objects.
Offline wessles

JGO Kernel


Medals: 114
Projects: 4
Exp: 3 years


Enthusiast of amusement. Lover of code.


« Reply #36 - Posted 2013-08-15 22:28:52 »

Thank you. Problem solved  Cool

Check out my twitter to hear more about RFLEX. My Twitter
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
ClaasJG (38 views)
2015-04-30 20:33:25

Riven (23 views)
2015-04-30 13:25:12

ClaasJG (42 views)
2015-04-27 13:36:51

BurntPizza (49 views)
2015-04-23 03:42:11

theagentd (51 views)
2015-04-22 16:23:07

Riven (61 views)
2015-04-16 10:48:47

Duke0200 (74 views)
2015-04-16 01:59:01

Fairy Tailz (56 views)
2015-04-14 20:13:12

Riven (62 views)
2015-04-12 21:36:37

bus hotdog (87 views)
2015-04-10 02:39:32
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!