Jump to content
  • Advertisement

Search the Community

Showing results for tags 'Javascript'.

The search index is currently processing. Current results may not be complete.


More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Audio
    • Music and Sound FX
  • Business
    • Business and Law
    • Career Development
    • Production and Management
  • Game Design
    • Game Design and Theory
    • Writing for Games
    • UX for Games
  • Industry
    • Interviews
    • Event Coverage
  • Programming
    • Artificial Intelligence
    • General and Gameplay Programming
    • Graphics and GPU Programming
    • Engines and Middleware
    • Math and Physics
    • Networking and Multiplayer
  • Visual Arts
  • Archive

Categories

  • Audio
  • Visual Arts
  • Programming
  • Writing

Categories

  • Game Developers Conference
    • GDC 2017
    • GDC 2018
  • Power-Up Digital Games Conference
    • PDGC I: Words of Wisdom
    • PDGC II: The Devs Strike Back
    • PDGC III: Syntax Error

Forums

  • Audio
    • Music and Sound FX
  • Business
    • Games Career Development
    • Production and Management
    • Games Business and Law
  • Game Design
    • Game Design and Theory
    • Writing for Games
  • Programming
    • Artificial Intelligence
    • Engines and Middleware
    • General and Gameplay Programming
    • Graphics and GPU Programming
    • Math and Physics
    • Networking and Multiplayer
  • Visual Arts
    • 2D and 3D Art
    • Critique and Feedback
  • Community
    • GameDev Challenges
    • GDNet+ Member Forum
    • GDNet Lounge
    • GDNet Comments, Suggestions, and Ideas
    • Coding Horrors
    • Your Announcements
    • Hobby Project Classifieds
    • Indie Showcase
    • Article Writing
  • Affiliates
    • NeHe Productions
    • AngelCode
  • Topical
    • Virtual and Augmented Reality
    • News
  • Workshops
    • C# Workshop
    • CPP Workshop
    • Freehand Drawing Workshop
    • Hands-On Interactive Game Development
    • SICP Workshop
    • XNA 4.0 Workshop
  • Archive
    • Topical
    • Affiliates
    • Contests
    • Technical
  • GameDev Challenges's Topics
  • For Beginners's Forum

Calendars

  • Community Calendar
  • Games Industry Events
  • Game Jams
  • GameDev Challenges's Schedule

Blogs

There are no results to display.

There are no results to display.

Product Groups

  • GDNet+
  • Advertisements
  • GameDev Gear

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Role


Twitter


Github


Twitch


Steam

Found 65 results

  1. i have a problem i can make work the verificay if user existe our not i using nodejs ,express,mysql i put my link to project in github the code its to big https://github.com/Kammikazy/project find the soluction to my problem
  2. Hello i try retrive data from a table cidades and show in my express with jade const express = require('express') const connection = require('../../Config/database') const controllerAdmin = require('../../controllers/Administration') const router = express.Router() //router.get('/Administration', controllerLogin.FindCidades) router.get('/Administration', (req, res) => res.render('Administration/index',{username:res.locals.user.username ,nome:res.locals.cidade.Nome,coordenas:res.locals.cidade.coordenadas,continente:res.locals.cidade.continente })) module.exports = app => app.use('/', router) const authenticateUser = async (connection, req, res) => { const user = await User.findUser(connection, req.body.username) if(!user){ return res.render('login/login',{error: true}) } if(!await bcrypt.compare(req.body.password, user.password)){ return res.render('login/login', {error: true}) } else{ // user.password = undefined req.session.user = user //const nivel = await User.findnivel(connection, req.body.username) if(user.nivel==1){ const cu = await Cidade.findcidade(connection, req.body.username) // req.session.user.nivel = nivel res.locals.user= user req.session.cidade= cu res.locals.cidade= req.session.cidade // console.log(1); console.log("rewr",cu); res.redirect('/Administration'); }else if(user.nivel==2){ // req.session.nivel = nivel console.log(2); // res.redirect('/Users') }else if(user.nivel==3){ // req.session.nivel = nivel console.log(3); // res.redirect('/Administration') }else if(user.nivel==4){ // req.session.nivel = nivel console.log(4); // res.redirect('/Administration') } else if(user.nivel==5){ // req.session.nivel = nivel console.log(5); // res.redirect('/Administration') } else { console.log("banned"); } } } const findcidade = (connection,username) => { return new Promise ((resolve, reject) => { connection.query(`SELECT cidade.cod_cidade, cidade.Nome,cidade.continente,cidade.coordenadas,cidade.ouro,cidade.madeira,cidade.metal,cidade.pedra,cidade.energia, cidade.comida,cidade.petrolio FROM user INNER JOIN cidade ON user.cod_user=cidade.cod_user WHERE user.username='${username}' `, (err, result) =>{ if(err){ reject(err) }else{ if(result.length>0){ resolve(result) } else{ resolve(false) } } }) }) } give this error what i doing wrong i want show for example user maria have athenas and rome
  3. In early 2017 I had this idea, if I can stream an HD movie without downloading the whole thing, I could stream a massive open world game as well without downloading it. Most people are under the impression that a game running in the browser can’t look good because then it takes forever to load it. Well, in game dev the concept of LOD - Level Of Details - exists quite a while now, there is no reason why we couldn’t apply it in the browser as well. The game I developed loads in a matter of seconds. It takes a couple seconds to load the engine itself, then when you press play: - Loads the terrain peaces closer to you first, than what's further away. - Loads the low poly version of the models like trees, rocks and bushes first, then the high poly version when available. - Structures... - Animals... - Sound... - Etc.. you get the idea My point is, it is POSSIBLE to build a 3D version of the Internet, where instead of browsing through websites, we could jump from one 3D space to the next. I “invite” everyone to make this happen. I’ve made a 3D Survival Game with a massive terrain to prove the tech works. I want you guys to build your own 3D spaces implementing your own ideas what the web should look like in the future. We could just link them all together and make this Interconnected Virtual Space happen - yeah, the Metaverse, for the Snow Crash fans out there I would love to hear what you think about the applications of 3D spaces on the Web. Please leave me a comment if you are as exited about the possibilities as I am. Backing up my claims: Live Tech Demo is available on https://plainsofvr.com Watch a the Open World to load instantly, than gradually improving:
  4. Awoken

    More Adventures in Robust Coding

    Hello GameDev, This entry is going to be a big one for me, and it's going to cover a lot. What I plan to cover on my recent development journey is the following: 1 - Goal of this Blog entry. 2 - Lessons learned using Node.js for development and testing as opposed to Chrome console. 3 - Linear Path algorithm for any surface. 4 - Dynamic Path Finding using Nodes for any surface, incorporating user created, dynamic assets. 5 - short term goals for the game. -- - -- - -- - -- - -- - -- - Goal of this Blog entry - -- - -- - -- - -- - -- - -- My goal for this adventure is to create a dynamic path-finding algorithm so that: - any AI that is to be moved will be able to compute the shortest path from any two points on the surface of the globe. - the AI will navigate around bodies of water, vegetation, dynamic user assets such as buildings and walls. - will compute path in less then 250 milliseconds. There are a few restrictions the AI will have to follow, in the image above you can see land masses that are cut off from one another via rivers and bodies of water are uniquely colored. If an AI is on a land mass of one color, for now, it will only be able to move to a location on the same colored land mass. However; there are some land masses that take up around 50% of the globe and have very intricate river systems. So the intended goal is be able to have an AI be on one end of the larger land mass and find the shortest path to the opposite end within 250 milliseconds. Currently my path finding algorithm can find the shortest path in anywhere from 10 ms and up, and when I say up, I mean upwards of 30 seconds, and that's because of the way I built the algorithm, which is in the process of being optimised. -- - -- - -- - -- - -- - -- - Lessons learned using Node.js for development and testing - -- - -- - -- - -- - -- - -- As of this writing I am using Node.js to test the efficiency of my algorithms. This has slowed down my development. I am not a programmer by trade, I've taught myself the bulk-work of what I know, and I often spend my time re-inventing the wheel and learning things the hard way. Last year I made the decision to move my project over to Node.js for continued development, eventually it all had to be ported over to Node.js anyways. In hind sight I would have done things differently. I would have continued to use Chrome console for testing and development, small scale, then after the code was proven to be robust would I then port it over to Node.js. If there is one lesson I'd like to pass on to aspiring and new programmers, it's this, use a language and development environment that allows you, the programmer, to jump into the code while it's running and follow each iteration, line by line, of code as it's be executed, basically debugging. It is so easy to catch errors in logic that way. Right now I'm throwing darts at a dart board, guesses what I should be sending to the console for feedback to help me learn more about logical errors using Node.js, see learning the hard way. -- - -- - -- - -- - -- - -- - Linear Path algorithm for any surface. - -- - -- - -- - -- - -- - -- In the blog entry above I go into detail explaining how I create a world. The important thing to take away from it is that every face of the world has information about all surrounding faces sharing vertices pairs. In addition, all vertices have information regarding those faces that use it for their draw order, and all vertices have information regarding all vertices that are adjacent to them. An example vertices and face object would look like the following: Vertices[ 566 ] = { ID: 566, x: -9.101827364, y: 6.112948791, z: 0.192387718, connectedFaceIDs: [ 90 , 93 , 94 , 1014 , 1015 , 1016 ], // clockwise order adjacentVertices: [ 64 , 65 , 567 , 568 , 299 , 298 ] // clockwise order } Face[ 0 ] = { ID: 0, a: 0, b: 14150, c: 14149, sharedEdgeVertices: [ { a:14150 , b: 14149 } , { a:0 , b: 14150 } , { a:14149 , b:0 } ], // named 'cv' in previous blog post sharedEdgeFaceIDs: [ 1 , 645 , 646 ], // named 's' in previous blog post drawOrder: [ 1 , 0 , 2 ], // named 'l' in previous blog post } Turns out the algorithm is speedy for generating shapes of large sizes. My buddy who is a Solutions Architect told me I'm a one trick pony, HA! Anyways, this algorithm comes in handy because now if I want to identify a linear path along all faces of a surface, marked as a white line in the picture above, you can reduce the number of faces to be tested, during raycasting, to the number of faces the path travels across * 2. To illustrate, imagine taking a triangular pizza slice which is made of two faces, back to back. the tip of the pizza slice is touching the center of the shape you want to find a linear path along, the two outer points of the slice are protruding out from the surface of the shape some distance so as to entirely clear the shape. When I select my starting and ending points for the linear path I also retrieve the face information those points fall on, respectively. Then I raycaste between the sharedEdgeVertices, targeting the pizza slice. If say a hit happens along the sharedEdgeVertices[ 2 ], then I know the next face to test for the subsequent raycaste is face ID 646, I also know that since the pizza slice comes in at sharedEdgeVertice[ 2 ], that is it's most likely going out at sharedEdgeVertices[ 1 ] or [ 0 ]. If not [ 1 ] then I know it's 99% likely going to be [ 0 ] and visa-versa. Being able to identify a linear path along any surface was the subject of my first Adventure in Robust Coding. Of course there are exceptions that need to be accounted for. Such as, when the pizza slice straddles the edge of a face, or when the pizza slice exits a face at a vertices. Sometimes though when I'm dealing with distances along the surface of a given shape where the pizza slice needs to be made up of more than one set of back to back faces, another problem can arise: I learned about the limitations of floating point numbers too, or at least that's what it appear to be to me. I'm sure most of you are familiar with some variation of the infinite chocolate bar puzzle So with floating point numbers I learned that you can have two faces share two vertices along one edge, raycaste at a point that is directly between the edges of two connecting faces, and occasionally, the raycaste will miss hitting either of the two faces. I attribute this in large part because floating point numbers only capture an approximation of a point, not the exact point. Much like in the infinite chocolate bar puzzle there exists a tiny gap along the slice equal in size to the removed piece, like wise, that tiny gap sometimes causes a miss for the raycaste. If someone else understands this better please correct me. -- - -- - -- - -- - -- - -- - Dynamic Path Finding using Nodes for any surface - -- - -- - -- - -- - -- - -- Now that I've got the linear path algorithm working in tip top shape, I use it in conjunction with Nodes to create the pathfinding algorithm. Firstly I identify the locations for all nodes. I do this using a Class I created called Orientation Vector, I mention them in the blog post above. When they're created, they have a position vector, a pointTo vector, and an axis vector. The beauty of this class is that I can merge them, which averages their position, pointTo, and axis vectors, and it allows me to rotate them along any axis, and it allows me to move them any distance along the axis of their pointTo vector. To create shoreline collision geometry, and node collision geometry, illustrated above, and node locations along shorelines, illustrated below, I utilise the Orientation Vector Class. Firstly, the water table for the world is set to an arbitrary value, right now it's 1.08, so if a vector for a given face falls below the table and one or two vertors are above the table then I know the face is a shoreline face. Then I use simple Math to determine at what two points the face meets the water and create two OVectors, each pointing at each-other. Then I rotate them along their y axis 90 and -90 degrees respectively so that they are now facing inland. Since each face, which are shoreline faces, touch one another, there will be duplicate OVectors a each point along the shore. However, each Ovector will have a pointTo vector relative to it's sister Ovector during creation. I merge the paired Ovectors at each point along the shore, this averages their position, pointTo and axis. I then move them inland a small distance. The result is the blue arrows above. The blue arrows are the locations of three of the thousands of nodes created for a given world. Each Node has information about the shoreline collision geometry, the node collision geometry ( the geometry connecting nodes ), and the Node to its left and the Node to its right. Each face of collision geometry is given a Node ID to refer to. So to create the path-finding algorithm. I first identify the linear path between the starting and ending points. I then test each segment of the linear path for collision geometry. If I get a hit, I retrieve the Node ID. This gives me the location for the Node associated for a given face of collision geometry. I then travel left and right along connecting Nodes checking to see if a new Linear path to the end point is possible, if no immediate collision geometry is encountered, the process continues and is repeated as needed. Subsequently, a list of points is established, marking the beginning, encountered Nodes and end of the line of travel. The List is then trimmed by testing linear paths between every third point, if a valid path is found, the middle point is spliced. Then all possible paths that have been trimmed are calculated for distance. the shortest one wins. Below is the code for the algorithm I currently use. its my first attempt at using classes to create an algorithm. Previously I just relied on elaborate arrays. I plan on improving the the process mentioned above by keeping track of distance as each path spreads out from it's starting location. Only the path which is shortest in distance will go through its next iteration. With this method, once a path to the end is found, I can bet it will be shortest, so I won't need to compute all possible paths like I am now. The challenge I've been facing for the past two months is sometimes the Nodes end up in the water, The picture above shows a shoreline where the distance the OVectors travel would place them in the water. Once a node is in the water, it allows the AI to move to it, then there is no shoreline collision geometry for it to encounter, which would keep it on land, and so the AI just walks into the ocean. Big Booo! I've been writing variations of the same function to correct the location of the geometry shown below in Red and Yellow below. But what a long process. I've rewritten this function time and time again. I want it to be, well as the title of this Blog states, Robust, but it's slow going. As of today's date, it's not Robust, and the optimised path-finding algorithm hasn't been written either. I'll be posting updates in this blog entry as I make progress towards my goal. I'll also make mention what I achieve for shortest, long time for pathfinding. Hopefully it'll be below 250 ms. -- - -- - -- - -- - -- - -- - short term goals for the game - -- - -- - -- - -- - -- - -- Badly... SO BADLY I want to be focusing on game content, that's all I've been thinking about. Argh, But this all has to get wrapped up before I can. I got ahead of myself, I'm guilty of being too eager. But there is no sense building game content on top of an engine which is prone to errors. My immediate goals for the engine are as follows: // TO DO's // // Dec 26th 2017 // /* * << IN PROGRESS >> -update path node geometry so no errors occur * -improve path finding alg with new technique * -improve client AI display -only one geometry for high detail, and one for tetrahedron. * -create ability to select many AI at the same time by drawing a rectangle by holding mouse button. * -create animation server to recieve a path and process animation, and test out in client with updates. * -re-write geometry merging function so that the client vertices and faces have a connected Target ID * -incorporate dynamic asset functionality into client. * -create a farm and begin writing AI. * -program model clusters * -sychronize server and client AI. Test how many AI and how quickly AI can be updated. Determine rough estimate of number of players the server can support. * */ see the third last one! That's the one, oh what a special day that'll be. I've created a Project page, please check it out. It gives my best description to date of what the game is going to be about. Originally I was going to name it 'Seed', a family member made the logo I use as my avatar and came up with the name back in 2014. The project is no longer going to be called Seed, it's instead going to be called Unirule. [ edit: 02/02/18 Some new screen shots to show off. All the new models were created by Brandross. There are now three earth materials, clay, stone and marble. There are also many types of animals and more tree types. ] Thanks for reading and if you've got anything to comment on I welcome it all. Awoken
  5. tobspr

    YORG.io v2.1 release

    Here is a new update for YORG.io! Some small changes here and there and overall just improving the game. Increased Map Size The map is now four times as big as before (200×200 instead of 100×100). This means a lot more space to expand since previously players already had covered the whole map. However, this also means that old savegames are not compatible anymore – Sorry for that! Detailed Minimap View You can now also hold “M” to show a bigger version of the minimap: Invisible Transporters Earlier The skill tree has been changed so that invisible transporters are now available earlier. This was made to encourage expansion. With the previous skill tree layout, the invisible transporters were only unlockable after most of the map was covered. Up To 12 Crystal Mines Per Resource There are now skills to place up to 12 crystal mines per resource: Destroyed Building Indicators When a building gets destroyed, it’s icon is now shown so you can see which type of building got destroyed: Multiple Smaller Fixes Fixed crash when selling invisible transporters Fixed exploit when loading savegames multiple times Bigger numbers (E.g. “5.6b”) are now better formatted Made easy mode easier Increased difficulty of the challenge mode (New modes coming soon!) Minor Fixes & Performance improvements Thanks to everyone who is continuing to support Yorg! If you are interested in streaming Yorg.io or playing it on Youtube, be sure to post links to this in Discord! I really want you all to succeed and so we can work together in Discord to make that a reality. Link to Discord here: https://discord.gg/UdXda9Q
  6. https://www.kongregate.com/games/cardalomim/evo-psy-test You’ve inherited your father’s old plot of land in The Forest. Armed with hand-me-down tools and a some food, you set out to begin your new life. Can you learn to live off the land and turn these overgrown fields into a thriving and safe home? Give me any feedback that you may have. Thanks. Charles.
  7. Awoken

    Finished & Post Mortem

    Please check out my project page to play Shapes Tower Defense You can play it on GameDev! A Huge thank you to all those who've helped me out with this game. There were quite a number of us encouraging each-other along and I thought, and think, that that is just fantastic. POST MORTEM On the outset I was hoping to spend a lot of time on the game play. But I wasn't able to devote as much time to game play as I would have liked. In the future I think at least 50% of development time, if not more, should be spent play testing and tweaking. But Over-all I'm quite satisfied with my implementation of the ideas I set out with in my first blog regarding this project. Came together quite nicely. I think all of my years of experience with THREE.js helped me fast track many of the steps that maybe new-comers to the API would have to learn the hard way. What went Right: Using my own 3D program helped out tremendously, I don't think I could have created all the unique shapes ( over 30 ) if not for that. I think there is value in creating your own 2D and 3D suits. though they would be much much simpler, you can create them to suit you needs. Expected development time and debugging was quite accurate, I'm surprised. I enjoyed making this game a lot, and I think the part I enjoyed the most was looking up Johnson Solids and making them. What went Wrong: Like lawnjelly said, gimp is a nightmare. I'm a bit more familiar with it now but what I've learned about that beast is that it's probably incredibly easy for those who know what hot keys their pressing, but for me, a Microsoft paint wiz, it was terrible. I didn't devote as much time to game play as I was expecting to. And game play is a whole different animal. I'm so used to technical problem solving that switching over your mind set to deal with something as ambiguous and subjective as game play was a challenge, especially since I only gave myself 5 days to do it. But thankfully lawnjelly was a big help and he pointed out a lot of design flaws that I had over-looked. I think I got most of them that he mentioned. My code, It's bad. I documented things as best I could and tried to label things but once the complexity of this project grew I could no longer keep things tidy or orderly. Sure I named variables 'vectorOne' instead of 'v' but the code lacks coherent structure. By the end I was confused as to where I had put things. Clearly much work to be done in this area. All and all I enjoyed the experience a lot, and I became closer with some members. Win / Win Have a great weekend. Awoken
  8. Hello! I'm working on an online turn based multiplayer game as a hobby project. My game is implemented using Node.js and Javascript. Currently I'm designing how implement the persistent storage so that games can recovered in case of server crash. My idea is to use a in-process memory store for data access in the game server logic. When a store modification is being done, the in-process memory data store is always updated directly and the persistent storage changes are queued. I was thinking of something along the lines of this: function Store(memoryStore, persistentStore) { // Different queues for operations of different importance. // If the different operations need to happen in order and be in consistent state, they must be placed in same queue this.queue = new Queue(persistentStore); // Could be something like game chat. Saving them at different time doesn't affect the atomicity this.lessImportantQueue = new Queue(persistentStore); this.actionHandler = new ActionHandler(); this.doOperation = function(action) { // Generate applicable change using the memory store as source of truth var actionResult = actionHandler.handleAction(memoryStore, action); memoryStore.doOperation(actionResult); this.queue.push('doOperation', [actionResult]) } this.doLessImportantOperation = function() { memoryStore.doLessImportantOperation(); this.lessImportantQueue.push('doLessImportantOperation', arguments) } this.getSomeData = function() { return memoryStore.getSomeData(); } } function ActionHandler { // Generates operation using the memory storage as source of truth this.handleAction = function(memoryStore, action) { return action.complete(memoryStore); } } // Stores game state altering operations function Queue(store) { this.items = []; this.push = function(operation, args) { this.items.push([operation, args]); } // Can be called directly, after certain queue size or at an interval this.synchronize = function() { var p = Promise.resolve(); this.items.forEach(function(op){ p = p.then(function(){ return store[op[0]].apply(persistentStore, op[1]); }); }); this.items = []; } } // Special type of store that has synchronous interface function MemoryStore() { this.getState = function() { ... } this.getSomeData = function() { return ... } this.doOperation = function(actionResult) { ... } } // Uses external persistent storage function PersistentStore() { // Get state as an object that can be used for creating a memory store this.getState = function() { ... } this.getSomeData = function() { ... return ... } this.doOperation = function(actionResult) { ... return Promise.resolve(); } } The Store class is used as top level layer for fetching and storing data. Contrary to the example, I also considered being able to use a remote data stores for primary data access. The good side with that would be that the server wouldn't need to hold the whole game state in memory, consistent game state could be read from different processes and the server would be quite much stateless. The two latter benefits are highly questionable. The downsides I found were 1) either all server code involving data fetching would need to be asynchronous or the whole state would need to be fetched in advance. 2) data fetching would be a lot slower from remote database, even one like Redis Example: this.doOperation = function(action) { // Generate applicable change using a store as source of truth actionHandler.handleAction(mainStore, action).then(function(actionResult) { // Main store can either memory store with asynchronous wrapper or a persistent store return mainStore.doOperation(actionResult); }); } As the game server is normally a single process, store like Redis should not be needed as primary data store. Deciding between use of the memory store (synchronous) or possible use of both memory store (asynchronous wrapper) and persistent storages (asynchronous) has big implications for the codebase. With choice to use asynchronous stores, essentially lots of code would be asynchronous in places where one wouldn't expect asynchronous code. Every persistent store function call would be an atomic operation. Thefore the game state would stay consistent if the game server would shut down, whether some of the operations are still being completed or not. This structure would allow changing the frequency of storage which would mainly effect performance. Buffering the operations would allow for less round trips to the database. The performance would not likely be problem with any of the solutions I introduced, but would allow more games to be run in one server. I'm currently thinking about following questions: 1) Does the choice of the primary and secondary database make sense here? 2) Does it make sense to exclusively use synchronous in-process memory database for game data processing instead of database such as Redis or another type of database like RDBMS or noSQL database? 3) Is the plan for the storing data and queueing reasonable? I haven't seen literature nor good design patterns for this yet. Having to repeat the queue push for every operation seems kind of unnecessary. I'm also thinking if I'm overengineering. TL;DR: Should a turn based game store its state in memory and use asynchronous periodic backup or should game data be stored remotely directly at cost of lots of codebase being filled with callbacks/promises? Feel free to also note if my post doesn't provide enough information for allowing discussion.
  9. Hi, I'm currently working on a lightweight 2D canvas library called JSCF. It's got a lot of cool features but is still in prototype and I'd be glad to have more hands on this project + getting some feedback from programmers like you. This is an open-source project so no rev involved at all, but I think anyone knowledgable or interested in getting involved with a cool native JS 2D engine is welcome. For full feature list, contribution, prototype build and more please visit the github repo here: https://github.com/g--o/JSCF Thanks for reading 😃
  10. Awoken

    Almost Finished

    This week has been one heck of a week. I wake up, eat breakfast, go for a run, go to work, come home eat dinner, program for 4 hours, go to bed, and repeat. I've got a lot done. Here is a pic showing the latest accomplishments. Added - Crystals which act like lives, but also generate points after each wave. And they break if a shape touches one. - Score system - Upgrade system - Update shape paths if they were travelling to a crystal that has already been broken. - Start screen - Menu screen - Lose Animation I now only have two things to do to wrap up this game best of all I'll have it done by Saturday. I'm impressed with how well I've managed my time and how accurate I've been predicting how much time it will take me to do this or that. So fingers crossed. If I don't run into any snags I'll have met the requirements by Saturday Thanks for reading
  11. Awoken

    Cube Cannon

    Hello GameDev, Here is a screen shot of the Cube Cannon. You can only build one! It is fully operational and it packs a punch, for squares that is. Anyways I've made so many changes to the code I can't even really recap all the things I've done. So here is the code TD.06.22.zip If you fancy, give the project a go. I've included some instructions to go over. I'm going to be plugging away come tomorrow to add the Hell-Fire Hex and the Tack Tower. Then I'll be incorporating points and upgrades and a start screen Yeish! hopefully figures crossed.
  12. Sản Phẩm trang điểm cách đây không lâu với 1 sản phẩm có tên Detoxic đã được phổ biến người để ý và các từ khóa can hệ đến Detoxic có sự tầm nã cập rộng rãi nhất trên mạng xã hội và Internet. các ngôi nhà ở đây được vun đắp rất đơn thuần cốt yếu bằng chính đá đá hoa cương cộng với những dụng cụ cần lao đánh dấu sự tồn tại của con người trong giai đoạn tiền đồ sắt với thể đề cập tới như quặng sắt hay máy mài…Cung điện Hidi được xem là 1 trong các thắng cảnh với phổ thông giá trị linh nghiệm và đáng được bảo tàng nhất ở đất nước Nigeria. xem thêm:phun môi collagen giá bao nhiêu những loại áo đồng phục doanh nghiệp đẹp mặt chính là thấu kính để khuếch đại hình ảnh và đặc điểm quyến rũ, thú vị ấy đến các đối tượng bên ngoài khuôn khổ hành chính nhân sự tổ chức. Chính từ đây mà việc ngoại hình áo đồng phục tổ chức lại càng chịu thêm gánh nặng, càng đòi hỏi chất lượng cao của không chỉ người ngoài mặt mà còn ở người giám định nó trước lúc được cung ứng. Ngoài các khoa học trang điểm trọng điểm của chúng tôi còn dạy cho Các bạn biết 1 số cách thức làm cho tóc cho cô dâu, cho những người muốn đi dự tiệc cưới hoặc là biết tự làm tóc cho chính bản thân mình như thế nào để trông trẻ trung và đẹp nhất mang khuôn mặt mình. phổ biến lúc stress còn bị mất ngủ nữa, hậu quả là da mình cũng xấu đi. cho nên Hương biết điều quan yếu nhất là phải tậu 1 sản phẩm thấp trong khoảng tình cờ, hoàn toàn Organic như Saffron của Saffron Việt Nam, để giúp mình sở hữu được một làn da đẹp, khoẻ mạnh trong khoảng sâu bên trong. Collagen chẳng những có tác dụng liên kết những tế bào mà nó còn giúp những cơ quan, nội tạng cơ thể hoạt động rẻ và duy trì sự đàn hồi, chắc khỏe của làn da, chống lão hóa da, tiêu diệt các gốc tự do và còn mang thể tương trợ điều trị được những bệnh về xương khớp hiệu quả. Nhưng điều kiện số đông đề nghị sẽ là cần một chất lượng cực cao, cực chuẩn trong cách thiết kế đồng phục công ty. cùng sở hữu đó là việc áp nó vào những quy định, lệ luật có tính chất và thưởng phạt rõ ràng, chỉ sở hữu như vậy mới đảm bảo được tính thực dụng chủ nghĩa của nó. Hãy tiêu dùng ngay một quả chanh và hai - ba thìa đường thô (loại tuyến đường hạt lớn chứ không phải con đường tinh luyện mịn nhỏ), vắt chanh vừa phải vào bát đựng tuyến đường đấy tạo thành hẩu lốn sệt không quá ướt, tiêu dùng hổ lốn đấy massage nhẹ nhõm lên môi theo chiều vòng tròn. Nụ cười tinh ma giúp Margot Robbie xuất hiện như một làn gió thổi tới Oscar 2018 ko khí vui vẻ. Ở sự kiện năm nay, ngoài được giới chuyên gia Phân tích có phong cách ăn mặt đẹp nhất, Margot Robbie còn ghi điểm bởi lối điểm trang bỗng dưng, ko nhấn nhá quá đa dạng vào bất cứ bộ phận nào. xem thêm:phun môi collagen màu đỏ cam bề ngoài đồng phục doanh nghiệp bị tác động quá nhiều bởi nhân tố nguồn vốn, kinh tế, chỉ cần sở hữu chút khó khăn về mặc kinh tế thì gần như người sẽ ưng ý hi sinh nhưng mẫu áo đồng phục đấy. mang thể là hi sinh về mặt ngoại hình ví như hạn hẹp kinh phí, tuyển lựa những mẫu bề ngoài phẩm cấp không cao để hạn chế giá tiền cần bỏ ra. Cũng với thể là nó ảnh hưởng trực tiếp đến việc lựa chọn các chất liệu, nguyên vật liệu cấu thành lên chiếc áo đồng phục doanh nghiệp đó. Vì thế mà để với được một điều kiện lý tưởng nhất cho sự phát huy hết công năng, lợi ích của những bộ đồng phục công ty thì ngay tính từ lúc mẫu mã đồng phục công ty thì bạn cần đặc biệt phải chú ý và dành phổ thông thời kì để thử nghiệm, khảo sát khả năng thành công của nó. nguồn:phun môi màu hồng baby
  13. I've been doing some research on delta compression (used and described in the Quake3 doc http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/Quake3Networking,), and I'm looking for some clarifications on that topic please if possible. I understand that the delta compressed state is the difference between any given world states, meaning that if we store the state of every entity in a world state at every tick, the difference would be only the states of entities that changed between these two world states. Now when sending back the delta state to the client, do we go as far as only mentioning the properties that changed? Let's say a character moved only on X axis but didn't move on the Y axis between two states, are we sending to the client the whole state (x, and y) or only the new x position? If that's the case and let's assume there are a few more properties that describes a character, how can the client identify which properties have actually changed when rebuilding the information from binary data.
  14. I've been doing a lot of research on how to implement a game server to support a web based game in the vibe of surviv.io, or zombsroyaleio. There are so many ressources out there, but apparently surviv.io is built with NodeJS using Websockets. That implies also that they are built on TCP protocol. They might not look like big titles but they surely look very steady (from my point of view) and I feel like they do deal with classic Fast Paced multiplayer concepts such as Client-side prediction, interpolation, and potentially lag compensation. During my research, there seems to be that constant debate on UDP over TCP. To sum it all up, it seems that TCP is not appropriate for fast twitching games, however I do believe they fall into that category. How can they get away with TCP? Is this debate actually now outdated now we have better internet connections?
  15. DotaCard Channel

    Fight over dat Ancient

    https://foda-app.herokuapp.com/
  16. Is anyone aware of a universal Javascript Webkit? Ideally one that will run in all, and if not all then most browsers? Does anyone have any experience using a webkit in conjunction with WebGL?
  17. I am going to use/learn JavaScript once a week. I am wondering what the best backend for a store/login game server/etc. would be : PHP or C#, or something else. The criteria is longevity of uses, efficiency, value, and quickness to learn. Am I forgetting anything that would be needed, i.e. : the unresearched : JNode. I want to be lean with my learning. Thank you; it has taken quite a while to consider all this, Josheir The language that I know the best is C++. I will be using/studying this more too (other days.)
  18. I am considering writing a JavaScript browser game that uses three windows. What I am wondering is after the initial load of the game will the web pages be ready and therefore quick enough for any user. One problem would be that the third window would open and close so does this mean that there is a necessary reload of that seperate third window page code and images by the browser that would slow it down? Thank you; it would be a fun project, Josheir
  19. I am getting very interested in the very popular JavaScript. I would like to create games with it. One thing that concerns me is the availability of the webpages' code to others. I would really like to watch some movies on JavaScript but I don't know how to feel about people being able to copy my code (or for that matter if it is possible.) Am I being unrealistic? Are there means to make the code unreadable by the occasional viewer? Perhaps it is just html5 and css3 that can be viewed with google chrome's view source and I am confused. Thanks in Advance, Josheir
  20. Just wrapped up organising the code. Originally when I set out to program this project I had the idea that would-be followers of my efforts could just copy and paste quick little bits to the base files from my Introduction to Three.js post. However, I'm not that organise and don't have the level of skill to be able to pull that off. I've had to go through many older functions and modify this or that. So you'll have to bare with me but if you want to stay up to date with this project and have a copy of the code as of 'today' you'll have to just download everything here TD.zip current functionality: Toggle Screen Size; if you press ' f ' you'll toggle the size of the screen. Walls; If you press ' w ' you'll be able to select locations for walls. Moving your mouse along the grid you'll see the grid line the cursor is closest to turn yellow. If you left click the mouse button you'll create a wall. If you right click on a line under a wall that already exists the wall will be removed. Walls can be created between adjoining cells/squares/spaces. When you select a grid line that will block the path to an exit the line will turn red indicating that a wall can't be built there. If you try to left click nothing will happen. Towers; If you press ' t ' you'll be able to select the locations for tower. Moving your mouse along the grid you'll see a large square 2x2 appear in cyan if you select a location that doesn't envelop any surrounding wall. The large square will turn red if the location isn't permitted. As of right now the Tower placement function doesn't take into account Towers blocking the path to an exit. If you want to switch between walls and towers you must de-select your previous choice by pressing the say keyboard key. Clear as mud? Hope not. Here's a video showing what's been added. Now that this is all done I can start adding towers and enemies. I'm going to scrap the Misty Mist Tower. I'm instead going to replace it with the Tach Tower. It will shot bullets that will slow down an enemy with each successive hit. It's been done a bunch before. But unlike other games where the effect wears off, in this one the effect will be permanent. However; in order to dramatically reduce the speed of an enemy, it have to be shot many times. Let me know what you think! Thanks for reading.
  21. Awoken

    Introduction to THREE.js

    Time to introduce just how awesome THREE.js is. With the following three files you too can begin building content with THREE.js that will work in any browser that supports WebGL.The files include the latest and greatest minified version of THREE.js. three.min.js Out of the box code to begin this project. var camera, scene, renderer; var geometry, material, mesh; init(); animate(); function init() { camera = new THREE.PerspectiveCamera( 70, 1024 / 768 , 0.01, 10 ); camera.position.z = 1; scene = new THREE.Scene(); geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 ); material = new THREE.MeshNormalMaterial(); mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); renderer = new THREE.WebGLRenderer( { antialias: true } ); renderer.setSize( 1024 , 768 ); document.body.appendChild( renderer.domElement ); } function animate() { requestAnimationFrame( animate ); mesh.rotation.x += 0.01; mesh.rotation.y += 0.02; renderer.render( scene, camera ); } shapesTD.js And a basic html file which references both THREE.js and the basic code for starting this project. <html> <head> <title>Shapes TD</title> </head> <body oncontextmenu="return false;"> <script src='three.min.js'></script> <script src='shapesTD.js'></script> </body> </html> ShapesTD.html Once you click on the html file with both of the other files in the same directory you should see a spinning cube. If not, check to see if you have WebGL support enabled on the browser you are using. This will be my starting base. I figured I'd throw in the code as well so that if any beginner wants to have a shot at an extremely easy language, JavaScript, and a well documented API, then these files are for you.
  22. Hello! The game: https://www.combo-clicks.com/ DEV blog (so everyone can read the journey and some history): http://www.combo-clicks-dev.com/ TL;DR Feedback for Combo Clicks and also IDEAS for future games will be super appreciated (Hyper Casuals done in 3-4 weeks, each game with React Native). I will try to post on my blog atleast on weekly basis (both for gamers and developers) Thank you!
  23. Hi I tried to make some game in canvas JS. But dont know how to make sound effects like laser beam, I just add autoplay to some laser.wav and it is terrible. I need not fixed time. Each voise should have random time like 2s, 3s, or 10s? How to replace sound with another sound but not just replace but to make it slowly like animated. Is there such ablity or any library? Maybe some knew tutorial or book about sound game effects. myHobby.bmp
  24. O.k, one more entry before the weekend, Heading out for the weekend, and next week I'll be working on unirule, so this'll be it for a couple weeks. Just like last week I find that as the week goes by my excitement builds for the project I'm working on. Come Monday, I'll be thinking more about Shapes TD than Unirule, come next Friday the reverse will be true. Wall placement has been added. For those who want to give it a whirl: - press 'w' to toggle wall placement on an off - select a line ( it will turn yellow ), left click to create, right click to remove. Update the following files shapesTD.js add the following to keyboardControls.js update mouseControls.js Finally, add these three functions to generateGameContent.js Have a great weekend!
  25. I took a hiatus of sorts and am thinking about switching from C++ to JavaScript. It seemed like there was always a great response when I was into C++ here. Where is the hottest area/areas for JavaScript questions. I never had a question not responded to before! Thanks, Josheir
  • 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!