Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (468)
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 817 times)
0 Members and 1 Guest are viewing this topic.
Offline Jeremy
« Reply #30 - Posted 2013-08-16 00: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 Ninja


Medals: 49
Projects: 4
Exp: 3 years


Loves games, loves coding; this is only logical.


« Reply #31 - Posted 2013-08-16 00:20:28 »

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

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Offline wessles

JGO Ninja


Medals: 49
Projects: 4
Exp: 3 years


Loves games, loves coding; this is only logical.


« Reply #32 - Posted 2013-08-16 00: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.

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online BurntPizza
« Reply #33 - Posted 2013-08-16 00: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 Ninja


Medals: 49
Projects: 4
Exp: 3 years


Loves games, loves coding; this is only logical.


« Reply #34 - Posted 2013-08-16 00: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 ?

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Online BurntPizza
« Reply #35 - Posted 2013-08-16 00: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 Ninja


Medals: 49
Projects: 4
Exp: 3 years


Loves games, loves coding; this is only logical.


« Reply #36 - Posted 2013-08-16 00:28:52 »

Thank you. Problem solved  Cool

You don't know nerdiness yet; you haven't even met me!
www.wessles.com
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (6 views)
2014-04-24 23:00:44

xsi3rr4x (83 views)
2014-04-15 18:08:23

BurntPizza (75 views)
2014-04-15 03:46:01

UprightPath (86 views)
2014-04-14 17:39:50

UprightPath (69 views)
2014-04-14 17:35:47

Porlus (86 views)
2014-04-14 15:48:38

tom_mai78101 (109 views)
2014-04-10 04:04:31

BurntPizza (169 views)
2014-04-08 23:06:04

tom_mai78101 (265 views)
2014-04-05 13:34:39

trollwarrior1 (217 views)
2014-04-04 12:06:45
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!