SlideShare a Scribd company logo
GPG Study
   2.0



            visualwizard
2.0 예측 가능한 난수

   & More
2.0 예측 가능한 난수




  예측이 불가능한 난수는 게임의 컨텐츠가 무한하도록 느끼게 하는 기법

  -> 디아블로 인던 생성기




  저장된 게임(galaxy)을 불러와서 다시 시작할 때 전혀 다른 우주가 생성되지
  않아야 한다.

  -> 예측 가능한 난수
2.0 예측 가능한 난수




  예측 가능한 난수


  srand( seed )
  rand()

  seed값이 동일하다면 생성되는 난수열은 항상 같다.
2.0 예측 가능한 난수
2.0 예측 가능한 난수
2.0 예측 가능한 난수




                int[SIZE_Y][SIZE_X]

                의 저장공간 이 필요




                seed값이 동일하다면 저장하지
                않아도 특정 위치에 값이 존재하는지
                알 수 있다.
2.0 예측 가능한 난수



 1의 값들을 Star라고 가정하자. 그리고 Star는 여러 개의 Planet을 가진다.

 Planet의 수는 난수로 결정된다. Seed는 Star의 위치 좌표 값.

 따라서 각 Star가 갖는 Planet의 수는 랜덤하게 결정된다.


 Galaxy -> Star -> Planet 으로 게임의 무대를 완성




 객체들간의 속성과 게임 플레이의 상태에 기반하여 시드를 결정하자
2.0 예측 가능한 난수




 & More




  랜덤 한 수 구하기 – 메르센 트위스터
  http://agebreak.tistory.com/49




  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2
& More – 메르센 트위스터
& More – Boost::Random



  http://boost.cppll.jp/HEAD/libs/random/random-generators.html
& More – 결정론적 시스템



  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2
& More – 결정론적 시스템



  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2
& More – 결정론적 시스템



  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2
& More – 결정론적 시스템



  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2
& More – 결정론적 시스템



  결정론적 시스템
  http://www.slideshare.net/buffmail/replay-system-2

More Related Content

Featured

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
Marius Sescu
 
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
Expeed Software
 
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
Pixeldarts
 
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
 
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
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
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
Neil Kimberley
 
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)
contently
 
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
Albert Qian
 
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)
 
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
Search Engine Journal
 
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
SpeakerHub
 
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
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
Tessa Mero
 
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
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
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
MindGenius
 
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...
RachelPearson36
 

Featured (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...
 

Gpg1_2.0

  • 1. GPG Study 2.0 visualwizard
  • 2. 2.0 예측 가능한 난수 & More
  • 3. 2.0 예측 가능한 난수 예측이 불가능한 난수는 게임의 컨텐츠가 무한하도록 느끼게 하는 기법 -> 디아블로 인던 생성기 저장된 게임(galaxy)을 불러와서 다시 시작할 때 전혀 다른 우주가 생성되지 않아야 한다. -> 예측 가능한 난수
  • 4. 2.0 예측 가능한 난수 예측 가능한 난수 srand( seed ) rand() seed값이 동일하다면 생성되는 난수열은 항상 같다.
  • 7. 2.0 예측 가능한 난수 int[SIZE_Y][SIZE_X] 의 저장공간 이 필요 seed값이 동일하다면 저장하지 않아도 특정 위치에 값이 존재하는지 알 수 있다.
  • 8. 2.0 예측 가능한 난수 1의 값들을 Star라고 가정하자. 그리고 Star는 여러 개의 Planet을 가진다. Planet의 수는 난수로 결정된다. Seed는 Star의 위치 좌표 값. 따라서 각 Star가 갖는 Planet의 수는 랜덤하게 결정된다. Galaxy -> Star -> Planet 으로 게임의 무대를 완성 객체들간의 속성과 게임 플레이의 상태에 기반하여 시드를 결정하자
  • 9. 2.0 예측 가능한 난수 & More 랜덤 한 수 구하기 – 메르센 트위스터 http://agebreak.tistory.com/49 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2
  • 10. & More – 메르센 트위스터
  • 11. & More – Boost::Random http://boost.cppll.jp/HEAD/libs/random/random-generators.html
  • 12. & More – 결정론적 시스템 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2
  • 13. & More – 결정론적 시스템 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2
  • 14. & More – 결정론적 시스템 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2
  • 15. & More – 결정론적 시스템 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2
  • 16. & More – 결정론적 시스템 결정론적 시스템 http://www.slideshare.net/buffmail/replay-system-2