Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 21:22:38 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: Dodgin' Diamond 2X (60 FPS) -  (Read 1644 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 12:45:43
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« on: 18 May, 2012, 20:11:53 »
+1

This is an improved port of a SDL game (as such, it uses nSDL) called Dodgin' Diamond 2 (which has been ported to quite a few platforms EDIT: he even mentioned this port on his page Cool). Improved in this case means graphics improvements, gameplay improvements and bug fixes.

It's a vertical shooter à la SNES and has single player mode, co-op mode and high scores.

The controls are as follows:
- For player 1 you can use the whole numpad to move around (7 to go up-left, 6 to go right, etc.) and 5 is for shooting
- For player 2 the keys E,F,G,L,N,S,T,U are used to move around (the same way as player 1) and M is used for shooting
Press CTRL to pause the game.
Press I to show/hide FPS.

Here are a few screenshots:



EDIT: And a new one:


Gameplay video:
<a href="http://www.youtube.com/watch?v=PViYGm9jJ3A" target="_blank">http://www.youtube.com/watch?v=PViYGm9jJ3A</a>
The game is attached to this post. (note that it could have been at least twice as small as its current size if I had the time to rearrange the sprite sheet)

Thanks for Pomi for some CX-related testing.
Source code is here.

Click here for latest version (0.3.0)
« Last Edit: 31 January, 2013, 03:38:57 by hoffa » Logged
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 19:30:13
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2047


Total Post Ratings: +254

View Profile
« Reply #1 on: 19 May, 2012, 13:09:55 »
0

The controls are as follows:
- For player 1 you can use the whole numpad to move around (7 to go up-left, 6 to go right, etc.) and tab is for shooting
- For player 2 the keys H,I,J,O,Q,V,W,X are used to move around (the same way as player 1) and space is used for shooting
* Hayleia hides Tongue

Seriously, I tried this and I like it a lot Cheesy
The graphics are awesome, the keys are perfect, the speed is great,...
The only thing that I would like to see improved is the walls on the side: they are a bit dark and it is hard to see them.

edit: Bug report
When inputting a name for the hall of fame, the game detects a key when I push the key but also when I remove my finger from the key.
« Last Edit: 19 May, 2012, 15:50:00 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:08:33
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1722


Total Post Ratings: +368

View Profile WWW
« Reply #2 on: 19 May, 2012, 22:09:41 »
0

Great! Cheesy

We made a very enthusiastic news on TI-Planet:
http://tiplanet.org/forum/viewtopic.php?p=124488#p124488
Logged

TI-Planet co-admin.
TheNlightenedOne
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 21:10:06
Date Registered: 10 March, 2012, 20:05:21
Posts: 422


Total Post Ratings: +14

View Profile
« Reply #3 on: 20 May, 2012, 04:05:00 »
0

I kinda want to try this... it looks awesome!
Logged

"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)
Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 19:30:13
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2047


Total Post Ratings: +254

View Profile
« Reply #4 on: 22 May, 2012, 20:22:10 »
0

Bug report:
Pushing the keys 4,2 and O at the same time returns to the menu Big frown
Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 20:44:19
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1178


Total Post Ratings: +158

View Profile WWW
« Reply #5 on: 22 May, 2012, 21:11:32 »
0

same bugs as hayleia (cx cas)

this is soooo great, i'm really feeling sorry for my [tab] button ö but this is so cool, nice job Smiley
Logged

hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 12:45:43
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #6 on: 22 May, 2012, 21:13:20 »
0

Thanks for the bug reports Hayleia. Smiley

Here's an updated version. What's new:
- Brighter walls
- Fixed bug when inputting high score name
- Changed controls a bit (see first post)

Previous high scores should still be there.

As for the 4,2,O-bug, it's very strange and I'll have a look at it (not going to point fingers, but might be a bug in Ndless; as far as the code goes that shouldn't happen, nor should nSDL mix keys up or something). The controls have been moved a bit however so it shouldn't be an issue at this point. Please do tell me if the keys are not good, remember however that it should be relatively easy to have two players playing at the same time.
« Last Edit: 30 January, 2013, 21:25:04 by hoffa » Logged
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 12:45:43
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #7 on: 30 January, 2013, 01:24:39 »
0

Tiny update after a long pause.

Changes:
- Compiled with nSDL 1.1.1
- Changed background
- Added FPS counter (toggle with the I-key)
- Uhh... that's it

It runs at 30-40 FPS on CX, 50-60 FPS on Touchpad (but don't even bother with that one, the LCD is such a piece of shit it's only an ugly blurry mess). I haven't even bothered to optimize whatsoever.

Also a gameplay video:
EDIT: Check out the one below for a newer one

Source code available here.

Download attached.
« Last Edit: 30 January, 2013, 21:25:12 by hoffa » Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #8 on: 30 January, 2013, 01:37:56 »
0

That really looks great. Nice job porting this Smiley

For the Touch/Clickpad you should limit framerate to 15 (or allow the option to), because historically this is the framerate at which blurriness becomes acceptable, while still running decently smooth.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
epic7
Chopin!
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 04:18:45
Date Registered: 22 October, 2011, 01:45:43
Location: Northeast US
Posts: 2165


Total Post Ratings: +118

View Profile
« Reply #9 on: 30 January, 2013, 03:01:25 »
0

That's pretty awesome shocked
I need to learn how to use sdl Tongue
Logged



Current Projects:
TitleLanguageProgressStatus
DrillMiner    C (ndless)   35%         Active
?     C (ndless)   0%        Unconfirmed

Spoiler for Programming languages I currently know:
Java (Learning in AP Comp Sci)
C (Specifically Ndless)
Unity JavaScript
LabView (For FIRST robotics)
z80 ASM (Just a little bit Tongue)
hoffa
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 12:45:43
Date Registered: 28 May, 2011, 20:26:32
Posts: 302


Topic starter
Total Post Ratings: +115

View Profile
« Reply #10 on: 30 January, 2013, 20:25:12 »
+1

ALRIGHTY. I've tracked down one major bottleneck in nSDL. It was quite obvious but I never thought it would be such a slow-down. Calling any function that pumps the events (SDL_PollEvent(), SDL_GetKeyState(), whatever) seriously hurts performance in speed-critical code. Nothing can really be done about it, just don't use those functions where you need speed, instead stick to keyIsPressed() and whatnot (as most people have done so far in fact).

I changed all the in-game SDL event handling code to normal ndless-style key handling, and now the game jumped to nearly 60 FPS! It's a massive improvement. I was myself already quite impressed with what we had before, updating the whole screen and having multiple layers and everything, but I never expected that I could nearly double the framerate! I must have had too much radiation for breakfast...

Here's a video so you can see, it's much more of a shoot em up now (you can see the framerate in the last part of the video):

<a href="http://www.youtube.com/watch?v=PViYGm9jJ3A" target="_blank">http://www.youtube.com/watch?v=PViYGm9jJ3A</a>

DOWNLOAD ATTACHED.

* Dodgin' Diamond 2X.tns (1003.34 KB - downloaded 45 times.)
« Last Edit: 30 January, 2013, 21:31:28 by hoffa » Logged
ElementCoder
LV6 Super Member (Next: 500)
******
Online Online

Gender: Male
Last Login: Today at 21:05:42
Date Registered: 22 May, 2011, 17:28:58
Location: Netherlands, Drachten
Posts: 403


Total Post Ratings: +22

View Profile
« Reply #11 on: 30 January, 2013, 20:54:49 »
0

Wow that's awesome. I like the music feature Tongue I think my time to go learn C and SDL has come now Cheesy
Logged

Calculators owned: TI-Nspire ClickPad (no batteries though Tongue); TI-Nspire CX
Known languages: TI BASIC (Nspire); Java; Lua; C++
Spoiler for Random stuff:

NerdTests.com says I'm a Nerd God.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Omni search is down, use http://megapowers.net/v/search.htm instead.
MasterGeek
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 16 April, 2013, 15:17:32
Date Registered: 14 April, 2012, 09:59:26
Location: Canada
Posts: 24


Total Post Ratings: 0

View Profile
« Reply #12 on: 14 February, 2013, 04:35:48 »
0

Am I supposed to be getting 60 FPS on a Ti-Nspire CX? I only seem to be getting about 48. I have the latest version (0.3.0).
« Last Edit: 14 February, 2013, 04:37:18 by MasterGeek » Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #13 on: 14 February, 2013, 05:12:32 »
0

Did you use Nover first? I wouldn't be surprised if 60 FPS was in overclocked mode.

Also very nice looking, Hoffa Cheesy
« Last Edit: 14 February, 2013, 05:13:00 by DJ_O » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
MasterGeek
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 16 April, 2013, 15:17:32
Date Registered: 14 April, 2012, 09:59:26
Location: Canada
Posts: 24


Total Post Ratings: 0

View Profile
« Reply #14 on: 16 February, 2013, 22:57:15 »
0

I would say that the 60 FPS is overclocked. I tried playing this game when my calculator was overclocked to 252 MHz for the CPU and 65 MHz for the AHB and I got around 57-59. When I opened the FPS meter at the start of the game ,it briefly spiked all the way up to 89 FPS.

Also, is it just me or does one of those screenshots show an FPS of 206? 0.0
« Last Edit: 16 February, 2013, 23:05:27 by MasterGeek » Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.337 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.