• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
cyril98

need some pointers :D

7 posts in this topic

hi i need some pointers on how im coding please dont bash me because im sort of new to c#
and please for the love of god dont throw me off what im doing im new to c# but not new to programming

ive programmed in
c# been praticing it for two months
c++ done that for a while
visual basic
pascal
ada
ruby my very first language
python i hate the language

ones im going to learn soon
assembly
BASIC
sql
xml
advanced c#
more c++
powershell
unix unix isnt really a language its more a enviroment with commands

i have to go back and edit my code
but there are some crucial points that i need some guidance


1 story mode (i may need to edit it )

example
using my stuff

Vec.sprite( kyurem ) // do you need the file extension and the name
Vec.sprite( health bar full ) // vec sprite is a function i created based off the book the actual script for it isnt posted here
new = player();
new = darkknight();
string = "dark knight: you come so far but now its your end";
string = "cestus: you wish !!!!! go to the abyss";

// now this is where guidance is required
if darkknight health = 0;
{
string = "well done traning complete"
// now this i think might not be right
Vec.destroy kyurem();
new = grathpeak();
}


2 weapons

public class daegith_blade // i made this class public so the game can use this in like a shop
{
private int attack = 90;
private string skill1 = "corrosion blade"
Vec.sprite( daegith blade )
}

vec sprite and vec destroy are functions i made based off the book and have their own individual CS files

3 battle

this is only a section of the player script

keypressEnter
{
new = sword(); collis( enemy_instances )
}
0

Share this post


Link to post
Share on other sites
I'll give you a bad pointer:[b] 0xFFFFFF[/b]
Take a minute to stop laughing.

Seriously tough, please be a bit more specific. Are you asking if the code you provided can be improved upon, design decision critique, general guidance? I'm not sure what it is you're looking for.

One bit of advice i can give is don't try to learn everything under the sun. Having a weak understanding of many languages has no value to it. Pick a language, and MASTER it. I would suggest C++, C#, LUA, Python in that order; they are the only languages i've had to use professionally. Python is more for tools than anything else. Edited by uglybdavis
2

Share this post


Link to post
Share on other sites
A couple of pointers:

"new" is a keyword and is used for creating an instance of a class. You can't assign something to it.
I believe what you're looking for instead of this:
[source lang="csharp"]new = player();[/source]
is something like this:
[source lang="csharp"]Player somePlayer = new Player();[/source]

Additionallty, make sure you end each line with a semicolon.

This bit:
[source lang="csharp"]if darkknight health = 0;[/source]
needs a couple of adjusments. Firstly, you need to use dot syntax for accessing an object's properties. If health is a property of your darkknight object, you access it via "darkknight.health". Secondly, you need to put the if condition inside brackets. Thirdly, don't put a semicolon at the end (it won't break compilation, but the code block following your "if" will never run). What you want is something like this:
[source lang="csharp"]if (darkknight.health == 0)[/source]

This:
[source lang="csharp"]Vec.destroy kyurem();[/source]
From your description I gather that "destroy" is a method of Vec? In which case you need to call it as a method, with "kyurem" as a parameter like so:
[source lang="csharp"]Vec.destroy(kyurem);[/source] Edited by archanian
2

Share this post


Link to post
Share on other sites
i don't exactly know what you are looking for, as uglybdavis said.
I'd like to ask you to be more concise about what it is your looking for,you've thrown a ton of random information at us, and for the most part we have no idea what they mean relative to you.

you mention book several times, but don't tell us what the book's name is, what parts you are having trouble with.
0

Share this post


Link to post
Share on other sites
[quote name='cyril98' timestamp='1355358820' post='5010024']
vec sprite and vec destroy are functions i made based off the book and have their own individual CS files
[/quote]

Seriously, what book are you referencing? If it's teaching you to code like this (and your last three threads), throw it away.

Two different methods of the same class shouldn't be in separate CS files, they should be in the .cs file that defines the class itself. (There are special cases where classes are broken up over different files, but that doesn't apply here)

[quote name='cyril98' timestamp='1355358820' post='5010024']
ive programmed in
c# been praticing it for two months
c++ done that for a while
visual basic
pascal
ada
ruby my very first language
python i hate the language

ones im going to learn soon
...
[/quote]

Woah, stop. Just pick ONE language, actually [i]learn[/i] it, and then pick up more when you've successfully created something substantial in the first language. You're all over the road, and [i]not a single line of code you've shared since you started posting here will compile[/i]. It's obvious you're very excited and passionate about making something, but you're all hype and no focus. People have told you repeatedly to get back to basics: your syntax is way off. If you plan to stick with C#, [b]learn C#.[/b] To say you've been practicing it for 2 months and then show us code like this tells me you either have a horrible teacher, or you're not learning anything from your practice.

Start simple, get small programs to compile and run, make sure they're doing what you expect them to, and then build from there. I'm not "bashing" you, I'm giving you direct, honest advice based on the quality of the code and information you're sharing with us.
1

Share this post


Link to post
Share on other sites
[quote name='uglybdavis' timestamp='1355366767' post='5010050']
One bit of advice i can give is don't try to learn everything under the sun. Having a weak understanding of many languages has no value to it. Pick a language, and MASTER it. I would suggest C++, C#, LUA, Python in that order; they are the only languages i've had to use professionally. Python is more for tools than anything else.
[/quote]
No offense, but this is bad advice to give a beginner. It starts good, but after the third sentence I would have stopped.
Trim that list down to one. Don't give cyril a shopping list, they're having enough trouble with one language. And entire games are written in Python, if you tell someone "it's only good for _____" they might not even look into it, where many beginners here have done well learning with Python, and could make small games very quickly with it.
2

Share this post


Link to post
Share on other sites
[quote name='cyril98' timestamp='1355358820' post='5010024']
hi i need some pointers on how im coding please dont bash me because im sort of new to c#
and please for the love of god dont throw me off what im doing im new to c# but not new to programming

ive programmed in
c# been praticing it for two months
c++ done that for a while
visual basic
pascal
ada
ruby my very first language
python i hate the language
[/quote]

and then.. you decided to come up with your own programming language.. sounds legit to me [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]

obvious troll is obvious
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0