Hello,
Bought a calculator a few weeks ago. (Official reason: required for Calculus class. Unofficial reason: programmming games for the calculator)

I've recently learned C and started messing around with the toolchain's libraries.

I ended up with this:
https://imgur.com/2pYxGxJ

Controls can be easily configured:

Code:

CONTROLS c;
c.up_key = kb_KeyUp;
c.down_key = kb_KeyDown;
c.left_key = kb_KeyLeft;
c.right_key = kb_KeyRight;
c.action_key = kb_Key2nd;

By swapping out, for example, kb_KeyUp, a different key for the UP control can be chosen. Possibly even through a game menu.

The keys can be read like so:

Code:

if (c.up) {
    // do something when the UP key is pressed
}

These controls can be used for any game, not just platformers. I also tested this on my physical calculator, and it detects simultaneous keypresses admireably.

(it'd probably be a good idea to put the complete source code for this in a Github repo... I'll get to that...)

Any ideas as to where to take this? I'm open to suggestions, though I just got started with using the CE toolchain. Laughing

---------------------------- Edit ------------------------
I've decided to make a Pong/Breakout hybrid. It's fairly simple, doesn't require sprites, and not graphics-intensive.
Here's what I have so far:


I'm planning on adding:

    [ ] powerups (extra ball, laser shots from the pads, etc.)
    [ ] more levels
    [ ] an intro screen
    [ ] an end screen
    [ ] a death screen


Anything else I should add?

Haven't got a timeline of when I could get this done. Will post source code in a Github repo once I get an acceptable game going, promise!
----------------------------------------------------------


(I've got other two-player ideas in the works. I've got a life to maintain, so those will have to wait. Razz )
Looks like this slipped through the cracks, but good idea! It does seem like the server has an unfair disadvantage, however. Also, I'd recommend using CEmu's dedicated recording feature in the future, and using your keyboard instead of your mouse to input keys into CEmu (most of the letters match up to the alpha keys on the calc, and the arrows/function keys match as well). Good luck on the rest of this project.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement