SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
Presenting “Unnamed Game”
Basic Mechanics
 Overhead space shooter
 Control ship with arrow keys
 Press fire button to fire all of your guns at once
 Cells
    break off as a ship takes damage
    enemies are built from cells
    must be directly hit to be destroyed
 You must protect your brain cell – if it takes 3 hits,
  you’re dead!
Cell Types
 Basic Cell
    Does not shoot
    Provides cover for other cells
 Gun Cell
    Shoots a fast projectile in one direction
 Missile Cell
    Shoots a seeking missile
    Short lifespan
 Melee Cell
    Sword-like cell that must touch a cell to kill it
Behind the Scenes
 Multiple Child tree structure for ship
   Brain Cell is the root
   Hitting a cell destroys it, but releases children cells back
    into environment
         Can be retrieved by you or enemy
     

    Traversal used for most cell operations
         Drawing
     

         Shooting
     

         Collision detection
     

         Rotation and translation
     
Behind the Scenes
 Collision Detection
    Every bullet from every ship can collide with every other
     ship
    Time-based collision needed with high projectile speeds
     and small cell sizes
    Bounding circles used to minimize collision checks
Challenges Faced
 Mobile Game Development
   Pros:
       Easy to get started
   

       Java-based
   

       Netbeans Game Development tools
   

   Cons:
       Little memory (~1-4 MB heap size)
   

       Small screen
   

       Awkward controls
   

       Not completely portable among J2ME phones
   
Challenges Faced
 No floating point arithmetic
   Floating point math is not on all J2ME phones
   Used an open-source fixed-point library
   We use 64-bit fixed-point longs
        With 32-bit we did not have enough precision or range
    
Memory
 Use of the new keyword was expressly forbidden
  without a good reason to back it up
 Operations on vectors to avoid allocating memory
   Pair a plus with a minus
   Pair a multiply with a divide
   Minimize vector normalization (slow)
 Garbage collection is actually reasonably fast, but we
 still want to avoid using it
Challenges Faced
 Management
   Team members have other priorities (school work, jobs,
    etc.)
        Long term goals are ineffective
    

   Members come and go
     Code in small pieces to avoid losing work when a member
      leaves
   Short jamming sessions more effective
     Declare goals to reach at the end of a 5 – 10 hour session
     Fosters team atmosphere
     Peer coding helps members become familiar with code
Bugs and Hax
Bugs
 Can keep up with your
 own bullets



 Phantom ship
Hax
 The fixed-point arctan2 function has a bug
    Good solution – do some math and checks to
     compensate
    Bad solution – reorder the sprite rotation array so that
     the rotation works anyway
 Guess which one we did?
Future Plans
 Improve collision detection (esp. for melee cells)
 Work on single-player experience
 Tighten up the graphics on level 3…I mean, import the
  rest of the sprites and get a background
 Multiplayer over Bluetooth
 Port to Flash (better graphics, online multiplayer)

Mais conteúdo relacionado

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Penn Siggraph Games Development Game

  • 2. Basic Mechanics  Overhead space shooter  Control ship with arrow keys  Press fire button to fire all of your guns at once  Cells  break off as a ship takes damage  enemies are built from cells  must be directly hit to be destroyed  You must protect your brain cell – if it takes 3 hits, you’re dead!
  • 3. Cell Types  Basic Cell  Does not shoot  Provides cover for other cells  Gun Cell  Shoots a fast projectile in one direction  Missile Cell  Shoots a seeking missile  Short lifespan  Melee Cell  Sword-like cell that must touch a cell to kill it
  • 4. Behind the Scenes  Multiple Child tree structure for ship  Brain Cell is the root  Hitting a cell destroys it, but releases children cells back into environment Can be retrieved by you or enemy   Traversal used for most cell operations Drawing  Shooting  Collision detection  Rotation and translation 
  • 5. Behind the Scenes  Collision Detection  Every bullet from every ship can collide with every other ship  Time-based collision needed with high projectile speeds and small cell sizes  Bounding circles used to minimize collision checks
  • 6. Challenges Faced  Mobile Game Development  Pros: Easy to get started  Java-based  Netbeans Game Development tools   Cons: Little memory (~1-4 MB heap size)  Small screen  Awkward controls  Not completely portable among J2ME phones 
  • 7. Challenges Faced  No floating point arithmetic  Floating point math is not on all J2ME phones  Used an open-source fixed-point library  We use 64-bit fixed-point longs With 32-bit we did not have enough precision or range 
  • 8. Memory  Use of the new keyword was expressly forbidden without a good reason to back it up  Operations on vectors to avoid allocating memory  Pair a plus with a minus  Pair a multiply with a divide  Minimize vector normalization (slow)  Garbage collection is actually reasonably fast, but we still want to avoid using it
  • 9. Challenges Faced  Management  Team members have other priorities (school work, jobs, etc.) Long term goals are ineffective   Members come and go  Code in small pieces to avoid losing work when a member leaves  Short jamming sessions more effective  Declare goals to reach at the end of a 5 – 10 hour session  Fosters team atmosphere  Peer coding helps members become familiar with code
  • 11. Bugs  Can keep up with your own bullets  Phantom ship
  • 12. Hax  The fixed-point arctan2 function has a bug  Good solution – do some math and checks to compensate  Bad solution – reorder the sprite rotation array so that the rotation works anyway  Guess which one we did?
  • 13. Future Plans  Improve collision detection (esp. for melee cells)  Work on single-player experience  Tighten up the graphics on level 3…I mean, import the rest of the sprites and get a background  Multiplayer over Bluetooth  Port to Flash (better graphics, online multiplayer)