Join for FREE | Take the Tour Lost Password?
[x]

deviantART

 
About Me Member Self-proclaimed Genius WkterMale/Norway Recent Activity Deviant for 2 Years
Needs Premium Membership
Statistics 41 Deviations
384 Comments
5,498 Pageviews

C++ Game log

Tue Oct 13, 2009, 2:22 PM
Okay, so I've decided to make a journal about the progress on my game.
I'll try to keep it up-to-date, but I bet I will forget to update =P
Basically, I will use this as a log and day review :nod:
Who knows, maybe a new, fellow game programmer will have fun reading how I learned it? :shrug:

20 October - DirectX 10

I've been working on changeing from DirectX 9 to 10, and I've done some more work on the projectile engine.
I've also started on writing the GUI engine.

Todo:
Comment my code! (I wish I had done that on the projectile engine!)
Add the first part of the enemy engine.
Add a collision detector.
Write in-game GUI system.

13 October - Projectile engine

Now that I've gotten a hang of virtual functions and base classes, I've written the
first part of what will become the shooting engine in the game. It uses a sprite sheet
with 25 50x50 sprites on it. The projectile handler of the players projectiles can at the moment
handle 128 individual bullets. The projectiles are based of the OBJECT class, that is the general
purpose class for objects that I have. The bullets does not use everything in this class, including
an individual sprite holder, so it's a lot of wasted memory space. It's based on the OBJECT class because
of the setActive and getActive functions, which is ridiculous, as that's only 5 lines of code.
The projectile handler is also based on this general purpose class, however, it uses the Sprite
in the OBJECT, so for the time being, not much space is wasted, and I will leave it as it is,
until it gets too complicated.
My goal with this engine is to have all attacks have their own projectile handler that supports an unlimited
amount of bullets and be able to control each individual bullet, without being a resource hog.
I also have a 48-byte memory leak in my TextField class, but it's 1024 bytes to 1kb, so it's not a big deal
at the moment.

Long log today :lmao:

Todo:
Comment my code!
Add the first part of the enemy engine.
Add a collision detector.

6 October - Rewriting

I've learned a lot of C++ and DirectX the last days, so I've decided to give my code a rewrite.
I will keep some code, but I will remove all crap, and rewrite them all.
Why didn't I learn about virtual functions before now?...

Todo:
Find bad code and rewrite.
Rewrite all class objects.

3 October - No more DirectInput!

So, I've read that DirectInput is nothing more that a wrapper to the WM_INPUT message,
so I've completely rewritten the DirectInput part,
and instead check WM_INPUT myself. Pain in the ass, I tell you..
At least now I have 100% control over the input devices.
Because of this, I have almost no use for the DirectInput.cpp (Will be renamed),
as Input.cpp deals with most of the "Translation" from WM_INPUT to the InputData struct,
and WinMain.cpp deals with gathering the raw input from the devices.

Todo:
Find a better way to "translate" the raw input.

  • Mood: Humor
  • Listening to: Windows Welcome Music
  • Reading: C++ code
  • Watching: The screen
  • Playing: Debug versions of my game
  • Eating: Food..
  • Drinking: Coce..

deviantID

No deviantID yet.

Devious Info

  • Current Residence: Rogaland, Norway
  • Interests: All programming, Drawing, Making pictures, 3D Modellering, Game creation, Animation and web creation
  • Favourite movie: Slipp Jimmy Fri, Ghostbusters
  • Favourite band or musician: Bare Egil Band, Raske Menn and Wierd Al
  • Favourite genre of music: Mostly all..
  • Favourite artist: Me!
  • Favourite photographer: My dad xD
  • Favourite style of art: Cartoon and the result you get if you do 'Trace Bitmap' in Flash.
  • Operating System: Windows XP / Vista Ultimate / Vista Buisness
  • MP3 player of choice: Sansa e260, Windows Media Player :)
  • Shell of choice: Just about any Shell gas station should do fine...
  • Wallpaper of choice: Something with computers or wolves in :)
  • Skin of choice: Wolf, human, Windows Areo xD
  • Favourite game: Legend of Zelda, SMB3
  • Favourite gaming platform: Adventure, Strategy, MMORPG
  • Favourite cartoon character: Calvin & Hobbes
  • Personal Quote: xD
  • Tools of the Trade: Adobe Master Collection CS4, 3DS Max 2009, Microsoft Visual C++ Express

deviantART Community Board

[x]

Comments


:iconangelgirl665:
Okay i have something to say. If u dont like one of my art just dont comment okay that makes me feel upset jerk off. And the only reson it took 3 hours is cause my computer froze and i had to restart. :| So if you dont have anything NICE to say about my work...IM GONNA FUCKING BLOCK UR ASS I DONT TATLORATE THIS SHIT!!U GOT ME PISSED R U HAPPY NOW!!!GO TO HELL JERK :pissed:.

~angel

--
I LIKE CHEESE :dummy:
i love him ~shadic02
i like tv
i love music :music:
i love to chat ^^
and i love my friends!!
-----
icon by the lovely *cnc16 ^^
:iconwkter:
I am sorry you feel 'upset jerk off', but I am still very happy, indeed, as I never said one single word to you.
Also you have to tolerate feedback, even though I never intended you to read what I had to say about your art, so the one that should go to hell and jerk off are the ones that don't really know what privacy is.
And you only count the time you actually spend editing the image. If I was to count the time from start to finish, I'd be up in weeks on everything I've ever made..
And please do block me, that is of no offense to me, as I've already blocked many persons I do not like, and besides, I don't even know you :bucktooth:

--
AnimeAlliance, join us!

Mar game:
FINISHED!!

C++ game engine:
Total: 4% (Makeing enemy engine)
:stupidme:
:iconangelgirl665:
WELL :iconfrogger12345: told me this so if u dont like it ignor it :|

--
I LIKE CHEESE :dummy:
i love him ~shadic02
i like tv
i love music :music:
i love to chat ^^
and i love my friends!!
-----
icon by the lovely *cnc16 ^^
:iconwkter:
I know he did, and I DID ignore it..
Do you see a comment from me on that deviation?
I am allowed to discuss art with someone I know, don't I?

--
AnimeAlliance, join us!

Mar game:
FINISHED!!

C++ game engine:
Total: 4% (Makeing enemy engine)
:stupidme:
:iconmorganffs:
Hello :iconwkter:

--
/ just loving my girl
:iconwkter:
Father :pointr: :iconwkter::bucktooth: :pointl: Son

--
AnimeAlliance, join us!

Mar game:
FINISHED!!

C++ game engine:
Total: 4% (Makeing enemy engine)
:stupidme:
:iconmorganffs:
mahahahahah :iconmorganffs:

--
/ just loving my girl
:iconlardleopard:
so... how's the project going O.o

--
fangkingagito says... "LardLeopard is my fan!"

come to #ForeverBleach ~ ^^
:iconkaos-m4:
WHERE DID YOU HIDE THE CAMERA?! >8C

--
I screwed in a light bulb,
Crossed the road,
and walking into a bar,
and then I realized...
My life was just a big joke!
:iconwkter:
Your bathroom :shh:

--
AnimeAlliance, join us!

Mar game:
FINISHED!!

C++ game engine:
Total: 4% (Makeing enemy engine)
:stupidme:

Site Map