remote pong game
play

Remote Pong Game Team: Fengyi Song, Mingrui Liu, Wanding Li, - PowerPoint PPT Presentation

Remote Pong Game Team: Fengyi Song, Mingrui Liu, Wanding Li, Junchao Zhang Project Overview Remote Pong Game Hardware: Image Display, Audio Effects Software: Game Logic, Device Driver Peripheral Controller: Wii remote controller


  1. Remote Pong Game Team: Fengyi Song, Mingrui Liu, Wanding Li, Junchao Zhang

  2. Project Overview • Remote Pong Game – Hardware: Image Display, Audio Effects – Software: Game Logic, Device Driver – Peripheral Controller: Wii remote controller

  3. Project Overview

  4. Audio Effects in Hardware • Operate at audio clock 11.3 Mhz( PLL ) • Use I2C protocol to configure codec SSM 2603 • Store audio samples in the on chip ROM • Two clocks derived from audio clock Channel clock: Send sample on one channel at a time. Bit clock: Send one bit of each sample.

  5. Audio Block Diagram

  6. Game UI Display sprite4 sprite1 sprite5 sprite2 sprite6 sprite3

  7. Game Over two 1-bit logic: zone & data (1/0)

  8. Software Process

  9. Wii Controller • Connected with Sockit using Bluetooth • Dongle as position sensor light • Software preparation – Libwiimote (C-library) – Linux Device Driver: BlueZ, libwiimote-dev – Scale the screen size from 1784*1272 to 512*480 by using wiimote open source API

  10. Game Logic Controller Game logic API: Write_ball(); • Game status: Wirte_on(); Write_life(); Write_paddle(); On,score,life,paddle coord, Write_over(); Write_score(); Ball coords,over Pthread_function() { mutex_lock; • Pthread: updating paddle coords; mutex_unlock; Updating paddle coords } Main() { • Check boarder: pthread(); while(1) { Check ball and brick updating game status; check boarder; } }

  11. Device Driver • Ioctl calls to write positions(x, y) of ball, paddle, scores, remaining lives, game_over and brick on and off. • VGA memory: 3-bit address, 32- bit words

  12. Experiences and Issues • Image Display – Complex display logic (sample duplicating) • Audio Effects – Synchronization between software and hardware • Game Logic – Multithreaded and synchronization (mutex) – Missing libraries(Bluez)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend