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]
  ignore  |  Print  
  jValues - object oriented java values  (Read 2777 times)
0 Members and 1 Guest are viewing this topic.
Offline mikoch
« Posted 2014-02-12 10:09:58 »

Some time ago I opensourced jValues library that I use on a daily basis and forgot to share it here.

It is a library providing object oriented representations for primitive values like Float, Int and compound values like Vector, Frame (Aabb), Quad (4 Vectors), etc. Each value have mutable, immutable and readable interface. For example float can be represented via mutable FloatV interface, immutable (const) FloatC interface or readable FloatG that is supertype of FloatC and FloatV (you can read it but have no guarantee it's immutable).

It provides most common methods that can be invoked on values it can represent.

Tutorial available at https://github.com/mikosik/jvalues provides simple examples and explains everything nicely.

Offline Danny02
« Reply #1 - Posted 2014-02-12 17:23:28 »

I get what this lib does, but why?
Offline matheus23

JGO Kernel


Medals: 98
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2014-02-12 17:49:14 »

First! Grin

https://github.com/matheus23/ScalaUtils/tree/master/src/org/matheusdev/properties

Just kidding, I wasn't the Idea is not mine, just saying.
I mostly got the Ideas from this blog post and it's second part.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline mikoch
« Reply #3 - Posted 2014-02-12 17:59:39 »

I get what this lib does, but why?

I'm not quite sure what you are asking about?
Why I needed that lib?  - There are examples in the tutorial.
Could you be more specific?

Offline mikoch
« Reply #4 - Posted 2014-02-12 18:03:29 »

First! Grin

Wait a minute, I published my project in January 2013...  Grin

but seriously you have a few nice features like updating data from file. I'll take a closer look later, I'm not scala literate.

Offline matheus23

JGO Kernel


Medals: 98
Projects: 3


You think about my Avatar right now!


« Reply #5 - Posted 2014-02-12 18:34:14 »

Wait a minute, I published my project in January 2013...  Grin

Oops, read "2014" :/ well Cheesy

but seriously you have a few nice features like updating data from file. I'll take a closer look later, I'm not scala literate.

Thanks! Smiley The FileProperty is the property I'm proud of the most Wink

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Danny02
« Reply #6 - Posted 2014-02-12 19:57:16 »

Ok sry, didn't read till the end.

Yeah this concept is quite nice, and I'm also experimenting with functional game programming so this kind of things is quite usefull.

There are also these two nice libs which might interested you two:
https://github.com/Netflix/RxJava
https://github.com/lihaoyi/scala.rx
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 613
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #7 - Posted 2014-02-13 08:07:41 »

readme.md
Quote
We can simply multiply it by 3 this way:
1  
radius.mul(2)
... rocked my world ...

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline mikoch
« Reply #8 - Posted 2014-02-13 08:37:22 »

readme.md
Quote
We can simply multiply it by 3 this way:
1  
radius.mul(2)
... rocked my world ...

Fixed. Thanks for pointing out.

Offline mikoch
« Reply #9 - Posted 2014-02-13 09:16:57 »


Looks very interesting.
I tried to learn more but the problem is that despite RxJava is a java library, all examples on their wiki are in scala language. (for example https://github.com/Netflix/RxJava/wiki/Creating-Observables)
Are you able to point to some examples in pure java? or some opensource project using it?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Roquen
« Reply #10 - Posted 2014-02-13 09:33:23 »

Here's some code from my ArchType overview which uses proxies to implement dynamically typed prototype based variable extensions for some predefined set of types.

https://github.com/roquendm/JGO-Grabbag/tree/master/src/roquen/wiki/dvar

There are tons of variants on the same theme.
Pages: [1]
  ignore  |  Print  
 
 

 

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 (216 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!