CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 121 users online: 8 members, 91 guests and 22 bots.
Members: Ashbad, JamesV, K y u N, Piguy-3.14.
Bots: Spinn3r (1), Magpie Crawler (2), Googlebot (18), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Author Message
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 03 Dec 2011 11:16:33 pm    Post subject:

I'll take your word that the video doesn't fairly portray the game. Smile It's looking good so far, and I admire your patience in placing every single one of those dots! How's the deadline looking for you in terms of being realistic?
_________________


Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 03 Dec 2011 11:24:37 pm    Post subject:

I already have most of the core features implemented, I just need to add enemy movement, a bullet system, sound effects, and a points system to create a basic, playable game. I don't think that should take too long. After that, I'll make a cool title screen and possibly animations for when you die, kill an enemy, etc.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 04 Dec 2011 07:42:55 pm    Post subject:

So, today I added code to display the enemies and an array to hold the enemies' data, but they aren't able to move around yet. Hopefully, I'll be able to make them move and follow the player this week.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 13 Dec 2011 10:00:30 pm    Post subject:

*bump*
I've been working on enemy movement, and it somewhat works, but my code is really unoptimized and bloated so I'm completely rewriting it.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 14 Dec 2011 06:31:18 pm    Post subject:

*nudge*

Enemy movement works well enough now that I can move on to other aspects of the game, but there are still a few glitches with the collision detection.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
Ashbad


... I think redheaded girls are kind of cool


Joined: 01 Dec 2010
Posts: 2417
Location: Stomp Stomp Stomp, The Idiot Convention

Posted: 14 Dec 2011 06:33:35 pm    Post subject:

The first thing I noticed though was the rough outlines on the ghosts -- maybe just my OCD, but they'd look more in place with the borders removed IMO. Other than that, superb! Very Happy
_________________
-Ashbad
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 14 Dec 2011 06:36:16 pm    Post subject:

Yeah, the rough outlines were just the result of my laziness and inability to make good sprites; I'll remove them later. Right now, I have to focus on making a playable and complete game.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 14 Dec 2011 07:23:18 pm    Post subject:

So in the end you didn't need to use any sort of tricks like frame-skipping? I'm confused why or how XNA is breaking that, by the way.
_________________


Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2957

Posted: 14 Dec 2011 07:26:45 pm    Post subject:

Kerm, maybe I am misunderstanding what you said, but if you mean "Why is XNA making the borders rough", it's not XNA's fault. That'd be Souvik's fault when he found the PacMan sprites and cut them out to give them a clear background.

Souvik, nice! Smile Are you still doing the same sort of enemy AI as PacMan? (where the various ghosts aim 4 blocks above, to the left of, to the right of, and below your character)
_________________
http://tanner.myserverathome.com
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 14 Dec 2011 07:34:04 pm    Post subject:

Nope, it's not at all like the Pacman enemy AI; it's completely original. It's smart enough to follow the player around, but it sometimes does stupid stuff like forgetting to turn at intersections.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55732
Location: Earth, Sol, Milky Way

Posted: 14 Dec 2011 08:39:25 pm    Post subject:

_player1537 wrote:
Kerm, maybe I am misunderstanding what you said, but if you mean "Why is XNA making the borders rough", it's not XNA's fault. That'd be Souvik's fault when he found the PacMan sprites and cut them out to give them a clear background.
Souvik was moving the sprites by two pixels each frame of the game for speed needs. He was having collision-detection problems. I suggested on IRC that he perform frame-skipping, where you calculate frames of the game but not display them. For example, Invalid Tangram only displays every (fourth?) frame, and Obliterate does 8x frame-dropping, which means it only displays one out of every eight frames it calculates. In both cases, you get accurate physics and collisions without losing speed due to slow rendering. Souvik said that when he tried it, XNA was clearing the screen each time through the main loop anyway, so he had to redraw on every frame.
_________________


Back to top
benryves


Cemetech Expert


Joined: 12 Aug 2008
Posts: 1357
Location: London, United Kingdom

Posted: 14 Dec 2011 09:31:16 pm    Post subject:

You should not be trying to trick the Game class by manually implementing hacks like frame skip; assuming the default settings (i.e. IsFixedTimeStep is true) your Update() method will be called sixty times per second. If your code is too slow to make this then IsRunningSlowly is set to true and XNA skips Draw calls, dropping frames on your behalf. Work with the library, don't try to subvert it. Smile
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 19 Dec 2011 03:30:54 pm    Post subject:


I got player shooting to work. Smile I don't really like the bullet sprite too much, though.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 20 Dec 2011 11:30:03 am    Post subject:

*bump*

Enemy shooting is now fully functional.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 20 Jan 2012 01:07:46 pm    Post subject:

I'm almost done with my game. There are still a few quirks with the enemy movement, though, and I don't think I'll have enough time to fix them. I'm currently working on the level system and high scores, which I hope to complete today. Should I include the XNA dlls along with the executable when I submit it? I know it's against the EULA, but this is so the judges don't have to install the XNA framework.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.037616 seconds.