Jump to content
  • Advertisement

WinterDragon

Member
  • Content Count

    45
  • Joined

  • Last visited

Community Reputation

157 Neutral

About WinterDragon

  • Rank
    Member

Personal Information

  • Website
  • Role
    Animator
    Art Director
    Character Artist
    Concept Artist
    Creative Director
    Game Designer
    Producer
    Writer
  • Interests
    Art
    Business
    Design
    Production

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The assignment was to adapt the guessing game to reverse the process, by allowing the player to choose the number and let the computer try to guess it, then to write this game as pseudocode. Let me know how well you think I did? declare variables import random def start Print "guess cannot be higher than 50" if number >50 then print "you cheated":break input (low)"what is the lowest possible number your guess could be?" input (high)"what is the highest possible number your guess could be?" computer chooses a random number between low and high check to see if it is the number elif check to see if the number is too low if so numscale=low elif check to see if the number is too high if so numscale=high def new method if the number is too low tell computer the guess is too low if the number is too high tell the computer the guess is too high is this the first time guessing? if the guess is too low and this is the first time guess=guess+2 if the guess is too high and this is the first time guess=guess-2 if the guess is too low and this is not the first time guess=guess+1 if the guess is too low and this is not the first time guess=guess-1 print guess guessCount=guessCount+1 goto start
  2. WinterDragon

    first steps for making 4 games

    bit of background: I used to code in BASIC on a BBC Micro emulator (mostly making sprites and I started building a boxing game then turned it into the beginnings of a pong game with the faces for balls, and a little bit of sound and mathematical psychedelic animated patterns.) on my family Acorn Archimedes. Which helped me get the high score in the high school algebra exam. Many years later and after moving away from maths into creative fields, I failed at C# then I did a few days with C++ and Javascript and liked them but then I found python and fell in love, but unity2d seems faster. So I've been doing python for about 8 months (not every day or even every week, but my plan is to do an hour of coding every day, then step it up when I start doing large projects to 2-3hrs/day) and I'm 84pgs into my first python book including assignments. okay so plan = 1) keep working through python book 2) work through python and pygame for arcade games book 3) work through 2 x unity 2d books 4) build a pong clone 5) build more small game clones: Worm = Placement of random powerups, handling of screen boundaries, worm data structure Breakout = Lessons of pong, powerups, maps (brick arrangements) Missile Command = targeting; simple enemy ai, movement, and sound Space Invaders = simple movement for player and enemy, very similar to breakout with the exception that the enemy constantly moves downward, simple sound Asteroids = asteroids (enemies) and player can move in all directions, asteroids appear and move randomly, simple sound Tetris = block design, clearing the lines, scoring, simple animation Pac Man = simple animation, input, collision detection, maps (level design), ai Ikari Warriors = top down view, enemy ai, powerups, scoring, collision detection, maps (level design), input, sound, boss AI 6) build land of illusion clone, joust clone and text-based adventure game 7) start building a) an important mechanic for my first game then iterate on top of that, b) a prototype for my first game.
  3. WinterDragon

    time in loop

    Thanks, that is immensely helpful, lots to read, yay. But seriously, thanks a lot, :).
  4. WinterDragon

    first steps for making 4 games

    Thanks!
  5. I want to make some games. My question is what should my first steps be, besides learning more python and unity2d? I'm hoping I haven't asked this before. I thought my first step was conquering enough of unity and python so I can start making small games. I don't know enough python to build a text-based adventure game just yet. I haven't really started with unity 2d yet. I want to make 4 games: 1) a survival game set in a bubble in New Zealand 2) an rpg battle game about differently-shaped spaceships protecting their resources 3) a hustling game influenced by land of Illusion: starring mickey mouse graphics and hell's kitchen ds mechanics 4) an end of the world game where you play god and mutate heroes to fight the ultimate evil supervillain Other games which are major influences include: 8bitMMO, Another World, Discworld 2, Clop, Osmos, Hacker Evolution: Untold, the sims 1, close combat 1, MTGO, Limbo, Doug TenNapel games, Lemmings, Freedom Force, Gain Ground, Gynoug, Joust, Robocop Vs The Terminator, Ecco: the Dolphin, Super Meat Boy and Syphon Filter 1. Also does anyone have tips about marketing, or should I not worry until I have an early build?
  6. WinterDragon

    time in loop

    thanks that's hugely helpful! the book hasn't covered the time module yet so I didn't know there was one but the assignment kind of requires it. Which is a bit strange, but it's the last assignment for this section so it may be a curve ball. Is there documentation on all the modules in python, if so, I'm assuming it's pretty massive? Could I combine time with a while statement, to keep the game going until time reaches required time state?
  7. WinterDragon

    time in loop

    I'm trying to find/figure out where in a loop, before the loop, after the loop, the computer understands time. As I have created a loop and I need to put a time-limit on an input. lost my program, so I'll adapt the following to a guessing game from a coin flip. Then I need to insert a time counter, just need to understand where to put it? import random def variables (): heads = 0 tails = 0 coinCount = 0 againPlay = "y" def game(): heads = 0 tails = 0 againPlay = "y" coinCount = 1 while coinCount > 0: if againPlay != "y": print ("you had ", heads, "heads.") print (" and ", tails, "tails.") end = input ("You're all done now!") nmCoin = random.randrange(2) if coinCount > 100: againPlay = "n" if nmCoin == 1: heads = heads + 1 coinCount = coinCount + 1 elif nmCoin == 0: tails = tails + 1 coinCount = coinCount + 1 else: print ("you had ", heads, "heads.") print (" and ", tails, "tails.") end = input ("You're all done now!") variables () game ()
  8. So I used python 3 for ios on my ipad to do part one of this assignment. Part One: create a guess my number game: numSpecial = 0 time = 0 guesses = 0 g = 0 i = 0 import random numSpecial= random.randint(1,9) print ("guess my nmber, biatch! between 1 and 10") while g!= numSpecial: time = time + 1 if time > 5: print ("you took too long, loser") elif g > numSpecial: print ("too high, shithead") guesses = guesses + 1 elif g < numSpecial: print ("too low, asshole") guesses = guesses + 1 elif guesses > 10: print ("I have had enough of your shit") else: print ("you found an error") g = int(input("what is your guess?")) if g == numSpecial: print ("you guessed right, you are not as stupid as I thought.") i = input () Part Two: figure out where in the program the computer recognises time and place a time limit on the game. And no it doesn't have an ending because I haven't covered ending a program in the text yet.
  9. Q: assignment that flips a coin 100 times and gives you the total amount of heads and tails. A: I started by making it flip a coin 5 times so I could easily watch it working and fix bugs. I don't think it actually flips the coin exactly 100 times, can you spot the error? It took me an hour to get it to work: import random def variables (): heads = 0 tails = 0 coinCount = 0 againPlay = "y" def game(): heads = 0 tails = 0 againPlay = "y" coinCount = 1 while coinCount > 0: if againPlay != "y": print ("you had ", heads, "heads.") print (" and ", tails, "tails.") end = input ("You're all done now!") nmCoin = random.randrange(2) if coinCount > 100: againPlay = "n" if nmCoin == 1: heads = heads + 1 coinCount = coinCount + 1 elif nmCoin == 0: tails = tails + 1 coinCount = coinCount + 1 else: print ("you had ", heads, "heads.") print (" and ", tails, "tails.") end = input ("You're all done now!") variables () game ()
  10. WinterDragon

    an early coding exercise 1

    thanks for the tip, very useful. and thanks for reading.
  11. I wrote my first program (not including the false start last time I attempted programming) in Python... and it works! after a few bug fixes it's actually quite small and some would think insignificant. But I'm getting used to the syntax and form of the language. print ("hello") print ("nwhat are your 2 favourite foods of all time?") food1 = input ("nt1.") food2 = input ("nt2.") print ("I have made ",food2+food1," for you!") input ("press a key to exit and enjoy your meal :)")
  12. tip15 = 0 tip20 = 0 price = input ("how much did your meal cost?") tip15 = int (price) * .15 tip20 = int (price) * .2 print ("A 20% tip would be ",tip20," and a 15% tip would be",tip15) input () I wrote a tipper program for an exercise. It's a simple program and it took 20mins to write including several bug fixes, where I had to go back to looking through the textbook and a few glances at my first program, before I got it running properly. I made the usual noob mistakes - since I've tackled many different languages, I had to figure out if I needed to declare variables. I also got the variable on the wrong side of the equals sign, then I forgot to include commas in my print statement for the variables. I also forgot to state that the variable was an integer. Finally, I forgot to use brackets and then incorrectly included the calculation inside the brackets. Eventually, I figured all of this out and came up with the above seemingly simple program. And it works! I'm still not using comments, but I'll fix that when I start writing longer programs.
  13. carPrice = input ("what is the base price of the car?") tax = int (carPrice) * .125 insurance = 250 totalcarPrice = int (carPrice) + int (insurance) + int (tax) print ("total cost of your car including: insurance $",insurance,",") print ("and tax: $",tax," comes to $",totalcarPrice) input () This is a program that figures out all your extra costs, when buying a car. The only mistake I still need to figure out, is what the escape clause is for avoiding having a space at the end of a statement inside a print function. It works fine, the user enters the base cost for the car. Program calculates the tax and adds a previously decided insurance cost. Then the program provides the user with both the individual costs, and the total all-inclusive price of the car. EDIT: After some research not in-book, it turns out that you can avoid the white spaces in between statements by using the function sep = "", which should be treated as a variable - so not inside the quotation marks of the print function, rather, naked inside the brackets. So the final program now looks like this: carPrice = input ("what is the base price of the car?") tax = int (carPrice) * .125 insurance = 250 totalcarPrice = int (carPrice) + int (insurance) + int (tax) print ("total cost of your car including: insurance $",insurance,",", sep = "") print ("and tax: $",tax," comes to $",totalcarPrice, sep = "") input ()
  14. So it took one day to write and bug fix. Then another day to go through guesswork and figuring it out - to get the program to work. I haven't got up to while loops in the book, so it took a while - a few errors before I got it working. And I certainly haven't got as far as def methods, so using them was difficult and problematic. But I wanted my program to be complete with an exit option. import random def end_game(): end_message = ("game over") print (end_message) def game(): againPlay = "y" while againPlay == "y": nmCookie = random.randrange(5) begin = input ("cookie time, open your fortune cookie") if nmCookie < 1: print ("you are going to die someday") againPlay = input ("Still hungry") elif nmCookie == 1: print ("you just ate a cookie") againPlay = input ("Still hungry") elif nmCookie == 2: print ("you are going to eat another cookie") againPlay = input ("Still hungry") elif nmCookie == 3: print ("you like cookies") againPlay = input ("Still hungry") elif nmCookie == 4: print ("you will have a gargantuan legacy") againPlay = input ("Still hungry") else: end_game() game () end_game ()
  15. yea thanks that's all really helpful. I haven't actually got upto GUIs yet. so I guess there will be more about that when I do. I just ran the game, I'll have a look at the code now and it will give me more insight.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!