Search found 44 matches
- August 12th, 2020, 4:01 pm
- Forum: Everything
- Topic: Advanced C++ Tutorial 2 HW star overlapped question
- Replies: 3
- Views: 2889
Advanced C++ Tutorial 2 HW star overlapped question
I'm doing Advanced C++ Tutorial 2 homework. One of tasks is that generating the stars which do not overlapped each other. I wrote following code to check overlapped stars, but it's not working (the star still overlapped). What's wrong with my code? bool Game::IsOverlapped(Vec2 position, float radius...
- May 14th, 2020, 2:50 am
- Forum: Everything
- Topic: What's the right way to calculate time? Counting by time or counting by frame?
- Replies: 2
- Views: 2154
Re: What's the right way to calculate time? Counting by time or counting by frame?
Considering you are wanting time elapsed since last check, you should use time. Time is constant whereas frame rate is not. For instance, let's say you have a 140Hz monitor. Your frame rate is capped at 140 frames per second if v-sync is enabled whereas my monitor is 60Hz, so I'm capped at 60 frame...
- May 10th, 2020, 11:06 pm
- Forum: Everything
- Topic: What's the right way to calculate time? Counting by time or counting by frame?
- Replies: 2
- Views: 2154
What's the right way to calculate time? Counting by time or counting by frame?
Hi, guys, I found out there's two ways to calculate time. One is counting by time another counting by frame. Let's say we need to move a character in a period of time. One way we could count by time Like this: dt = ft.GetFrameTime(); gameTime += dt; if (gameTime >= 1.0f) { gameTime -= 1.0f; characte...
- April 24th, 2020, 1:25 am
- Forum: Everything
- Topic: My first release!
- Replies: 9
- Views: 4713
Re: My first release!
Hi, Aleksiy
I play your game, and it was amazing!!
I wonder how long did you take when you start to learn until you finish the game?
I play your game, and it was amazing!!
I wonder how long did you take when you start to learn until you finish the game?
- April 23rd, 2020, 1:33 am
- Forum: Everything
- Topic: Help with my game? things appearing in wrong place
- Replies: 2
- Views: 2079
Re: Help with my game? things appearing in wrong place
Hi all, https://github.com/joeharris200882/Pong2020 the above is a link to my Pong game, nothing fancy, really just using it as a chance to practice logic, classes etc. Can someone help me out, I think I have two main problems (maybe more, who knows) 1. The player 1 and player 2 score meters are ap...
- April 20th, 2020, 10:36 am
- Forum: Everything
- Topic: My first game!
- Replies: 9
- Views: 5368
Re: My first game!
This is my score. You are batter than me XDkrautersuppe wrote: ↑April 19th, 2020, 10:48 amDamn i hoped i would beat your scoreboard array but it was longer than i initially thought :p
tetris_wilson_huang.png
- April 20th, 2020, 6:13 am
- Forum: Everything
- Topic: My first game!
- Replies: 9
- Views: 5368
Re: My first game!
Oh sh*t! Thanks to krautersuppe, I found the score counting bug. The link has been updated!
- April 20th, 2020, 6:02 am
- Forum: Everything
- Topic: My first game!
- Replies: 9
- Views: 5368
Re: My first game!
The max score is 999999krautersuppe wrote: ↑April 19th, 2020, 10:48 amDamn i hoped i would beat your scoreboard array but it was longer than i initially thought :p
tetris_wilson_huang.png
- March 30th, 2020, 12:11 am
- Forum: Everything
- Topic: My first game!
- Replies: 9
- Views: 5368
Re: My first game!
I found a bug. The link has been updated.
- March 9th, 2020, 12:30 pm
- Forum: Everything
- Topic: VS 2017 build tool
- Replies: 1
- Views: 1435
Re: VS 2017 build tool
If you want to build Chili Framework without upgrade project (Retarget project). You need to install "MSVC v140 - VS 2015 C++ Build Tool" and "Windows 8.1 SDK".
MSVC v140 - VS 2015 C++ Build Tool is in the VS Installer, and Windows 8.1 SDK is in the VS 2017 build tool
MSVC v140 - VS 2015 C++ Build Tool is in the VS Installer, and Windows 8.1 SDK is in the VS 2017 build tool