Element Forums


 
HomeHome  CalendarCalendar  GalleryGallery  IRC ChatIRC Chat  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 my next attempt (which is much better XD)

Go down 
AuthorMessage
stevekb
Lightbringer
Lightbringer
avatar

Posts : 177
Join date : 2009-05-15

PostSubject: my next attempt (which is much better XD)   Sat Aug 15, 2009 9:29 pm

Ok i finally found which files I needed for the program Very Happy

so here it is
for now it installs the game but I'll be finding out how to make it so it doesn't do that next time

so for now just use the trusting control panel and then remove/add programs option to find it (windowsapplication4)

ok so it still doesn't have my name on it and actually installs itself in a microsoft named folder sadly (i haven't try to change it yet and don't know how yet either)

so yeah here is a link

steve's game

how to 'interact' (it's not really a game yet but you can actually do something this time instead of looking at a colored window)

ok so to interact press the up and down arrow keys to change the background value and uncovering the secrets of my transparent sprite

and that's all

This is the code i actually created and where it is

in game1.c


for the keyboard commands i put this in the update void

KeyboardState newState = Keyboard.GetState();
if (newState.IsKeyDown(Keys.Up))
{
test += 0.1f;
}
if (newState.IsKeyDown(Keys.Down))
{
test -= 0.1f;
}
if (test < 0.0f)
{
test = 0.0f;
}
if (test > 1.0f)
{
test = 1.0f;
}


if (newState.IsKeyDown(Keys.Escape))
{
Exit();
}

for the draw void this is what i have

GraphicsDevice.Clear(new Color(test,test,test)); //zomg a color :O
//drawing a sprite
ForegroundBatch.Begin();
Vector2 pos = new Vector2(32, 32);
ForegroundBatch.Draw(SpriteTexture, pos, Color.White);
ForegroundBatch.End();
//drewed a sprite yay

and for the first part just after the public class i have

Texture2D SpriteTexture;
SpriteBatch ForegroundBatch;

but remember there's tons of other code but i only showed you the ones i changed or added
Back to top Go down
View user profile
AlphaForce
The Dark X
The Dark X
avatar

Posts : 146
Join date : 2009-07-06
Age : 24
Location : Quebec!

PostSubject: Re: my next attempt (which is much better XD)   Sat Aug 15, 2009 9:35 pm

Hmm...let's try it!

EDIT : This thing is...let's say...very simple? And what to tell about the graphics...nothing?
Back to top Go down
View user profile http://www.gamma-work.com
 
my next attempt (which is much better XD)
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Element Forums :: Other :: Creations-
Jump to: