Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (855)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 66 67 [68] 69 70 ... 206
  ignore  |  Print  
  What I did today  (Read 2902442 times)
0 Members and 3 Guests are viewing this topic.
Offline Riven
Administrator

« JGO Overlord »


Medals: 1356
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2010 - Posted 2015-03-30 07:25:08 »

ASCII alt-codes aren't cross-platform.

I honestly did not know this, guess that explains why other java games (like minecraft) use characters like the &.
It's all bits at one point. Once it's compiled, your String.indexOf('§') will just work. Load & save your text-files with the UTF-8 charset, and it's as cross-platform as it will ever be. There is no reason to limit yourself to ASCII. Having said that, I'd use ♥ as a delimiter.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 379
Projects: 2
Exp: 2 years


Resident Crazyman


« Reply #2011 - Posted 2015-03-30 08:50:53 »

Finally finished my new in-line string colors.. here's a bunch of pages that now use it. Cheesy

In the first two screenshot here's the only method calls I have to do to draw the messages on-screen.
It will be nightmare for third screenshot)

it will be good to remove text and position GUI from code
(also after some time it will be nightmare to change someting)
+easy to add in game gui editor)

Quote
1  
2  
3  
4  
     font.drawString(x, y+86, "§YEL1Seriously are"
            + "\nyou §RED1ABSOLUTELY sure?"
            + "\n§WHI0THE OLD GAME WILL BE DELETED", 2, true);
      buttonReally.render(g, mouse, x-43, y+165, debug, false);

will be good use relative position not absolute position to everything

It actually both, you're just not seeing the rest of the code. Smiley

The smaller parts of the GUI that's positions should be absolute to each other are loaded in small groups, and then positioned on the screen with relative values. For example..

masterGUIClass:
1  
2  
3  
render(){
     warningMessage.render(screenWidth/2, screenHeight/2); //Center of the screen at all times, basically.
}


inside warningMessage:
1  
2  
3  
4  
5  
render(float x, float y){
     someElement1(x+15, y+50);
     someElement2(x+132, y+150);
     someElement2(x+126, y+266);
}


The real code is a lot more complicated, but that's the general idea. So basically everything inside the element is positioned with absolute values, but where the element is rendered is relative. I also have no intention on ever adding a GUI editor. Feature creep and what not. Smiley

(EDIT: Where did the post I replied to go? Shocked )

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Now on Steam!
LIVE-STREAMING DEVELOPMENT: http://www.hitbox.tv/rayvolution
Offline Icecore
« Reply #2012 - Posted 2015-03-30 09:00:54 »

(EDIT: Where did the post I replied to go? Shocked )
Delete it)
I suddenly understand that it will make more time to logical write what I mean relative position,
And don’t what dispute in this thread)
And as I can see you already do it right ^^

1  
2  
3  
4  
  font.drawString(x, y+86, "§YEL1Seriously are"
            + "\nyou §RED1ABSOLUTELY sure?"
            + "\n§WHI0THE OLD GAME WILL BE DELETED", 2, true);
      buttonReally.render(g, mouse, x-43, y+165, debug, false);


relative position == buttonReally Y pos(+165) will be same if text have 1 line or 10
(Or font change, or border Gui or Font Gui offset)
 =)

Last known State: Reassembled in Cyberspace
End Transmission....
..
.
Journey began Now)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Opiop
« Reply #2013 - Posted 2015-03-30 16:29:23 »

Finally have a nice grasp on Gradle, started rebuilding my personal website and tried harder to learn JavaScript's different version of OOP. It's... quite different than anything I've ever seen, I hope I'll have that 'click!' moment soon when JavaScript actually makes sense.

Also, finally drove my 'new' car because I have insurance on it now. That was really fun, I'm impressed how well kept it was and how smooth it feels for a used old car! Insurance actually turned out to be not too terrible, it's $100/month, but my parents are helping me out a little still until I can get a better job and can actually afford all these things. Hopefully my internship wil pay well!
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #2014 - Posted 2015-03-30 19:37:47 »

i did renew my intellij idea subscription cos' it's a nice piece of software.
Offline chrislo27
« Reply #2015 - Posted 2015-03-31 01:49:57 »

I did networking code for my little game I'm making, specifically the handling of new entities, removed entities, and adding the player. Didn't test once during the 45 minute work period. Worked on second try (first try failed due to forgetting a world instance in Entity was transient). Being able to flag fields that shouldn't be sent over streams is awesome  Grin
Offline SauronWatchesYou

JGO Ninja


Medals: 33
Projects: 4
Exp: 2 years


Hi there! :)


« Reply #2016 - Posted 2015-03-31 02:12:16 »

I got my pathfinding working Grin ..finally

<a href="http://www.youtube.com/v/401PVTbL1oA?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/401PVTbL1oA?version=3&amp;hl=en_US&amp;start=</a>

Hey, you! Back to work
Offline Opiop
« Reply #2017 - Posted 2015-03-31 19:04:09 »

Delved into Apache Tomcat, and the wide world of Servlets. I feel a little lost, but I'm making headway!

If anyone has any good blogposts or explanations of Servlets or Tomcat, I would definitely throw you a medal Wink
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #2018 - Posted 2015-03-31 19:30:36 »

i did enjoy jetty without the fiddly xml files. look for jetty embedded .. like https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty.

just a public static main() and the server.
Offline Longor1996

JGO Wizard


Medals: 115
Projects: 2
Exp: 8 years


The cake is probably a lie.


« Reply #2019 - Posted 2015-03-31 19:35:34 »

I was bored and have a headache... so I wrote a tiny template library.
Its only 150 lines of code and does exactly what I want and nothing else.

It turns this:
1  
Hello, %{name}! How are you? I am %{feel}.


Into this:
1  
Hello, You! How are you? I am fine.


Within (edit)0,0003 seconds 2 ms. Not that bad for a first try!

(edit): And now you can look at the nightmare of code I created (just for fun)! http://pastebin.com/QHTbPAys

The cake is probably a lie... but it's a delicious lie!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 379
Projects: 2
Exp: 2 years


Resident Crazyman


« Reply #2020 - Posted 2015-03-31 21:14:55 »

Crystal Motivator coming along nicely. Cheesy

Click to Play

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Now on Steam!
LIVE-STREAMING DEVELOPMENT: http://www.hitbox.tv/rayvolution
Offline basil_

« JGO Bitwise Duke »


Medals: 418
Exp: 13 years



« Reply #2021 - Posted 2015-03-31 21:22:18 »

too bad i cannot play it  Emo
Offline NegativeZero

JGO Kernel


Medals: 333
Exp: 1 month or less


Zero but not.


« Reply #2022 - Posted 2015-04-01 07:59:35 »

I was playing around in OpenGL and accidentally made a flame thing:
http://gfycat.com/FlawlessSphericalFairybluebird

EDIT: I made it fancier Smiley
https://gfycat.com/GregariousPlumpJerboa

Offline thedanisaur

JGO Knight


Medals: 59



« Reply #2023 - Posted 2015-04-01 09:19:30 »

Was using a ray-triangle intersect algorithm for picking in my game. I noticed that it was taking 222ms to run, then I realized that I wrapped it in a quadruple for loop. So I converted my tile and patch double arrays to single ones. Then I subdivide my patch to determine which quadrant I'll be picking in(then subdivide that subdivision) and now I'm down to less than 1ms  Grin.

Every village needs an idiot Cool
Offline theagentd
« Reply #2024 - Posted 2015-04-01 10:48:07 »

Was using a ray-triangle intersect algorithm for picking in my game. I noticed that it was taking 222ms to run, then I realized that I wrapped it in a quadruple for loop. So I converted my tile and patch double arrays to single ones. Then I subdivide my patch to determine which quadrant I'll be picking in(then subdivide that subdivision) and now I'm down to less than 1ms  Grin.
God, I love optimization success stories like this. =D

Myomyomyo.
Offline ziozio
« Reply #2025 - Posted 2015-04-01 20:16:27 »

I was playing around in OpenGL and accidentally made a flame thing:
http://gfycat.com/FlawlessSphericalFairybluebird

EDIT: I made it fancier Smiley
https://gfycat.com/GregariousPlumpJerboa

Very nice! what strategy do you use for the flame generation? My current method is quite basic (texture billboarded and then put through a particle system animator)
Offline ClaasJG

JGO Coder


Medals: 43



« Reply #2026 - Posted 2015-04-01 22:02:43 »

I learned about this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
import java.lang.annotation.*;
import java.util.Arrays;

public class Test {
   @Retention(RetentionPolicy.RUNTIME)
   @Target({ ElementType.METHOD })
   private static @interface Interface {
      String[] value() default "test"; // Hu? String[] foo = "ba"; ?
   }

   @Interface
   public static void main(final String... args) {
      System.out.println(Arrays.toString(Test.class.getMethods()[0]
            .getAnnotation(Interface.class).value()));
   }
}


-ClaasJG

My english has to be tweaked. Please show me my mistakes.
Offline Ecumene

JGO Kernel


Medals: 197
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Reply #2027 - Posted 2015-04-01 22:28:21 »

I've been busy the past few weeks.

 - Got free unity pro accounts for my entire school
 - Made a website for my school's art club (prototype @ http://ecumene.xyz/th-art)
 - Installed Gnome Shell, Ubuntu and I3 on my desktop (why haven't I heard of this before?)
 - Made an arduino beep on button presses, and print the letter "A" on an LCD screen
 - Made a linux network with 3 other PCs in my house that are woken up through LAN for general purpose
 - Made floppy drive music w/ a 5v power supply & an arduino

Offline Slyth2727
« Reply #2028 - Posted 2015-04-02 00:19:04 »

Installed OSX on my laptop and got a 25 second Rubiks solve. Pushing to sub 20!
Offline theagentd
« Reply #2029 - Posted 2015-04-02 00:25:27 »

I did some optimizations on the whole engine, but realized that my performance values were being skewered. An updated APU limited shader with 20% fewer instructions was running at the same speed as the old one sometimes. Seems like my computer is so full of dust that my GPUs are reaching 80 degrees and reducing their turbo clock rates to prevent overheating. Gonna have to dust it out before I can get accurate measurements.

Myomyomyo.
Offline Opiop
« Reply #2030 - Posted 2015-04-02 03:02:25 »

I've been busy the past few weeks.

 - Got free unity pro accounts for my entire school
 - Made a website for my school's art club (prototype @ http://ecumene.xyz/th-art)
 - Installed Gnome Shell, Ubuntu and I3 on my desktop (why haven't I heard of this before?)
 - Made an arduino beep on button presses, and print the letter "A" on an LCD screen
 - Made a linux network with 3 other PCs in my house that are woken up through LAN for general purpose
 - Made floppy drive music w/ a 5v power supply & an arduino
I like the website! Only thing I don't entirely like/looks weird to me is the really wide green contact button. I think it should be narrower!

Good job Smiley
Offline NegativeZero

JGO Kernel


Medals: 333
Exp: 1 month or less


Zero but not.


« Reply #2031 - Posted 2015-04-02 03:17:59 »

I was playing around in OpenGL and accidentally made a flame thing:
http://gfycat.com/FlawlessSphericalFairybluebird

EDIT: I made it fancier Smiley
https://gfycat.com/GregariousPlumpJerboa

Very nice! what strategy do you use for the flame generation? My current method is quite basic (texture billboarded and then put through a particle system animator)

Oops, accidentally hit Appreciate instead of Quote. Anyway.

My method is just to spawn untextured triangles that accelerate upwards and rotate. They have very low opacity so that you can only see colour when there's like 100 of them overlapping. Currently there will be ~1050 triangles at one time.

It's a lot more visible when I turn up the opacity


Offline boxsmith
« Reply #2032 - Posted 2015-04-02 03:35:46 »

A bunch of GUI work and a cheesy CRT shader.


Offline Ashedragon

JGO Coder


Medals: 27
Projects: 1
Exp: 4 years


The best person you could possibly be is yourself.


« Reply #2033 - Posted 2015-04-02 04:20:11 »

A bunch of GUI work and a cheesy CRT shader.

Today I realized how much I freakin' love CRT shaders.

boo
Offline SHC
« Reply #2034 - Posted 2015-04-02 16:17:21 »

Added an earth texture in the background to Blox.



Also solved z-fighting and lighting issues now.

Offline Roquen

JGO Kernel


Medals: 518



« Reply #2035 - Posted 2015-04-03 04:05:37 »

I brought you this pretty picture:
Click to Play


http://www.thisiscolossal.com/2015/04/dancing-droplets/
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 379
Projects: 2
Exp: 2 years


Resident Crazyman


« Reply #2036 - Posted 2015-04-03 07:56:23 »

I've been reworking my path finding to give all terrain movement costs (no more blocked tiles) so in the future monsters can plow through terrain if they can't find a clear path. I had to basically completely rewrite my path finding algo to use true A* pathfinding to do it correctly.

Here's a gfycat of the new algorithm in action (still not complete). The terrain cost on the rocks are a bit low for testing. The final idea/plan is generally, a monster will look for a path with no trees, rocks or other terrain. (These terrains will have an extremely high movement cost) If that path is not found (IE: You blocked in your whole village), it'll start tearing through the high movement cost tiles to get to you. Cheesy

http://gfycat.com/PortlyGentleBoaconstrictor

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Now on Steam!
LIVE-STREAMING DEVELOPMENT: http://www.hitbox.tv/rayvolution
Offline Gibbo3771

JGO Kernel


Medals: 128
Projects: 5
Exp: 1 year


Currently inactive on forums :(


« Reply #2037 - Posted 2015-04-03 11:43:36 »

I've been working on a project that was shelved back in November, I am doing a refactor and update on it and I was quite curious to just how flexible the Entity and Component code was.

So I made a new playable character that was literally a cloud, I was entertained for a whole 30 minutes just building playable objects.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Dev Crucio

Senior Devvie


Medals: 9
Projects: 1
Exp: 9 years


CaveGear


« Reply #2038 - Posted 2015-04-03 16:58:07 »

Added an earth texture in the background to Blox.

[...]

Also solved z-fighting and lighting issues now.

The platform where the red Block is standing on looks a bit weird on the left side no?

Twitch - See me developing CaveGear Smiley
Offline SHC
« Reply #2039 - Posted 2015-04-03 17:00:18 »

@Dev Crucio

Are you referring to the cone on the platform? I use cones to change the direction of the camera. This is intentional.

Pages: 1 ... 66 67 [68] 69 70 ... 206
  ignore  |  Print  
 
 

 
EgonOlsen (1599 views)
2018-06-10 19:43:48

EgonOlsen (1700 views)
2018-06-10 19:43:44

EgonOlsen (1154 views)
2018-06-10 19:43:20

DesertCoockie (1582 views)
2018-05-13 18:23:11

nelsongames (1182 views)
2018-04-24 18:15:36

nelsongames (1705 views)
2018-04-24 18:14:32

ivj94 (2473 views)
2018-03-24 14:47:39

ivj94 (1690 views)
2018-03-24 14:46:31

ivj94 (2771 views)
2018-03-24 14:43:53

Solater (911 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!