SJA random projects - Page 5

User Tag List

Page 5 of 24 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 236
  1. #41
    Killing Spree Sheepy's Avatar
    Join Date
    Jun 2011
    Posts
    139
    Country:
    Outa curiosity: do any of you work as programmers?

    I do and god dam, thats enough for me, dont want to do that in my free time aswell..

  2. #42
    Whicked Sick UT-Sniper-SJA94's Avatar
    Join Date
    Oct 2011
    Location
    What was England
    Posts
    4,427
    Country:
    I don't, I'm too crap ATM.

    I don't mind timtim, its.something interesting to read.

  3. #43
    Whicked Sick Chamberly's Avatar
    Join Date
    Jul 2012
    Location
    Vandora Temple
    Posts
    5,488
    Country:
    Quote Originally Posted by Sheepy View Post
    do any of you work as programmers?
    I don't but I do add in as a hobby thing, which is a nice thing that can add up to other skills of improving a lot of other things.
    Or it just make my mind help me do better. Something like that. lmao.


    http://irc.lc/globalgamers/uscript for uscript discussion.

  4. #44
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    Quote Originally Posted by Sheepy View Post
    Outa curiosity: do any of you work as programmers?

    I do and god dam, thats enough for me, dont want to do that in my free time aswell..
    Yeah, all day every day, mostly my startup and some contract work on the side to pay the bills. I love what I do though. Well, I love it only if it involves modern JS because everything else feels so inferior by comparison lol. With modern JS and the growing ecosystem around it, if I have some task or idea to implement, 90% of the time I can either just find the components I need on https://www.npmjs.com/ and put them all together, or I can build it myself with relatively minimal effort. It's almost always as easy as saying, "Okay I want to render this output based on these properties, and then all we need to do is use some API to provide the component with said properties." Other workflows/technologies have been trying to do this for years but they always seemed to fall short. I imagined this ideal system back in like 2011 so I'm excited that it finally exists and that it will soon be a standard in all web browsers.

    But yeah I agree with you on the last part. It is hard to find the energy to work on something like UT or UT4 in my free time.

  5. #45
    Whicked Sick ~~D4RR3N~~'s Avatar
    Join Date
    Jul 2012
    Location
    Venezuela
    Posts
    1,614
    Country:
    Oh duuuude I finally understand.
    No need to subclass if that means unused variables and code inherited, right?

    I'd like to work as a programmer some day :')
    Quote Originally Posted by |uK|UNrealshots View Post
    You're playing a game that came out in 1999 in the year 2012 who is the fucking nerd here?
    All of us. Enjoy.

  6. #46
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    Quote Originally Posted by ~~D4RR3N~~ View Post
    Oh duuuude I finally understand.
    No need to subclass if that means unused variables and code inherited, right?

    I'd like to work as a programmer some day :')
    Pretty much. Try to avoid inheritance like the plague, and just pass whatever variables and functions you need when you need them. With modern JS it's a lot easier to do this, because there's a lot of "syntactic sugar" (basically shortcuts for really common use-cases).

    For example, with old JavaScript, suppose you want to do multiple things with `a`, `b`, and `c` stored within some object:
    Code:
    function logQuietly(data) {
      var a = data.a;
      var b = data.b;
      var c = data.c;
    
      console.log('quietly...');
      console.log(a+b+c);
    }
    
    function logLoudlyAndBackwards(data) {
      var a = data.a;
      var b = data.b;
      var c = data.c;
    
      console.log('LOUDLY AND BACKWARDS!!!');
      console.log((c+b+a).toUpperCase());
    }
    
    var someObject = {
      a: 'apple',
      b: 'banana',
      c: 'carrot',
      d: 'dickcheese',
      e: 'etc'
    };
    
    logQuietly(someObject);  // applebananacarrot
    logLoudlyAndBackwards(someObject);  // CARROTBANANAAPPLE
    But with modern JavaScript, you can grab arbitrary variables from objects using a shortcut like this:
    Code:
    function logQuietly({a, b, c}) {
      console.log('quietly...');
      console.log(a+b+c);
    }
    
    function logLoudlyAndBackwards({a, b, c}) {
      console.log('LOUDLY AND BACKWARDS!!!');
      console.log((c+b+a).toUpperCase());
    }
    
    var someObject = {
      a: 'apple',
      b: 'banana',
      c: 'carrot',
      d: 'dickcheese',
      e: 'etc'
    };
    
    logQuietly(someObject);  // applebananacarrot
    logLoudlyAndBackwards(someObject);  // CARROTBANANAAPPLE
    Some other really useful syntactic sugar: Constructing some object from some variables and then suppose you want to extend it with some new value(s).

    Old JS:
    Code:
    var a = 'apple';
    var b = 'banana';
    var c = 'carrot';
    var d = 'dickcheese';
    var e = 'etc';
    
    var someObject = { a: a, b: b, c: c };
    console.log(someObject);  // { a: 'apple', b: 'banana', c: 'carrot' }
    
    var extended = Object.assign({}, someObject);  // creates a copy of someObject
    extended.c = 'c0ck';
    extended.d = d;
    extended.e = e;
    console.log(extended);  // { a: 'apple', b: 'banana', c: 'c0ck', d: 'dickcheese', e: 'etc' }
    Modern JS:
    Code:
    var a = 'apple';
    var b = 'banana';
    var c = 'carrot';
    var d = 'dickcheese';
    var e = 'etc';
    
    var someObject = { a, b, c };
    console.log(someObject);  // { a: 'apple', b: 'banana', c: 'carrot' }
    
    var extended = { ...someObject, c: 'c0ck', d, e };  // creates a copy of someObject and extends it
    console.log(extended);  // { a: 'apple', b: 'banana', c: 'c0ck', d: 'dickcheese', e: 'etc' }
    
    // can also combine multiple objects no problem
    var bro = { do: 'you', even: 'lift?', b: 'bitch', a: 'ass' };
    var combined = { ...extended, ...bro };
    console.log(combined);  // { a: 'ass', b: 'bitch', c: 'c0ck', d: 'dickcheese', e: 'etc', do: 'you', even: 'lift?' }
    There's a ton of really useful shortcuts like this. Check https://babeljs.io/docs/learn-es2015/.
    Last edited by TimTim; 08-31-2015 at 11:45 PM.

  7. #47
    Moderator TimTim's Avatar
    Join Date
    Aug 2013
    Posts
    1,804
    Country:
    I should add that the spread operator (e.g., `...someObject`) isn't yet officially within ES2015. Maybe ES2016 or ES2017 (whatever the consortium will eventually call the next set of improvements lol), but it's so useful I can't imagine it wouldn't land in the next standard. Plus you can use it when enabling experimental features with BabelJS.

  8. #48
    Whicked Sick UT-Sniper-SJA94's Avatar
    Join Date
    Oct 2011
    Location
    What was England
    Posts
    4,427
    Country:
    One of my new books has arrived(1 of 3):

    Even though it has about 450 pages less than my c++ book, it's quite a lot bigger than it.

    I've had a look through the chapters, and it includes server side javascript (node,rhino).

  9. #49
    Whicked Sick UT-Sniper-SJA94's Avatar
    Join Date
    Oct 2011
    Location
    What was England
    Posts
    4,427
    Country:
    That JavaScript book is well worth the £20 investment, there is about 600 pages of the main parts, and about 300 pages of the core javascript reference, and client side JavaScript reference, I was going to buy an html5 canvas book, but I won't need to with this book. Highly recommend it, I might be a half decent javascript programmer after a little while studying this book looking for stuff I've missed doing random tutorials online that don't go into a good enough depth half the time.

    Might then be able to make better games, I've been thinking of making a ut styled duck hunt game, with rockets, bio, shockrifle,flak,ripper ect, if anyone would be interested.

  10. #50
    Whicked Sick UT-Sniper-SJA94's Avatar
    Join Date
    Oct 2011
    Location
    What was England
    Posts
    4,427
    Country:
    2D UT anyone?


    I learned how to track multiple keys being pressed at once(although it was pretty obvious how to do it when I looked at it ), the player can dodge if you hold down any movement keys, and then press space at the same time. It looks jerky because I haven't done anything with the movement physics yet, all it does at the moment is add 18 to the players current speed, and then reduce it by x every tick, until it reaches it's max movement speed. There won't be instant stop start like you see in the video.

    Thinking of make a 2d version of unreal tournament, with bots, and all the weapons. It would be fun to make, plus it would be a good way practice the new stuff I've learned from my new book.

    If I were to make this game, would anyone be interested in playing it?

    It would be just Dm/TDM at first, then I could add LMS,CTF and so on if there is enough interest in it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Another random game
    By UT-Sniper-SJA94 in forum Spam Section
    Replies: 79
    Last Post: 06-29-2015, 07:59 PM
  2. Random siege gif.
    By Chamberly in forum Screenshots
    Replies: 8
    Last Post: 01-05-2015, 04:17 AM
  3. Ben10 / Random / random Anime names
    By uenz in forum Reports/Complaints & Appeals
    Replies: 7
    Last Post: 08-30-2014, 02:43 PM
  4. Random bug
    By UT-Sniper-SJA94 in forum Spam Section
    Replies: 7
    Last Post: 03-13-2014, 11:22 AM
  5. Everybody random guy
    By |uK|B|aZe//. in forum Bans
    Replies: 0
    Last Post: 12-23-2011, 10:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •