That looks so cool o/ keep it up !
You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server
Administration Center
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#1
[Inactive] X3D (TI-89/92+/v200/Nspire/PC) / Re: X3D - A 3D engine for TI68k & Nspire Calculators
July 30, 2017, 12:30:24 PM #2
Randomness / Re: The ultimate solution
July 20, 2017, 12:11:23 PM
Instructions unclear, still 100% straight, abort mission
#3
[Inactive] Zarmina (PC) / Re: Zarmina
November 26, 2016, 07:05:15 PM
Well if you want some pumping metal tunes I guess I can help.
#4
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 07, 2016, 11:27:48 PM
Well that's weird. It seems to be fetching the correct SDL2 lib files (see the /nix/ part) but writing in the wrong obj directories (see the /win/ part). What version of Linux are you using ? Also, can you quote me the first few lines (10 or so) of running man make ?
#5
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 07, 2016, 01:49:33 AM
You're working on Linux right ? Then you should run make linux, not make, that's for Windows.
#6
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 06, 2016, 12:38:40 AM
Yeah those are the most commonly used danmaku coontrols. I kinda liked my left-handed I,O,P though glad you like my game anyway.
And wow the home directory thing sounds bad. Good luck with that, although if all you're getting is a permission denied, you should try sudo-ing it up.
And wow the home directory thing sounds bad. Good luck with that, although if all you're getting is a permission denied, you should try sudo-ing it up.
#7
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 04, 2016, 02:01:15 AM
I mean you get infinite continues, so you can finish the game no problem you'll get 0 points though, obviously, because your score and max chains are resetted on every continue.
@Jkolade936 can you test my build ? I don't have a Linux machine available unfortunately so you'll have to compile it yourself. It should be easy though, just download the source code as a zip ("Clone or Download" button), extract it somewhere and run make linux in its directory from a terminal. You can then run bin/nix/nKaruga.
EDIT : if you guys want a challenge, try to beat my highscore of over 4 million points after level 2. I did that by getting every single possible score chain from the first level and most of them in the second one (while not doing in the process, except maybe against the second boss).
@Jkolade936 can you test my build ? I don't have a Linux machine available unfortunately so you'll have to compile it yourself. It should be easy though, just download the source code as a zip ("Clone or Download" button), extract it somewhere and run make linux in its directory from a terminal. You can then run bin/nix/nKaruga.
EDIT : if you guys want a challenge, try to beat my highscore of over 4 million points after level 2. I did that by getting every single possible score chain from the first level and most of them in the second one (while not doing in the process, except maybe against the second boss).
#8
PC, Mac & Vintage Computers / Re: Claw development system, a multiplatform programming platform
November 04, 2016, 12:10:55 AMQuote from: DJ Omnimaga on October 27, 2016, 07:05:22 PMHum ... that was me and that was Jetpack 8x+ too.
Also that idea reminds me of how persalteas managed to release an Axe game for the TI-82 Stats/83. Axe is not available for the TI-82 Stats/83, so basically he grabbed the hexadecimal after disassembling the game then modified what's necessary to become compatible with the older calculator, then he was set.
@E37 you might want to take a look at my PageSwap axiom. It should be somewhere on Omnimaga.
#9
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 03, 2016, 09:46:45 AM
Well I mean if you're not gonna make a pull request you're just gonna have your fork sitting there and you'll need to keep it up-to-date with my version. Although I wouldn't advise you to do an actual pull request because it doesn't meet my requirements for the game, that is, to be able to work on it and play it without sudo rights.
Congrats on the GCW0 port though, that looks cool. Just like Juju added the Mac target, it would be nice if you could add a target for that without rewriting all of my toolchain
Congrats on the GCW0 port though, that looks cool. Just like Juju added the Mac target, it would be nice if you could add a target for that without rewriting all of my toolchain
#10
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 02, 2016, 05:50:38 PM
I quickly looked at it and yeah, that's a handful of really horrible hacks you've put together >_>
I didn't know software rendering was that slow with SDL2. Since I'm constantly capping at 60 FPS on my machine I didn't notice, and I assumed it would be fine since the game did run completely fine on the TI-Nspire (so it's really not how I do things). That makes me think that I should eventually use a HARDWARE_RENDER define and rewrite a new version of n2DLib that uses SDL2's HW rendering capabilities when that define is ... well, defined.
Also, I haven't tried, but your implementation of drawDecimal is supposed to break (https://github.com/gameblabla/nKaruga/blob/newn2dlib/n2dlib/SDL2/n2DLib.c#L505). It's an int we're talking about, it can have up to 10 digits, not 6 (11 counting the minus sign).
Also, your rotations only look better because SDL2 renders them on a 640x480 window, when n2DLib does it on a 320x240 buffer. If you look closely in your screenshot, you can see that the rotations use what should technically be sub-pixel measures, but isn't because of the scaling up.
So yeah, as I said, it kind of defeats the whole point of me making the game but I will provide a flag to enable hardware rendering eventually. That will also permit me to rewrite hardware rendering with a better understanding of the existing code, thus resulting in a cleaner result (supposedly). I'm not saying I'll be doing this anytime soon (probably after I'm done with it, since it's mostly just changing the way images are loaded and rewriting most of n2DLib's drawing functions), but it will happen.
I didn't know software rendering was that slow with SDL2. Since I'm constantly capping at 60 FPS on my machine I didn't notice, and I assumed it would be fine since the game did run completely fine on the TI-Nspire (so it's really not how I do things). That makes me think that I should eventually use a HARDWARE_RENDER define and rewrite a new version of n2DLib that uses SDL2's HW rendering capabilities when that define is ... well, defined.
Also, I haven't tried, but your implementation of drawDecimal is supposed to break (https://github.com/gameblabla/nKaruga/blob/newn2dlib/n2dlib/SDL2/n2DLib.c#L505). It's an int we're talking about, it can have up to 10 digits, not 6 (11 counting the minus sign).
Also, your rotations only look better because SDL2 renders them on a 640x480 window, when n2DLib does it on a 320x240 buffer. If you look closely in your screenshot, you can see that the rotations use what should technically be sub-pixel measures, but isn't because of the scaling up.
So yeah, as I said, it kind of defeats the whole point of me making the game but I will provide a flag to enable hardware rendering eventually. That will also permit me to rewrite hardware rendering with a better understanding of the existing code, thus resulting in a cleaner result (supposedly). I'm not saying I'll be doing this anytime soon (probably after I'm done with it, since it's mostly just changing the way images are loaded and rewriting most of n2DLib's drawing functions), but it will happen.
#11
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 01, 2016, 02:22:41 PM
Well I don't know. Since I'm going the "all software rendering" route, it's probably not going to be very efficient, but I guess one's gotta try.
#12
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
November 01, 2016, 11:27:49 AM
Alright, yesterday I found why it was crashing when toggling fullscreen, turns out it's an actual bug with the SDL2 Direct3D renderer. That's fixed now, so you'll be able to press F to toggle between windowed and fullscreen mode.
#13
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
October 28, 2016, 09:17:20 PM
Yeah, GCC allows that with -fpermissive, and I find it useful and practical so I use it. Thanks for trying.
#14
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
October 28, 2016, 08:28:25 PM
Wait, you got nKaruga running at 300 FPS ? How even is that possible ? It shouldn't be.
Also, you should try the code I posted above.
Also, you should try the code I posted above.
#15
PC, Mac & Vintage Computers / Re: nKaruga, PC demake of Ikaruga (ported from TI-Nspire)
October 28, 2016, 07:25:39 PM
Bump,
So I ran tests to see which of the two updateScreen() routines were faster, turns out that the memcpy version slows down the game by 5 FPS when uncapped (110 vs 115) compared to my own (now reworked) version.
So I ran tests to see which of the two updateScreen() routines were faster, turns out that the memcpy version slows down the game by 5 FPS when uncapped (110 vs 115) compared to my own (now reworked) version.
Code Select
void updateScreen()
{
int di;
void *pixels;
void *buf = BUFF_BASE_ADDRESS; // cast to void*
int pitch;
SDL_LockTexture(MAIN_SCREEN, NULL, &pixels, &pitch);
for (di = 0; di < 320 * 240 * sizeof(unsigned short); di += sizeof(unsigned int))
*(unsigned int*)(pixels + di) = *(unsigned int*)(buf + di);
SDL_UnlockTexture(MAIN_SCREEN);
SDL_RenderCopy(sdlRenderer, MAIN_SCREEN, NULL, NULL);
SDL_RenderPresent(sdlRenderer);
updateKeys();
}
Website statistics
MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal