Join us on Discord!
You can help CodeWalrus stay online by donating here.

HP Prime Projects

Started by alexgt, April 17, 2015, 06:36:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alexgt

This is a place where you can post your small hp prime projects!

Here is Air Hockey my first game!
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Ooh I'll have to try this when I get a chance. Do you have screenshots? :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

I will have screen shots but is there any way to record your calc's screen because you have to use touch and it is hard in the PC?
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

#3
I use the HP Prime emulator. Make sure that you slow down the game to run at the same speed as the calc, though. And to record the screen you must use Camstudio.


EDIT: The game looks really fun to play. It just needs some slow downs on the emulator so that the game score doesn't end up being 576 - 395 after a single minute of play O.O. The idea is really awesome though, seriously. Because you hold the thing to hit the puck and drag it around the screen like with the real game. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

#4
Yeah I just spent hours tinkering with MOUSE() command and I found out that it uses two lists one for each finger so all I had to do was detect which list went to each side like this
If MOUSE(0)>160 Then
//Put list one for right side of the table
//Put list two for left side
Else
//Put list one for left side
//Put list two for right side
END;

The MOUSE() command outputs lists like this:
MOUSE(0) = X pos
MOUSE(1) = Y pos
MOUSE(2) = Original X
MOUSE(3) = Original Y
MOUSE(4) = Type of gesture (I ignore this most of the time because I just want the mouse position )
The second list is the same thing exept it starts at MOUSE(5) through MOUSE(9) :)

EDIT: About the score if you put the paddle where the puck spawns when you score you can create an infinite loop
(I am on my laptop so I cant record right now but do you have to use camstudio I would use OBS)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Ooh, pretty clever. I always forget that the Prime supports double finger gesturea.

I will need to study the command for when I do my Walrii catching game (I'll need to use pxl-test too)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

You are making a Walrii catching game I will have to play that!
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

CKH4

Walrii tycoon? Anyways does HP prime have its own proprietary language ( like how ti has ti-basic )?
  • Calculators owned: TI-83+, TI-84+


Dream of Omnimaga

Yes it does. It looks a bit like Basic and pascal and is compiled on-calc and it actually runs faster than some Nspire Lua or even ASM.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

CKH4

So does it compile like Axe where its only when you want it to or does it compiled at run time?
  • Calculators owned: TI-83+, TI-84+


alexgt

It compiles when you leave the program editor.

I will have a gif of my games soon (I am converting a MP4 of minecraft right now and I don't have much time on the CPU)
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

It compiles when exiting the program editor, as alex says. I can't wait for the screenie :D
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

CKH4

Oh, cool. I wish that ti had that (like Axe but the one program for both the executable and the source). Anyway I can't wait for the screenshot.
  • Calculators owned: TI-83+, TI-84+


alexgt

[spoiler][/spoiler]
Sorry the GIF is a little choppy I recorded to a MP4 Format than converted it to a GIF and then the quality was dampened :(.

DJ does CamStudio record strait to GIF format? That will be much easier in the future!

The Minecraft conversion failed so I am trying that again (It has a large size).

Thanks :) !
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Nope Camstudios only does AVI. Looks nice by the way. You should make thecolors like ice hockey rinks :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal