LightCycle Game Test #4.5

zardOz2 - Custom level - from Android
Play52 players liked this.Log in to like this level.

4.5: added some sounds, thanks GH7
4.4: First effort at AI failed, I rewrote some stuff hopefully I can get the codes to work together properly... Added some repeatability and a fading light wall. 4.4.1 Added speed control buttons, hold [f] or [g] to alter speed. Screenshot improved.

4.3: I temporarily removed my fancy bike graphics so I could continue the upgrades. Im prettty sure I have the two wall tables working together and can now figure out some way to get an enemy the doesnt kamikazi itself right away. Testing a new camera tracking system, It probably will be changed to a less dramatic zoom.

4.2: Doh! Ive reached the low lua character cap of 9000 again... im stuck till 1.5. Got an enemy just started... barely.

4.0: Now we're getting somewhere... the player controlled bike is good to go...(until the inevitable error is reported) Collision works great in testing...

t4.1: code cleanup now that I know what Im doing... and changed the start direction to player choice

Enjoy, might be never before I get the AI enemy bike up and running...

Views: 4626 Downloads: 1524 Unique objects: 12 Total objects: 172

Discuss this level

Log in to comment on this level.
  • Bestforgames: Fix....
  • TheBossMan: Update it and make the AI more smarter!
  • Golden: AI is broken...
  • PeterZ: lol, ok, I assume that making AI can be difficult.
  • zardOz2: @PeterZ: can i pretend I never made it? lol Its on my list, but im dreading it.
  • PeterZ: you should finish this thing, since people loved it so much
  • zardOz2: @hello: @CrEaTiVeR: I cannot finish this game until aftter the update, my device cant put more than 9000 characcterrs in the lua code so I cant go any father right now.
  • hello: But please, try and fix the defect stated by CrEaTiVeR
  • hello: Wow, this is very cool.
  • CrEaTiVeR: well this fun but when it move like 10 sec or more its stop and i suppose to lose lol...hope you fix it and i can play again hihihi
  • Golden: Lua is not random, literally enemy go right all time
  • Charlest360: GJ dude
  • zardOz2: @Charlest360: Actually I already removed the bike code so I ccould have more room... So yep it'll be in... It'll be 3dfied as well eventually.
  • Charlest360: @zardOz: you shall also make some sprites for bikes (if you know how to make them coz i dont even know how to use lua script :P )
  • zardOz2: @Charlest360: thx, AI ASAP
  • Charlest360: Lua Tron engine: Cool
    Dynamic camera: Just awesome
    Orange bike's AI: If you ask me, only thing to fix :)
  • zardOz2: Yikes a highlight, now I HAVE to finish it lol... please god down highlight the roulette game! @abrackers: thanks ab :)
  • abrackers2: Awesome
  • pajlada: @zardOz: Hm, yeah the prompt has the same issue of 9000 characters on some mobile devices, and 65000 characters for the string itself right now. I'll do the same mobile device fix on the prompt dialog, thanks.
  • zardOz2: @pajlada: Well Ill have to scrap my plans to upload the entire internet, but 4 billion should do! FYI not sure if it's automaticly the same but the prompt is capped as well...
  • pajlada: @zardOz: btw, the limit has been increased from 65000 to.... around 4 billion characters
  • zardOz2: @JOELwindows7: @TechMan101: This level and "Spooky Dungeon" are on hold until 1.5 update, There is a problem with some devices have lua boxes which can only hold 9000 characters instead of the 65000 It's supposed to be. So I an even squeeze one one line in, I just made the enemy turn a few times and stop so you can play with the game so far.
  • JOELwindows7: @TechMan101: I did it yeah!
    @zardOz: the opponent run is stoped after few second.
  • TechMan101: I know a cheat where if you go straight at it and turn at the last second, the opponent kamikaze's
  • zardOz2: @Mattdogking: well you just gotta break down and start somewhere, all I know of lua/programming I learned from principia:) thx Devs
  • Mattdogking: @zardOz: Heh, Well I don't know lua at all. I really know nothing of it.
  • zardOz2: @TechMan101: Ive run out of room in my lua code box, no space for the A.I. code until the 1.5 update fixes the problem. So It just turns a few times and stops so you can play with it for now.
  • TechMan101: There is a glitch where the red bike stops
  • TechMan101: There is a glitch where the red bike stops
  • zardOz2: @Mattdogking: heh, It may be hard to believe but by most standards im a still a total lua newb! I am getting very very good at the few things I DO know but I have a long way to go... most of pajlada and sdacs and cralents codes are still completely confusing to me.
  • Mattdogking: Zardoz, has someone told you that you are the god of lua?
  • zardOz2: @sdac: ahh, that would make sense thanks!
  • sdac: @zardOz: looks like you are rendering the line twice
  • Demon666: yeah touchscreens are nice but not for long term programing lol.... i used to make websites from my psp and that was easier then typing on my galaxy note lmao
  • zardOz2: @Demon666: Heh I went to get a new one and only one model with a physical keyboard... lame
  • Demon666: your lucky your phone has a physical keyboard...... i cannot deal with writing codes on my touchscreen lmao....
  • zardOz2: @Demon666: Ill be glad if I can get a stupid one running at this point, my only method is rather massive and I only have about 1000 characters to work with.
  • Demon666: the difficult part is gonna getting the enemy to actually put up a fight lol
  • zardOz2: @mike1234: thx mike, The enemy bike controls are not going good :(
  • mike1234: This is reakky cool
  • zardOz2: @Sdac: Very minor oddity for you, you'll notice that the current line being drawn is wider than the fixed lines... nothing in my code would change the width or density. Very strange.
  • zardOz2: @JOELwindows7: ? Never heard of that.. it's like tron?.. @yo man: thanks always a great comment to get!
  • JOELwindows7: It's a game called "Wits". I have that NES ROM.
  • yo man: If I could add another like I would.
  • zardOz2: @x32g: added a few random turns
  • x32g: Playing a game of chicken with the other cycle is pretty fun, even though its so predictable,
  • zardOz2: @Demon666: this would make a really fun multiplayer with different camera views... but that will have to wait.
  • Demon666: yeah but once you find those tricks you have to time them well or youll either have an AI thats to easy or an AI thats unbeatable lmao
  • zardOz2: @Demon666: well hopefully it frustrates the player too... most ai it just a collection of simple tricks... finding the tricks is a pain tho
  • Demon666: a good AI will frustrate any programmer lmao
  • zardOz2: @Cralant: well luckily the original simply made up for it by adding more enemies. But I think it will compensate since it will be better at avoiding walls at the last second
  • ShakzDar: @zardOz: ok I was thinking that it could be erased
  • Cralant: Ahh lol, well if you want a simple ai you could have it detect a wall and have a random chance it turns or it stays on, as you can see from my first autosolving maze bot, random ai just doesn't work haha
  • zardOz2: @mrsimb: well it's rather hard to explain on chat, if moving up/down it would look for any horizontal lines within .1 of the player position...
    The check if the player position is >the minimum of the two edge xpositions for that line and <the maximum of the two edge x positions of that line.
  • zardOz2: @Cralant: that is a damn fine question... hey look over there (*woosh*)... lol, well it'll probably end up "random available direction" with favoring the direction of the player by a bit.
  • mrsimb: How did you collision detection?
  • Cralant: I am putting a ton of projects on hold until 1.5 as well, we are sure going to be busy when it arrives haha, also just a question how are you going to control the computer player are you going to give it smart ai or just random?
  • Demon666: lmao
  • zardOz2: @Demon666: I cant wait, its killing me. My bike designs take up over 1000 characters, Ill probably replace them with crappy squares temporarily.
  • Demon666: so many projects are on hold until 1.5 lol
  • zardOz2: Character cap strikes again, no more updates til 1.5. Too hard to split the code into multiple luas at this point...
  • zardOz2: @ShakzDar: sorry, you are mistaken. In both the game and the movie the walls stay until the bike that created them is "de-resed". Only difference is the game allows you to slow down to half speed.
  • ShakzDar: @zardOz: But one thing: In real troncycle game, the light is erasing itself
  • zardOz2: @jetboy007: sorry, multiplayer support wont be till 1.6 at least @ShakzDar: @GH7: @Wkmz: thanks all!
  • zardOz2: @Cralant: yeah I rewrote the problem area already, I sent you the code on forum
  • ShakzDar: Great !
  • jetboy007: @zardOz: make multiplayer
  • Cralant: @zardOz: if your method for detecting walls works for walls gaing in positive coordinates then why not just switch the values if they are going negative. A simple if x1> x2 then x1, x2 = x2 x1 end. Something like that should just swap the values and make every well technically go from left to right or down to up.
  • GH7: @zardOz: Great job! I love it.
  • Wkmz: One of my favorite games :) great work
  • zardOz2: @Demon666: I sent you a PM... and to @Cralant: while I was at it
  • zardOz2: @Demon666: I can PM you details if you want
  • Demon666: @zardOz: I vote in favor of this tutorial. lmao.
  • FirePhenixFire: Works well
  • zardOz2: I was over thinking the problem as usual... whew
  • GH7: @zardOz: So the pythagorean therum and angle values. Thanks. I'll check out your tut as well.
  • zardOz2: @GH7: the other major thing you need to understand is the three types of angle values... get angle() returns radians 360=2pi radians so whenever you call for get angle you will need to divide by 2pi to get the 0-1.0 number that the gyroscope signals. The 0-1.0 angle works like 90/360=.25... Im gonna do an angle tutorial when I get around to it.
  • zardOz2: @yo man: all sorts of problems you didnt notice then:) my current unpublished effort works perfectly for any wall drawn left to right or down to up but doesnt work at all for walls drawn the other two directions.
  • yo man: Sweet.. like snake! There is one spot in the middle (bottom right-ish) of the grid that acts like a wall but doesnt show.
  • zardOz2: The trig you need is fairly simple for most things... basic triangle stuff see my tutorial from yesterday... once you understand that you'll have. Most of what you need. 95% of the time a^2+b^2=c^2 will get the job done.
  • GH7: @zardOz: Taking a break is the best thing to do sometimes. You might just walk back to it and have an epiphany and create a masterpiece. I'd like to dabble in lua, but doesn't it require knowledge of trigonometry, and calculus? Or could it be done without it? Sorry, I'm ignorant on the subject; which is pretty sad because I'm trying to develop a game in CryEngine. I sometimes find my dreams overtaking my goals.
  • zardOz2: @GH7: thx! My brain is melting over here, Ive tried like 20 different configuartions and nothing seems to work quite right... maybe I should just make a line drawing program give myself a break;)
  • GH7: On the bright side you've made a pretty fun line drawer. Haha. I wish you the best of luck with this project.
  • JOELwindows7: @zardOz: it's ok. If you can try to similarize and/but improved!
  • zardOz2: @JOELwindows7: that one uses a table of grid point x10/y5 etc this one needs to use a different method.
  • JOELwindows7: Oops "yoh" I mean "you"! Error type >:(
  • JOELwindows7: Did yoh know, mznznlt made first Lua snake game. This one's similar! Themed tron. Why don't do that engine? That would be Awesome! Improvement.
  • zardOz2: Well if I get it working Ill add a method to switch to the right before starting.
  • Big Al: @zardOz: yha it just fells weird to me on the left
  • zardOz2: @Big Al: you mean move control buttons? Joysticks and dpads usually go on the left
  • Big Al: @zardOz: change the controlled side
  • JOELwindows7: @zardOz: you're welcome man. well upaid. I don't intend pay ;)
  • ricardito08: @zardOz: Hmm.... Good luck with this.
  • shantanuaryan67: Ok nice idea
  • zardOz2: @shantanuaryan67: it's just test mode, eventually you will "win" by destrying the enemy first. Then it would start over.
  • shantanuaryan67: @zardOz: yeah but it is very difficult to survive if the trails don't disappear
  • zardOz2: @shantanuaryan67: nope, in tron tthe trails stay until your bike is destroyed...
  • shantanuaryan67: Perfect but light trails should disappear after sometime
  • zardOz2: @JOELwindows7: @Demon666: @TechZ: thanks to my unpaid beta-testers:)
  • Demon666: lol yeah I keep randomly exploding there's also a glitch that let's you pass through your own lines sometimes lol.
  • Demon666: lol I didn't know about that glitch..... and a good AI is always a problem lol
  • TechZ2124: Great work ! Also I don't get why sometimes the game ends with no reason. Keep up the good work !
  • JOELwindows7: @zardOz: working.
  • zardOz2: @TheEnderPT: @FirePhenixFire: @JOELwindows7: thx hopefully I can get it working... But AI bikes are going to be a big problem.
  • JOELwindows7: Awesome!
  • FirePhenixFire: @zardOz: my level is almost finished and it by fair the biggest level ive made so I cant start again :(
  • TheEnderPT3: work*
  • TheEnderPT3: Nice York zardOz, love your creations :)
  • zardOz2: @FirePhenixFire: well If the level only has a ffew parts I just copy the text and start over and paste in the data... pajlada has some secret method he wrote about in megaman... if draw problem then put this:draw_sprite(0,0,0,0,0,0,0,0,0) as the first line in ffirst_run
  • FirePhenixFire: @zardOz: nice so far :D
    How do you make a lua with a high id a low id
  • zardOz2: @Demon666: theres a bug on the # of lines at 512 max total till 1.5
  • Demon666: you could just use multiple lua for different sections of the grid then you could make the grid as big as you wanted.
  • zardOz2: @Demon666: except they are boxing you in too... Ill probably make it bigger but Ill have to limit the space to not exceed 500 lines
  • Demon666: otherwise it would be a little to easy but you could just box the enemy I with the lines. expecially in such a small space lol.
  • Demon666: I'm familiar with is but wouldn't the lines disappear after a while? like on a 4 second delay or something lol.
  • Ctjet: You could also make this into a snake game
  • zardOz2: @Demon666: heh, not familiar with Tron? The lines are lightwalls which. You attempt to drive the enemy cycles into... any destroyed cycles light walls then fade away... @davetheguy: working on it:) Ive got to adapt my other collision program and it's gonna be a pain
  • davetheguy: And death upon hitting the laser.
  • Demon666: nice! would look better if the lines would fade away tho, instead of being there forever lol.

LEVEL ID: 6427