Git Product home page Git Product logo

pong's Introduction

This is a first test of LOVE. It's a basic PONG game for two players. I should be able to polish this off quickly to get what I need.

##Particulars

  • Images/Animation
  • Modules
  • Keyboard Input
  • Menu
  • Mouse Input
  • File I/O

If I can do this easily, I think I've found the engine I can use to build Rise of Machina: Part i.

This also includes a quick script I wrote to automatically create a directory for new LOVE games.

##Dev Log

###Part 1: Images

I'm using the built in function to add 4 images to the screen. I'll import the ball, change the BG for the background, and draw the paddles as rectangles. Then, I'll use the built in text functions to display a scoreboard at the top. Also, because nobody is reading this, I'm watching Inception right now. It's deep, man. Deep.

I've added image input, but now I'm thinking that I should add multiple files to this. I'm going to need to. I should be able to work it with two extras, one for the ball and one for the paddles. Score can be taken care of in the main file. Also, Inception wedding ring. Like I said. Deep. Literally, man.

I added in a score system and learned how to add in the fonts. Now, it's all set up, I need to add logics. Now, I'm going to add separate files to help with organization. Also: Castle, watch Castle. You have GOT to love Nathan Fillion.

###Part 2: Multiple Files I successfully got this thing running with modules. I'm using one for the ball and another for the paddles. Score can stay in main.lua. I'm noticing some lag. That shouldn't be happening. I'll add that to the list. Anyways, Modules are done. Next up, keyboard control. Also, The Prestige is a great movie. Getting to the part where Tesla walks through the electricity in the air. Dude's badass.

###Part 3: Keyboard Input It works! Easier than expected. Went quickly. Seriously, The Prestige. Watch it, if you haven't. You know what? Even if you have. Watch The Prestige.

###Part 4: Menu and Clicking Menu added. Clicking is odd. Might implement a different way to do that in the future. Also, may be better to use actual images for the menu screen.

###Part 5: Logic is magic. Added Puck Logic. Shouldn't have hardcoded as many values as I did, but that's alright, this is just an experiment. I could also clean up the code a little, there's a bit of duplication, but it's not really worth the time. Once again, experiment. That's how I excuse my own inbuilt laziness. It's almost done. Tomorrow I will add a game won screen and then the ability to restart. Now, I am going to sleep. Right after Adventure time. Oh, Jake. You so crazy.

pong's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.