42bs Posted October 18 Share Posted October 18 Here now the Lynx port of the Jaguar raycaster. It is an early state, means just coded to be "working" not fast. Tested so far on Felix. demo.o 11 Quote Link to comment Share on other sites More sharing options...
42bs Posted October 18 Author Share Posted October 18 2nd version, optimized, with floor and "sky". Source: https://github.com/42Bastian/lynx_hacking/tree/master/raycast demo.o 8 Quote Link to comment Share on other sites More sharing options...
sage Posted October 19 Share Posted October 19 (edited) Goal: Edited October 19 by sage 1 1 Quote Link to comment Share on other sites More sharing options...
+Stephen Posted October 19 Share Posted October 19 Hmm - ponders an A8 conversion. If the Lynx can do it! Quote Link to comment Share on other sites More sharing options...
+karri Posted October 19 Share Posted October 19 Nice source. And excessive use of Suzy math operations. Thanks @42bs 1 Quote Link to comment Share on other sites More sharing options...
agradeneu Posted October 19 Share Posted October 19 (edited) 4 hours ago, Stephen said: Hmm - ponders an A8 conversion. If the Lynx can do it! Lynx has a Math coprocessor, and even the CPU has a higher clock than A8. Edited October 19 by agradeneu 1 Quote Link to comment Share on other sites More sharing options...
42bs Posted October 19 Author Share Posted October 19 2 hours ago, agradeneu said: Lynx has a Math coprocessor, and even the CPU has a higher clock than A8. The multiplications can likely be done by table look-up. Only the division to get the wall height is time consuming. And of course, SUZY can nicely draw a stripe. 2 1 Quote Link to comment Share on other sites More sharing options...
42bs Posted October 19 Author Share Posted October 19 And now with textures! I checked it and it runs on the Lynx II. demo.o 6 Quote Link to comment Share on other sites More sharing options...
sage Posted October 20 Share Posted October 20 impressed. just so bad that textures in y double the size than x. now please add some friendly faces Quote Link to comment Share on other sites More sharing options...
42bs Posted October 20 Author Share Posted October 20 2 hours ago, sage said: impressed. just so bad that textures in y double the size than x. I do not understand? You mean this: It depends on the FOV. 2 hours ago, sage said: now please add some friendly faces I need to add collision detection first. Currently one can run into a wall. Plus there are some glitches when you are close to the wall. Quote Link to comment Share on other sites More sharing options...
sage Posted October 20 Share Posted October 20 1 hour ago, 42bs said: I do not understand? You mean this: No what i mean is that lynx has sprites organized horizontally, thus, size byte plus data byte per line. limits the number of textures in memory by ~2. Quote Link to comment Share on other sites More sharing options...
sage Posted October 20 Share Posted October 20 1 hour ago, 42bs said: I need to add collision detection first. Currently one can run into a wall. Plus there are some glitches when you are close to the wall. i digged not that deeply into the code. do you use blocks or walls between blocks? Quote Link to comment Share on other sites More sharing options...
42bs Posted October 20 Author Share Posted October 20 3 minutes ago, sage said: No what i mean is that lynx has sprites organized horizontally, thus, size byte plus data byte per line. limits the number of textures in memory by ~2. Ah, yes, every stripe needs 2 bytes horizontally. Doing it vertical would have some positive effects: - Drawing is by increasion RAM address. - Sprite data optimized. - X resolution only 102 compared to 160 Quote Link to comment Share on other sites More sharing options...
42bs Posted October 20 Author Share Posted October 20 5 minutes ago, sage said: i digged not that deeply into the code. do you use blocks or walls between blocks? It is blocks. Latest version now checks the side, so every side could have a different texture. This might allow something like door which are on the edge. Quote Link to comment Share on other sites More sharing options...
42bs Posted October 20 Author Share Posted October 20 9 minutes ago, sage said: No what i mean is that lynx has sprites organized horizontally, thus, size byte plus data byte per line. limits the number of textures in memory by ~2. Another problem is the limited number of colors. So having many different textures needs a good GFX artist to handle this. Quote Link to comment Share on other sites More sharing options...
42bs Posted October 20 Author Share Posted October 20 (edited) One more update Fixed some texture glitches and added one more texture. ToDo: Sometimes textures are mirrored and still no collision check. demo.o Edited October 20 by 42bs 3 Quote Link to comment Share on other sites More sharing options...
+karri Posted October 21 Share Posted October 21 Really nice! Quote Link to comment Share on other sites More sharing options...
LordKraken Posted October 21 Share Posted October 21 ok now make the game Quote Link to comment Share on other sites More sharing options...
42bs Posted October 21 Author Share Posted October 21 4 minutes ago, LordKraken said: ok now make the game Still things to work out: - collision - doors - thin walls - windows (well low prio) and essential: sprites (enemies, shots, med packs, ammunition .. ) Hmm, I could have submitted it as a game to SVWE2024 if only I would have stopped myself from early publishing it. Quote Link to comment Share on other sites More sharing options...
+karri Posted October 21 Share Posted October 21 Or make it a completely different kind of game. Like memorize map of labyrint with traps. Hunt the wumpus. Escape room... 1 Quote Link to comment Share on other sites More sharing options...
42bs Posted October 21 Author Share Posted October 21 6 minutes ago, karri said: Or make it a completely different kind of game. Like memorize map of labyrint with traps. Hunt the wumpus. Escape room... I was thinking of 3D Pac-Man 1 Quote Link to comment Share on other sites More sharing options...
agradeneu Posted October 21 Share Posted October 21 Some sort of Dungeon crawler would be great! You would need some resources for disaplying images of monsters for the turn based battles. And gameplay mechanics are surely complex. Hope someone helps/picks this up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.