Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (707)
Games in Android Showcase (206)
games submitted by our members
Games in WIP (781)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 40
1  Java Game APIs & Engines / Android / Re: OpenGL ES 2.0 - Interaction between the game loop and the rendering thread on: 2017-01-13 14:11:40
I'm doing all my game logic in the rendering thread. The actual rendering happens in parallel on the GPU anyway (at least to a degree), so there's not much to gain (if anything) by doing the logic in another thread.
For most games, the logic isn't that time consuming anyway. I once tried to separate them into two threads and the performance benefit was null, nada, niente...none at all. My current game (https://play.google.com/store/apps/details?id=com.threed.jpct.games.rpg) supports the option to do some heavier calculations in a different thread, but it's disabled in production code, because it just isn't worth it.
2  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-26 20:21:59
OK, so here you go. All screen shots are taken on the Redmi Note 2. The Nexus 5X looks similar albeit it doesn't render these flashy hands (but nothing instead). The device also crashes with an OOM when loading Tel Mora, you should have gotten the error report for that one:

The is the menu:
http://jpct.de/pix/sorrowind/menu.png


These are the dwarf ruins:
http://jpct.de/pix/sorrowind/dwarf_ruins.png


And this is combat in a cave:
http://jpct.de/pix/sorrowind/combat_cave.png
3  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-26 10:53:59
I've just updated to the latest version. It kinda works now, i.e. it doesn't crash anymore. But all I'm seeing after loading is either the skybox or the skybox, the player's torso and some crazy polygons below it. I'll try to upload some shots later.
4  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-26 09:51:55
No, it's a clean GOTY install. In fact, I bought it just for this purpose, because I couldn't install my old version anymore on Windows 10. I'll post a screen shot later.
Maybe it has something to do with the location of the files? I copied the Morrowind directory into the download folder.
5  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-25 10:31:24
1.5 still crashes, just earlier (around stage 2).
6  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-24 21:28:34
I have 1.4 installed already. After selecting a starting location (it doesn't seem to matter which one), it manages to get to stage 5 and then crashes with the StringIndex... Exception.
7  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-23 17:29:48
Just updated to the new Version, but it keeps crashing...
8  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-12-19 19:04:42
I tried it on two different devices (Nexus 5X and Redmi Note 2) and the loading process crashes on both with some StringIndexOutOfBounds. You should have gotten the bug reports in the play store. I used Morrowind GOTY edition, in case that matters.
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-11 22:09:58
As "promised" 3 days ago, I wrote a 6502 cpu emulation to execute my assembler programs. Of course, one can combine this with the BASIC V2 interpreter that I did a few months ago.
So the ultimate goal has been reached: I can now do HTML-templating not only in good old Commodore Basic but I can use assembler in the templates as well (for speed, you know... Wink ).
After all, I would still rather code this way than using PHP...

Example template:
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  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
<!DOCTYPE html>
<html>
<head>
<title><?cbm 10 PRINT "Title: ";TT$?></title>
<?cbm:asm
   *=$c000
   MEMORY = $2000

                ldx #$00          
   loop         lda TEXT,X        
                beq end          
                sta MEMORY,X        
                inx              
                jmp loop

   end          rts              

   TEXT        .text "<li>C64 rocks!</li>"
               .byte $00
?>
</head>
<body>
   A nice looking list:
   <ul>
   <?cbm
      20 FOR I=1 TO CN
   ?>
   <li><?cbm 25 PRINT NA$;":";I;?></li>
   <?cbm
      30 IF I=5 THEN GOSUB 100
   ?>
   <!-- YEAH -->
   <?cbm
      40 NEXT I
      45 GOSUB 300
      50 GOTO 500
      99 REM SUBROUTINE
      100 PRINT"<li>Five is a nice number</li>":RETURN
      200 REM ---
      210 REM run assembler code and print out the result
      300 SYS 49152
      310 FOR I=8192 TO 8210:PRINTCHR$(PEEK(I));:NEXT
      320 RETURN
      500 REM --- end of basic program
   ?>
   </ul>
</body>
</html>

10  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-11 21:14:54
People say it's for reflowing, but i'm not convinced at all.
Neither am I. But a german print magazine had a test a few months ago and it helped for some cards. So if it's dead anyway, it might be worth a try. Just keep in mind that the card might emit all kinds of funny chemicals when being baked... Grin
11  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-11 09:26:14
- Seemingly fried one of my GPUs. It starts to artifact and driver crash under load. My second one seems fine though.
Which model/chip is that? If it's broken anyway, you might consider to bake it in the oven. There's a slight chance that this helps.
12  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-12-08 22:32:25
I wrote a symbolic assembler for 6502 machine code in Java. It can turn this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
*=$c000
BSOUT = $ffd2

start        lda #147
             jsr BSOUT

             ldx #03
             ldy #10
             clc
             jsr $fff0

             ldx #$00
loop         lda $c01c,X
             beq end
             jsr BSOUT
             inx
             jmp loop

end          rts


into this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
.c000   a9 93 
.c002   20 d2 ff
.c005   a2 03
.c007   a0 0a
.c009   18
.c00a   20 f0 ff
.c00d   a2 00
.c00f   bd 1c c0
.c012   f0 07
.c014   20 d2 ff
.c017   e8
.c018   4c 0f c0
.c01b   60


Next step: Write a simple 6502 CPU emulation to execute the programs.

BTW: I've no idea why I'm doing this... Huh
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-11-26 15:44:52
Fidel Castro is dead at the age of 90.
That's what you did today?
14  Java Game APIs & Engines / OpenGL Development / Re: Vertex cache shenanigans on: 2016-09-13 14:43:38
Radeon HD 290X for the sake of completeness:

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  
Batch size test invocations: 131072 / 50331648
Calculated vertex cache batch size: 384

Cache size 1 invocation test: 131072 / 50331648
Cache size 2 invocation test: 262144 / 50331648
Cache size 3 invocation test: 393216 / 50331648
Cache size 4 invocation test: 524288 / 50331648
Cache size 5 invocation test: 655360 / 50331648
Cache size 6 invocation test: 786432 / 50331648
Cache size 7 invocation test: 917504 / 50331648
Cache size 8 invocation test: 1048576 / 50331648
Cache size 9 invocation test: 1179648 / 50331648
Cache size 10 invocation test: 1310720 / 50331648
Cache size 11 invocation test: 1441792 / 50331648
Cache size 12 invocation test: 1572864 / 50331648
Cache size 13 invocation test: 1703936 / 50331648
Cache size 14 invocation test: 1835008 / 50331648
Cache size 15 invocation test: 6422528 / 50331648
Cache size 16 invocation test: 11927552 / 50331648
Cache size 17 invocation test: 50331648 / 50331648

Results:
  Renderer: AMD Radeon R9 200 Series
  Calculated vertex cache batch size: 384
  Cache size: 16
15  Games Center / WIP games, tools & toy projects / Re: FFP Software Rendered - GFX/Game Progress on: 2016-09-12 06:55:32
Looks nice, good work. But the anti-aliasing actually looks more like a simple blur filter to me... Huh
16  Discussions / General Discussions / Re: About The Mario Clone on: 2016-09-07 06:42:27
I thought that this might fit well here: https://github.com/gamejolt/dmca/blob/master/2016/2016-09-02-nintendo.md
17  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-08-24 21:31:10
It uses Java3D and JBullet.
Java3D on Android... Huh Such a thing exists?
18  Games Center / Android Showcase / Re: Morrowind on Android on: 2016-08-24 17:16:02
Nice work so far. The VM on Android has come a long way. I think it's actually quite good nowadays, even more because Dalvik is a thing of the past since Android 5. The current runtime is ART and it uses AOT compilation on Android 5 and 6 and a mix between JIT and AOT on Android 7.
19  Discussions / Miscellaneous Topics / Re: There is no hope on: 2016-08-22 07:10:35
The best thing are 1 star ratings without an explanation... There should be a requirement by Google to write something if you rate that low because there has to be a reason (even if its something like "I don't like your face") - otherwise how do you expect me to make it any better?
Well, even if a "reason" is being given, it's not helpful more often than it is. Stuff like "controls suck" doesn't help, but at least you can ask for more details (which you usually don't get). Stuff like "It's a f****g wh*** game written by the queen of f****g wh***s" (without the *, of course) helps even less. Then again, some people do post helpful reviews or even send you a mail with more details if you ask them.
20  Discussions / Miscellaneous Topics / Re: There is no hope on: 2016-08-21 14:05:19
You get reviews from all kinds of people on Google Play. Some are smart...some not so much. There's nothing you can do about that. Today, my (100% free) game got a one star rating, because it contains no ninjas... Huh
21  Discussions / General Discussions / Re: About The Mario Clone on: 2016-08-16 05:43:37
I don't understand why it is illegal to distribute the Mario Clone game but legal to distribute screenshots of the game.
Because it's actually not. Nintendo is famous for claiming copyright on everything Nintendo related...including screen shots. It depends on the context, of course. If you review a game and illustrate it with some screen shots, they might not care. But if you create a book that includes screen shots of their games, they very well might (like they did in the past). That's even more true for videos. Nintendo doesn't like videos of their games on YouTube either.
22  Discussions / General Discussions / Re: Why is Minecraft bad? on: 2016-08-11 21:03:12
Code written by others ALWAYS sucks. There's no exception! Simply because it's text written in a language. It's the same thing with natural language. Write a non-trivial text and give it to 10 people. You will get 11 different opinions back on why it sucks and how it can be improved. And not two of those will be alike.
23  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-08-04 21:14:32
I've finally released a version of Naroth that supports the russian language (and also includes new images for the character creation process). Both combined look like this:

24  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-25 14:02:04
After my last sandy C64 got hacked by a 2 yo Apple fanboy, I made a C64c today.

25  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-07-20 13:01:11
I'm on holiday. So I made a C64 out of sand.

26  Game Development / Newbie & Debugging Questions / Re: Fast color manipulation on: 2016-07-04 15:45:49
EgonOlsen, I think that those require more calculations than we started with since 'c' is not an array that is constant, it's different for every pixel
You could do it in fixed point math anyway, you 'just' have  to modify all your other code as well... Wink
27  Game Development / Newbie & Debugging Questions / Re: Fast color manipulation on: 2016-07-04 11:17:21
You could convert the values in c[] to the fixed-point variant of the reciprocal of c once. Like so:

1  
2  
3  
4  
for (int i = 0; i < c.length; i++)
{
    c[i] = (int) ((c[i] / 255f) * 65536);
}


And then use fixed-point math in the method:

1  
2  
3  
4  
5  
6  
7  
private static int manipulate2(int t, int[] c)
{
    int r = (((t >> 16) & 0xff) * c[0]) & 0xff0000;
    int g = ((((t >> 8) & 0xff) * c[1]) >> 8) & 0xff00;
    int b = (((t & 0xff) * c[2]) >> 16) & 0xff;
    return r | g | b;
}
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-30 08:44:02
Always amuses me how CBM BASIC can we written without any whitespace.
Yes. That makes parsing it quite different from modern languages. Simply because variable names combined with commands can lead to things that actually look like keywords. Like

1  
2  
3  
10 LE=1
15 R=20
20 FORI=LETOR

...merges LE and TO into the LET keyword (edit: and TO and R into OR)...or...

1  
2  
10 T=4
20 IFTAND5THEN

...merges T and AND into the function call TAN.

Some BASIC compilers had issues with this in the past and treated these cases as syntax errors, which they aren't.
29  Discussions / Miscellaneous Topics / Re: What I did today on: 2016-06-30 06:52:54
I finally finished (at least I hope so...) a Commodore BASIC V2 (https://www.c64-wiki.com/index.php/BASIC) compiler thingy. It takes any C64 BASIC program, compiles it into a kind of object tree (not directly into machine- or p-code) and executes the results. It's not an emulator, i.e it doesn't try to mimic the original hardware. It just runs the programs. If they are using actual hardware features, the results look strange sometimes but they run nonetheless.
The purpose of all this has still to be discovered. I guess one could use it as a scripting language for Java if one really wants to...
Execution time is around 10% of compiled Java code, but 10 times faster than similar (albeit more limited) BASIC interpreters that I tried.

Example program:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
10 FOR B=99 TO 1 STEP -1
20 GOSUB 100
30 T$=T$+" OF BEER ON THE WALL"
40 PRINT T$;", ";T$
50 PRINT "TAKE ONE DOWN AND PASS IT AROUND, "
60 IF B-1<=0 THEN PRINT "NO MORE BOTTLES OF BEER ON THE WALL":GOTO 80
70 GOSUB 200:PRINT " OF BEER ON THE WALL"
80 PRINT:NEXT
91 PRINT "GO TO THE STORE AND BUY SOME MORE, 99 BOTTLES OF BEER ON THE WALL"
92 END
100 T$=STR$(B)+" BOTTLE":IF B>1 THEN T$=T$+"S"
110 RETURN
200 A=B-1:PRINT STR$(A)+" BOTTLE";
210 IF A>1 THEN PRINT "S";
220 RETURN


..or a more condensed version:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
10 FORB=99TO1STEP-1:GOSUB100
20 T$=T$+" OF BEER ON THE WALL":PRINTT$;", ";T$:PRINT"TAKE ONE DOWN AND PASS IT AROUND, "
30 IFB-1<=0THENPRINT"NO MORE BOTTLES OF BEER ON THE WALL":GOTO50
40 GOSUB200:PRINT" OF BEER ON THE WALL"
50 PRINT:NEXT
60 PRINT"GO TO THE STORE AND BUY SOME MORE, 99 BOTTLES OF BEER ON THE WALL":END
100 T$=STR$(B)+" BOTTLE":IFB>1THENT$=T$+"S"
110 RETURN
200 A=B-1:PRINTSTR$(A)+" BOTTLE";:IFA>1THENPRINT"S";
210 RETURN


Edit: Some other valid program for your enjoyment (three FORs, but only one NEXT...)

1  
2  
3  
4  
10 FORI=0TO10:FORX=0TO20:FORY=5TO30
20 PRINTI,X,Y
100 NEXT
110 IFI<>10ORX<>20GOTO100
30  Discussions / Miscellaneous Topics / Re: Is it possible to get sued by Donald Trump if..... on: 2016-06-17 07:03:58
He's not the first one who uses it anyway:

Pages: [1] 2 3 ... 40
 
Galdo (286 views)
2017-01-12 13:44:09

Archive (449 views)
2017-01-02 05:31:41

0AndrewShepherd0 (909 views)
2016-12-16 03:58:39

0AndrewShepherd0 (846 views)
2016-12-15 21:50:57

Lunch (981 views)
2016-12-06 16:01:40

ral0r2 (1212 views)
2016-11-23 16:08:26

ClaasJG (1313 views)
2016-11-10 17:36:32

CoffeeChemist (1335 views)
2016-11-05 00:46:53

jay4842 (1417 views)
2016-11-01 19:04:52

theagentd (1223 views)
2016-10-24 17:51:53
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
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!