Search found 22 matches

by WilsonHuang
February 8th, 2020, 3:47 pm
Forum: Everything
Topic: My first game!
Replies: 3
Views: 101

Re: My first game!

Cool stuff man. Got some nice polish on this one. Sound effects sound like they are from Tetris 99 :D The animation for clearing is nice too. I think the input on the left/right movement is a little sluggish. Rotation is fine, but fast dropping maybe a little to fast. Also, how are you generating t...
by WilsonHuang
February 6th, 2020, 2:05 am
Forum: Everything
Topic: Problem downloading Visual Studio 2019
Replies: 1
Views: 74

Re: Problem downloading Visual Studio 2019

I didn't encounter the problem. Did you run the setup as Administrator?
by WilsonHuang
February 6th, 2020, 2:00 am
Forum: Everything
Topic: My first game!
Replies: 3
Views: 101

My first game!

Thanks Chili's tutorial. Here's my first game ever made, Tetris. I can't believe I finish it by myself! :D :D My next project will be Puyo Puyo. I hope I have perseverance to finish it! https://mega.nz/#!cJ9iHChI!uF6aHEzlSbEQaLQbtB-bqyrDgl7Nn709ZLqbScJXS0Y How To Control ============== Move: Arrow K...
by WilsonHuang
January 22nd, 2020, 1:51 am
Forum: Everything
Topic: Intermediate Tutorial 21 Bonus part cannot build for x86 platform
Replies: 9
Views: 140

Re: Intermediate Tutorial 21 Bonus part cannot build for x86 platform

If you have something like: #define NPOO 100 Then yes, but in this case it's just a flag that if defined before Graphics.h allow the template extern lines be shown, otherwise hide the lines of code. Developers use this technique to control compilation for different operating systems for example. #I...
by WilsonHuang
January 21st, 2020, 1:09 pm
Forum: Everything
Topic: Intermediate Tutorial 21 Bonus part cannot build for x86 platform
Replies: 9
Views: 140

Re: Intermediate Tutorial 21 Bonus part cannot build for x86 platform

Well, you're right, it does not compile in x86 for some reason. I tried checking the properties and they are relatively the same. The issue seems to be with the order in which files are compiled. What I mean is the GOD_GRAPHICS macro is defined in GraphicsD.cpp. If you have made it this far in the ...
by WilsonHuang
January 20th, 2020, 1:06 pm
Forum: Everything
Topic: Intermediate Tutorial 21 Bonus part cannot build for x86 platform
Replies: 9
Views: 140

Re: Intermediate Tutorial 21 Bonus part cannot build for x86 platform

Thanks for reply, the code is I downloaded from GitHub.
I didn't change anything. I just change the build platform from x64 to x86.
by WilsonHuang
January 20th, 2020, 3:52 am
Forum: Everything
Topic: Intermediate Tutorial 21 Bonus part cannot build for x86 platform
Replies: 9
Views: 140

Intermediate Tutorial 21 Bonus part cannot build for x86 platform

I found that chili's Sprite solution cannot build for x86 platform, but x64 is OK. The error appears at Graphics.h extern template part. It has link error Error LNK2001 unresolved external symbol "public: void __thiscall Graphics::DrawSprite<class SpriteEffect::Copy>(int,int,class Rect_<int>,class R...
by WilsonHuang
December 23rd, 2019, 5:08 am
Forum: Everything
Topic: Is there a proper way to calculate frame rate?
Replies: 2
Views: 109

Re: Is there a proper way to calculate frame rate?

Well, your frame count will overflow way before the total frame time, but the easiest way would be to just reset the time and count every so often. Maybe every 10 seconds or every 1,000 frames. You could also switch to using a uint64_t type ( the built in type or intrinsic type would be unsigned lo...
by WilsonHuang
December 23rd, 2019, 4:18 am
Forum: Everything
Topic: Is there a proper way to calculate frame rate?
Replies: 2
Views: 109

Is there a proper way to calculate frame rate?

The following code is how I calculate frame rate: [Game.h] FrameTimer ft; float totalFrameTime = 0.0f; int frameCounter = 0; float fps = 0.0f; [Game.cpp] void Game::Go() { gfx.BeginFrame(); UpdateModel(); ComposeFrame(); gfx.EndFrame(); frameCounter += 1; } void Game::UpdateModel() { totalFrameTime ...
by WilsonHuang
December 18th, 2019, 5:31 am
Forum: Everything
Topic: Question about benchmark time of optimized debug build
Replies: 4
Views: 116

Re: Question about benchmark time of optimized debug build

Was the test code something you followed along with or downloaded from GitHub? Last I knew chili's proc was an old Intel server CPU, so cache speed/size and such may have given him an advantage in that regard. Tell ya what, upload a copy of your project to the forum and I'll run it and see what I g...