Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Bricklet Cars - A game using the Bricklets  (Read 3271 times)
0 Members and 1 Guest are viewing this topic.
Offline matheus23

JGO Kernel


Medals: 109
Projects: 3


You think about my Avatar right now!


« Posted 2012-12-28 15:08:36 »



Hey guys, this morning I had time to test out my wonderful xmas present. It's the education package of Bricklets and Bricks from tinkerforge.

This game is called "Bricklet Cars". It's written in java and it's a game, that's why I thought of publishing it here. I guess almost nobody of you has a bricklet at home, so I guess it doesn't make sense to give any jar to you.
This project didn't make any sense at all anyways. It could have been done much better, and in the end you need a pc connected to the bricklet anyways Grin

Why that?
The bricklet come with a bit of software: The Bricklet Daemon (runs on all systems).
The daemon communicates with the Bricklet over USB. You can see it as a driver... a python driver... for the bricklet.
The daemon also listens on the 4223 port for messages from applications. They use a super easy protocol for executing super easy functions, which tell the bricklet what to do, or return some input.
Around that Protocol they built lots of libraries in all kinds of languages. For example Java. Using a simple Tinkerforge.jar I am able to communicate with the brick over TCP/IP.
Now actually I don't run the game on my brick. I run it on my PC. There it continues getting and sending messages from and to the brick daemon, which sends messages to the brick, which sends messages to the bricklets (brick = part with the "super"-cpu of the bricklet system, bricklets = input / output stuff, for example joystick, LCD display, Linear potentiometer, temperature sensor, ambient light sensor, digital IO and much much more).

So I have my application running on the pc doing all the stuff and the Bricklet giving the Joystick input to the pc and getting the information about what to print to the LCD display from the pc.

Here is a vid of the game or you wouldn't see anything. I think of building the same game in the Console, but therefore I have to learn to use JCurses somehow... I can't "overwrite" stuff in the console with the usual java :/

<a href="http://www.youtube.com/v/om7r8Be99DI?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/om7r8Be99DI?version=3&amp;hl=en_US&amp;start=</a>

I'm sorry. You almost can't see anything at all... This is the best video camera I can use... Hopefully I'll be able to create that console version soon Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline PeterNicholson
« Reply #1 - Posted 2012-12-28 16:52:54 »

Is that Bricklet, a credit card sized, educational micro computer like rasberryPie?  Clueless

Subscribe to me on YouTube: http://youtube.com/javaprogrammerguy
Offline matheus23

JGO Kernel


Medals: 109
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2012-12-28 16:58:47 »

Actually... in the video you can't see the brick from the bricklet system itself. You can only see the LCD display and the Joystick connected to it and the cables.

Yes, the tinkerforge brick is somehow something comparable to the raspberry PI. But it's very different. Not only the architecture, but also the way you use the tinkerforge brick is very different. It itself doesn't run your code. It runs its own operating system doing what it gets told by the USB connection, and therefore the PC.

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline nsigma
« Reply #3 - Posted 2012-12-28 18:14:16 »

Sweet!!!  Grin

Next Praxis version has TinkerForge bindings.  I think they're great.  I've only got the starter kit - must get some more things!  Don't have the joystick so couldn't use your code as is if you posted, though I have the rotary poti so might be adaptable.

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline matheus23

JGO Kernel


Medals: 109
Projects: 3


You think about my Avatar right now!


« Reply #4 - Posted 2012-12-28 18:22:42 »

Sweet!!!  Grin

Next Praxis version has TinkerForge bindings.  I think they're great.  I've only got the starter kit - must get some more things!  Don't have the joystick so couldn't use your code as is if you posted, though I have the rotary poti so might be adaptable.

Hey! There are guys out there having Bricklets too? Cheesy

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline nsigma
« Reply #5 - Posted 2013-01-07 12:06:35 »

Hey! There are guys out there having Bricklets too? Cheesy

http://www.youtube.com/watch?v=V5-JNs4wkxQ

I'll stop spamming your post now!  Grin

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2013-01-08 01:06:17 »

That is too freaking cool......

Offline nsigma
« Reply #7 - Posted 2013-10-17 14:13:32 »

I'll stop spamming your post now!  Grin

OK, I lied - forgive me!  Wink

Lot's of stuff going on in the Praxis LIVE and TinkerForge area at the moment.  Hope you're still having fun with them.

http://praxisintermedia.wordpress.com/2013/10/16/visual-tinkerforge/

<a href="http://www.youtube.com/v/n2OOZsY-mj0?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/n2OOZsY-mj0?version=3&amp;hl=en_US&amp;start=</a>

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Pages: [1]
  ignore  |  Print  
 
 

 
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!